#include <renderer_state.hpp>
|
static CameraOptions | getCameraOptions (const UpdateParameters &, const EdgeInsets &={}) |
| Obtains a CameraOptions out of a given UpdateParameters object. More...
|
|
static bool | hasImage (const UpdateParameters &, const std::string &id) |
| Returns whether an image with the given ID exists from a given UpdateParamters object. More...
|
|
static bool | hasLayer (const UpdateParameters &, const std::string &id) |
| Returns whether a layer with the given ID exists from a given UpdateParamters object. More...
|
|
static bool | hasSource (const UpdateParameters &, const std::string &id) |
| Returns whether a source with the given ID exists from a given UpdateParamters object. More...
|
|
static ScreenCoordinate | pixelForLatLng (const UpdateParameters &, const LatLng &) |
| Obtains the geographical coordinate out of a given screen coordinate. More...
|
|
static LatLng | latLngForPixel (const UpdateParameters &, const ScreenCoordinate &) |
| Obtains the screen coordinate out of a given geographical coordinate. More...
|
|
RendererState acts as a Memento object that is able to extract data out of UpdateParameters (an opaque object from the public API perspective).
Definition at line 14 of file renderer_state.hpp.
◆ getCameraOptions()
◆ hasImage()
static bool mbgl::RendererState::hasImage |
( |
const UpdateParameters & |
, |
|
|
const std::string & |
id |
|
) |
| |
|
static |
Returns whether an image with the given ID exists from a given UpdateParamters object.
◆ hasLayer()
static bool mbgl::RendererState::hasLayer |
( |
const UpdateParameters & |
, |
|
|
const std::string & |
id |
|
) |
| |
|
static |
Returns whether a layer with the given ID exists from a given UpdateParamters object.
◆ hasSource()
static bool mbgl::RendererState::hasSource |
( |
const UpdateParameters & |
, |
|
|
const std::string & |
id |
|
) |
| |
|
static |
Returns whether a source with the given ID exists from a given UpdateParamters object.
◆ latLngForPixel()
Obtains the screen coordinate out of a given geographical coordinate.
◆ pixelForLatLng()
Obtains the geographical coordinate out of a given screen coordinate.
The documentation for this class was generated from the following file:
- /home/runner/work/maplibre-native/maplibre-native/include/mbgl/renderer/renderer_state.hpp