Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
gva::rendererMap Class Reference

Class definition of the rendererMap. More...

#include <renderer_map.h>

Collaboration diagram for gva::rendererMap:
Collaboration graph

Public Member Functions

 rendererMap (std::string_view map, std::string_view style, int width, int height)
 Construct a new renderer Map object.
 
 ~rendererMap ()
 Destroy the renderer Map object.
 
rendererMapoperator= (const rendererMap &a)=delete
 Copy constructor, deleted.
 
rendererMap const & operator= (rendererMap &&a)=delete
 Move constructor, deleted.
 
GvaStatusTypes Project (double zoom, double lon, double lat, cairo_surface_t **surface)
 Project the map.
 
void SetHeight (int height)
 Set the Height attribute.
 
void SetWidth (int width)
 Set the Width attribute.
 

Detailed Description

Class definition of the rendererMap.

Constructor & Destructor Documentation

◆ rendererMap()

gva::rendererMap::rendererMap ( std::string_view  map,
std::string_view  style,
int  width,
int  height 
)

Construct a new renderer Map object.

Parameters
mapthe map file
stylethe style file
widththe width of the map
heightthe height of the map

Member Function Documentation

◆ operator=() [1/2]

rendererMap & gva::rendererMap::operator= ( const rendererMap a)
delete

Copy constructor, deleted.

Parameters
a
Returns
rendererMap&

◆ operator=() [2/2]

rendererMap const & gva::rendererMap::operator= ( rendererMap &&  a)
delete

Move constructor, deleted.

Parameters
a
Returns
rendererMap const&

◆ Project()

GvaStatusTypes gva::rendererMap::Project ( double  zoom,
double  lon,
double  lat,
cairo_surface_t **  surface 
)

Project the map.

Parameters
zoomthe zoom level
lonthe longitude
latthe latitude
surfacethe surface to project onto
Returns
GvaStatusTypes

◆ SetHeight()

void gva::rendererMap::SetHeight ( int  height)
inline

Set the Height attribute.

Parameters
heightthe height of the map

◆ SetWidth()

void gva::rendererMap::SetWidth ( int  width)
inline

Set the Width attribute.

Parameters
widththe width of the map

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