Maria GDK 5.0.0.850
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::PointSymbolCell::CellItem Struct Reference

The cell item represents one point symbol entry in the tile This item has a geographical and projected symbol position, as well as the symbol ID for the symbol and flags for scale, rotation, alpha, anchor alignment and grayscale. The flags are packed into 32 bits as follows: +----—+-----—+-----—+-------—+------—+-----—+ | alpha | Scale | Rotate | hAnchor | vAnchor | Misc. | +----—+-----—+-----—+-------—+------—+-----—+ 4b 8b 8b 5b 5b 2b. More...

#include <MPointSymbolCell.h>

Public Member Functions

 CellItem (const BasicGeoTypes::GeoPos &gp, int16_t offsetX, int16_t offsetY, std::uint16_t si, std::uint32_t flags1, std::uint32_t flags2)
 
void setSymbolId (std::uint16_t id)
 
std::uint16_t getSymbolId () const
 
std::uint32_t getFlags1 () const
 
std::uint32_t getFlags2 () const
 
void setProjectedPos (const BasicGeoTypes::PointFXY &p)
 
void setOffsetPos (int16_t x, int16_t y)
 Pixel offset relative to the geographical point.
 
int16_t getOffsetX () const
 
int16_t getOffsetY () const
 
const BasicGeoTypes::PointFXYgetProjectedPos () const
 
void setGeoPos (const BasicGeoTypes::GeoPos &gp)
 
const BasicGeoTypes::GeoPosgetGeoPos () const
 
float getAlpha () const
 
float getScale () const
 
float getRotation () const
 
float getHAnchor () const
 
float getVAnchor () const
 
bool getGrayscale () const
 
int getDynamicScaleTable () const
 
bool dirtyPos () const
 

Detailed Description

The cell item represents one point symbol entry in the tile This item has a geographical and projected symbol position, as well as the symbol ID for the symbol and flags for scale, rotation, alpha, anchor alignment and grayscale. The flags are packed into 32 bits as follows: +----—+-----—+-----—+-------—+------—+-----—+ | alpha | Scale | Rotate | hAnchor | vAnchor | Misc. | +----—+-----—+-----—+-------—+------—+-----—+ 4b 8b 8b 5b 5b 2b.

The "Misc" category is currently only "grayscale" on the LSB.


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