MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mbgl::RendererState Class Reference

#include <renderer_state.hpp>

Static Public Member Functions

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...
 

Detailed Description

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.

Member Function Documentation

◆ getCameraOptions()

static CameraOptions mbgl::RendererState::getCameraOptions ( const UpdateParameters &  ,
const EdgeInsets = {} 
)
static

Obtains a CameraOptions out of a given UpdateParameters object.

◆ 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()

static LatLng mbgl::RendererState::latLngForPixel ( const UpdateParameters &  ,
const ScreenCoordinate  
)
static

Obtains the screen coordinate out of a given geographical coordinate.

◆ pixelForLatLng()

static ScreenCoordinate mbgl::RendererState::pixelForLatLng ( const UpdateParameters &  ,
const LatLng  
)
static

Obtains the geographical coordinate out of a given screen coordinate.


The documentation for this class was generated from the following file: