![]() |
Maria GDK 5.0.0.737
Documentation of native code in develop branch
|
Namespaces | |
namespace | GeneratorUtils |
namespace | LabelLayout |
namespace | MapTileCacheUtils |
namespace | ViewportUtils |
namespace | WebMercator |
Typedefs | |
typedef std::vector< std::shared_ptr< ResourceContainer > > | ResourceContainers |
using | Rect2d = Rect2< STK::Vector2d > |
using | Rect2f = Rect2< STK::Vector2f > |
typedef unsigned int | RGBA |
using | TileId = uint64_t |
Unique ID type for each quad tile. | |
using | FullTileId = std::tuple< int, TileId > |
Combination of tile cache id and tile id. | |
typedef void *(__cdecl * | GetObjectDataFunc) (void *requestProto, int requestSize, int *resultLength) |
typedef void *(__cdecl * | GeoObjectsCoreInfoFunc) (void *requestProto, int requestSize, int *resultLength) |
typedef void *(__cdecl * | GeoObjectsNotifyChangesFunc) (void *changesProto, int bufferSize) |
typedef void *(__cdecl * | FreeGlobalBufferFunc) (void *buffer) |
typedef std::unordered_map< ItemId, std::shared_ptr< GeoRenderItem >, ItemId::Hash > | GeoRenderItemMap |
typedef std::tuple< std::string, int, bool, double, double, int, bool > | flKey_t |
typedef std::unordered_map< const flKey_t, FlElm, flKey_hash, flKey_equal > | flMap_t |
typedef std::vector< Anchor > | Anchors |
typedef std::vector< GlyphInstance > | GlyphInstances |
Enumerations | |
enum class | ElevationDataType { Undefined , TerrainModel , SurfaceModel , Bathymetry , Clutter , RoofHeights } |
enum | ItemStateFlags { Active = 1 << 0 , Deleted = 1 << 1 , Filtered = 1 << 2 , Historical = 1 << 3 , Placeholder = 1 << 4 , None = 0 , All = Active | Deleted | Filtered | Historical , ExternalStateSet = 1 << 7 } |
enum | BearingUnit { Degrees , Miles } |
enum | SpeedUnit { Mps , Kmh , Kts , Mph } |
enum | ElevationUnit { Meters , Feet , Kilometers } |
enum | ImageFileType { IMAGE_FILE_JPG , IMAGE_FILE_PNG , IMAGE_FILE_GIF , IMAGE_FILE_TIFF , IMAGE_FILE_BMP , IMAGE_FILE_WEBP , IMAGE_FILE_ICO , IMAGE_FILE_INVALID } |
enum class | SymbolColorScheme { Dark , Medium , Light } |
enum class | LabelPlacement { Unitialised =0 , TopLeft = 1 , TopCenter = 2 , TopRight = 3 , CenterLeft = 4 , CenterCenter = 5 , CenterRight = 6 , BottomLeft = 7 , BottomCenter = 8 , BottomRight = 9 } |
enum class | LabelLayer { UndefinedLayer = 0 , DrawObjectLayer = 1 , MapLayer = 2 } |
enum class | MapContentType { UndefinedMap , VectorMap , RasterMap , Propagation , Elevation , ElevationNormals , WmsMap , TiledDrawObjects , TiledDrawObjects3D , ElevationColorMap , ColorMap , GenericData } |
enum class | MapServiceType { UndefinedService , VectorService , RasterService , CacheService , WmsService , PropagationService , RoutePlanningService } |
enum class | RasterCompressionType { None = 0 , Lossless = 1 , Lossy = 2 , Texture = 3 , Auto = 4 , Any = 5 , UndefinedCompression = 6 } |
enum class | FetchResultCode { None , FetchOk , InvalidSession , MapGenerationFailed , NotReady , ResolveError , Canceled , OutsideArea , OutsideResolution , Unavailable } |
enum class | InterpolationMethod { Nearest , Bilinear } |
enum | MapRequestFlags { NoFlags = 0x0 , StripAlpha = 0x80 , LowQuality = 0x100 , PointPixels = 0x200 } |
enum class | MapDataProviderFlags { NoFlags = 0x0 , Synchronous = 0x100 } |
enum class | TemplateLayerType { Undefined , MapLayer , ModLayer , Placeholder , PropagationLayer , WmsLayer , OverlayLayer , ElevationLayer , ElevationColorMapLayer , ColorMapLayer } |
enum class | MouseButton { NoButton = 0x0000 , LeftButton = 0x0001 , RightButton = 0x0002 , MiddleButton = 0x0004 } |
enum class | MouseEventType { None = 0x0000 , MousePressed = 0x0001 , MouseReleased = 0x0002 , MouseDoubleClick = 0x0004 , MouseMove = 0x0008 , MouseWheel = 0x0016 } |
enum | ChildDir { SW = 0 , SE , NW , NE , MAX_CH_DIR } |
The four child tile directions. | |
enum class | NeighDir { NW = 0 , N , NE , E , SE , S , SW , W } |
Neighbor directions, including corners. | |
enum class | DistanceUnit { Meters , Kilometers , Feet , Yards , Miles , NauticalMiles , Metric , Imperial , Degrees , UnitSphere , Pixels , Millimeters , Centimeters } |
enum class | VerticalReferenceCode { MSL , AGL , QFE , QNH , AMSL } |
enum class | BearingType { True , Magnetic , Grid } |
enum class | PositionFormat { GeoDeg , GeoDM , GeoDMS , GeoText , MGRS_1m , MGRS_10m , MGRS_100m , MGRS_1km , MGRS_10km , UTM , UTM_LC2IS , Georef , LatLonDdmm , LatLonDdmmm , LatLonDdmmss , LatLonDdmmsss , GARS } |
enum class | ClusteringMode { None , Clustering , Bounds } |
enum | LabelType { Alphabetic , Numeric } |
Label type definition. More... | |
enum | LabelAxis { Horizontal , Vertical } |
Label axis definition. More... | |
enum | ShowLabelOnAxis { Top , Left , Right , Bottom } |
Defines on which axis labels should be shown. More... | |
enum class | DrawObjectDataFlags : std::uint32_t { None = 0 , ExcludeGeoIndexing = 1 , NativeRendering = 2 , NativeRendering3D = 4 , TiledRendering = 8 , TiledRendering3D = 16 , NotPointBehavior = 32 , FixedViewSize = 64 } |
enum class | CurveMode { Plain = 0 , Loxodrome = 1 , GreatCircle = 2 } |
enum class | HorizontalAnchor { Left , Center , Right } |
Horizontal anchor positions. | |
enum class | VerticalAnchor { Top , Middle , Bottom } |
Vertical anchor positions. | |
enum class | TextAlignment { Centered , Left , Right } |
Horizontal alignment of text lines. | |
enum class | Direction { Begin , End } |
Indicates at which end of a Corridor Area to operate on. | |
enum class | GeneralPositions { North , South , East , West , Center } |
Describes in which direction the text should be drawn on a polygon area line. | |
enum class | PolygonAreaFeintRelativePosition { Above , Below , Left , Right , Center } |
Describes where the text is to be placed relative to the modier. | |
enum class | ArrowType { Simple , Outline , Fill , Double , Invert , InvertWide } |
enum class | LineEndingFigure { None , Simple , OutlineArrow , OutlineArrowFilled , OutlineNarrowArrow , OutlineNarrowArrowFilled , Diamond , DiamondFilled , Circle , CircleFilled , VerticalLine } |
Describes possible ending figures of a line. | |
enum class | FigureType { X , O } |
enum class | LineEndTextPosition { Begin , End , BeginAndEnd } |
Defines if the text should be placed at the beginning, end or both of the line. | |
enum class | LineTextPositionAlongLine { Undefined , Start , Centered , CenteredStartToMiddle , End , Repeat } |
Defines if the text should be placed at the beginning, end or centered along a line. | |
enum class | LineTextPositionVertical { Below , Middle , Above } |
Defines if the text should be placed above or below the line. | |
enum class | TailType { Straight , Concave } |
enum class | TrafficArrowType { Undefined , OneWay , TwoWay , Alternating } |
Enum describing the different types of traffic arrow used in line renderers. | |
enum class | TextBlockPosition { Undefined , Center , OutsideNorthWest , OutsideSouth , OutsideNorth , OutsideWest , OutsideEast , OutsideSouthWest , OutsideSouthEast , OutsideNorthEast , InsideWest , InsideEast , InsideNorth , InsideSouth , InsideNorthWest , InsideNorthEast , InsideSouthWest , InsideSouthEast } |
Enum describing the different placements of a text block. | |
enum class | Range { Undefined , Min , Max } |
Enum describing the different ranges to use. | |
enum class | OrbitAreaFigureType { Undefined , RaceTrack , FigureEight } |
Enum describing the different figures to draw a orbit area as. | |
enum class | OrbitAreaDirection { Undefined , Left , Right } |
Enum describing the different direction of orbit that is valid. | |
enum class | FillStyle { None , Solid , BackwardDiagonal , Horizontal , Vertical , ForwardDiagonal , Cross , DiagonalCross } |
enum class | DashStyle { Solid , Dash , DashDot , DashDotDot , Dot , Custom } |
enum class | IconStyle { None , Arrow1Filled , Arrow2Line , AbatisLine , DiagonalBackward , DiagonalForward , DiagonalCross , StraightLine , ArrowLineAndDash , ArrowDouble , ArrowsPoint2Point , ArrowFeather , ArrowTag , OverheadWire , ArrowOneWay , ArrowTwoWay , ArrowAlternating , AntipersonnelMine , AntipersonnelMineDirectionalEffects , AntitankMine , AntitankMineAntiHandlingDevice , WideAreaAntitankMine , UnspecifiedMine , BoobyTrap , Circle } |
enum class | LineStyle { None , SawOpenAbove , SawOpenCenter , SawOpenBelow , SawFilledAbove , SawFilledBelow , SawGapOpenAbove , SawGapOpenBelow , CircleFilled , CircleOpen , HalfCircleOpenAbove , HalfCircleOpenBelow , HalfCircleFilledAbove , HalfCircleFilledBelow , HalfCircleDottedAbove , HalfCircleDottedBelow , SawCircleFilledAbove , SawCircleFilledBelow , RectangleGapOpenAbove , SawClosedAbove , SawClosedBelowGap , PatternWithXGap , PatternWithXAndStrikethrough , PatternWithXAndStrikethroughGap , PatternWithXXAndStrikethroughGap , PatternWithXAndLineBelow , PatternWithXAndLineAboveBelow , PatternWithOAndLineBelow , PatternWithOStrikethroughAndBelow , PatternWithOAndLineAboveBelow , MaskInvSawGapOpenAbove , MaskSawGapFilledAbove , VerticalLine , HalfLine } |
enum class | SymbolLabelPlacement { Center = 0 , Top , Bottom , TopLeft , TopRight , BottomLeft , BottomRight , Left1 , Left2 , Left3 , Right1 , Right2 , Right3 , Center1 , Center3 , NumPlacements } |
Placement of labels around a point symbol. Left1-3 and Righ1-3 are numbered from top to bottom between TopLeft/Right and BottomLeft/Right. | |
enum class | MineType { Unspecified , Antipersonnel , AntipersonnelDirectional , Antitank , AntitankAntiHandlingDevice , AntitankWideArea , BoobyTrap , Mixed } |
enum class | MosaicResult { OK , OutsideArea , OutsideResolution , Error } |
enum | GridLabelPart { major = 0x1 , minor = 0x2 } |
enum | GridLabelPlacement { frame = 0x1 , other = 0x2 } |
enum | GridTypes { global = 0x1 , whiskey , cgrs , gars , utm , mgrs , ups , mups , ccgo } |
enum | FrameSettingsMask { Margin = 0x1 , Frame = 0x2 , FrameColor = 0x4 , FrameLine = 0x8 , LineColor = 0x10 , LineThickness = 0x20 } |
enum | MGrid4WhiskeyOriginReference { orCenter = 0 , orNW , orNE , orSW , orSE } |
enum | GridEdges { NO_EDGE = 0x0 , LEFT_EDGE = 0x1 , RIGHT_EDGE = 0x2 , TOP_EDGE = 0x4 , BOTTOM_EDGE = 0x8 } |
enum | DatumTranslationMethods { Leave_It = 0 , Geocentric_Translation = 1 , Position_Vector = 2 , Coordinate_Frame = 3 } |
enum | PolarStereographicVariants { A , B , C } |
enum | { GET_MIN_X = 1 , GET_MAX_X , GET_MIN_Y , GET_MAX_Y } |
enum | { GO_LEFT = 1 , GO_RIGHT , GO_UP , GO_DOWN } |
Functions | |
std::string | toString (ElevationDataType elevDataType) |
ElevationDataType | stringToElevationDataType (const std::string &str) |
bool | readTextFile (const std::string &fileName, std::string &target) |
std::string | readTextFile (const std::string &fileName) |
std::vector< uint8_t > | readBinaryFile (const std::string &fileName) |
template<class T > | |
bool | EraseFirst (std::vector< T > &v, T val) |
ImageFileType | getImageTypeByMagic (const unsigned char *data, unsigned long len) |
const char * | getImageExtByMagic (const unsigned char *data, unsigned long len) |
SymbolColorScheme | ParseColorScheme (const std::string &colorSchemeString) |
STK::LogStream | logDebug () |
STK::LogStream | logInfo () |
STK::LogStream | logWarning () |
STK::LogStream | logError () |
std::string | toString (MapContentType map_content_type) |
MapContentType | stringToMapContentType (const std::string &str) |
std::string | toString (MapServiceType map_service_type) |
MapServiceType | stringToMapServiceType (const std::string &str) |
RasterCompressionType | stringToCompression (const std::string &str) |
std::string | toString (RasterCompressionType comp) |
std::string | toString (FetchResultCode code) |
bool | parseFromStringWithLengthPrefix (const std::string &in_buf, ::google::protobuf::Message &message) |
bool | serializeToStringWithLengthPrefix (const ::google::protobuf::Message &message, std::string &out_buf) |
bool | parseRawImage (const MariaProtobuf::ProtoRawImageData &rawImageData, STK::Image &img) |
Parse protobuf image data into an STK::Image. | |
bool | toProtobuf (const Maria::GenerateMapTileRequest &src, MariaProtobuf::GenerateMapTileRequestMessage &dst) |
bool | toProtobuf (const Maria::SemanticVersionNumber &src, MariaProtobuf::ProtoSemanticVersionNumber &dst) |
void | toProtobuf (const Maria::SemanticVersionSpecification &src, MariaProtobuf::ProtoVersionSpecification &dst) |
bool | toProtobuf (const Maria::TileCacheSpec &src, MariaProtobuf::ProtoTileCacheSpec &dst) |
bool | toProtobuf (const Maria::ResolutionArea &src, MariaProtobuf::ProtoMapResolutionArea &dst) |
bool | toProtobuf (const Maria::MapEntry &src, MariaProtobuf::ProtoMapEntry &dst) |
void | toProtobuf (const Maria::MapContentQuery &src, MariaProtobuf::ProtoMapContentQuery &dst) |
bool | fromProtobuf (const MariaProtobuf::ProtoTileCacheSpec &src, Maria::TileCacheSpec &dst) |
bool | fromProtobuf (const MariaProtobuf::ProtoMapResolutionArea &src, Maria::ResolutionArea &dst) |
void | fromProtobuf (const MariaProtobuf::ProtoMapContentQuery &src, Maria::MapContentQuery &dst) |
void | fromProtobuf (const MariaProtobuf::ProtoSemanticVersionNumber &src, Maria::SemanticVersionNumber &dst) |
void | fromProtobuf (const MariaProtobuf::ProtoVersionSpecification &src, Maria::SemanticVersionSpecification &dst) |
bool | fromProtobuf (const MariaProtobuf::ProtoMapEntry &src, Maria::MapEntry &dest) |
bool | toByteArray (const Maria::GenerateMapTileRequest &src, std::string &dst) |
RGBA | toRGBA (int r, int g, int b, int a=255) |
RGBA | floatToRGBA (float r, float g, float b, float a=1.0) |
RGBA | toARGB (int r, int g, int b, int a=255) |
RGBA | floatToARGB (float r, float g, float b, float a=1.0) |
void | RGBAToFloat (RGBA rgba, float &r, float &g, float &b, float &a) |
bool | operator> (const SemanticVersionNumber &lhs, const SemanticVersionNumber &rhs) |
bool | operator<= (const SemanticVersionNumber &lhs, const SemanticVersionNumber &rhs) |
bool | operator>= (const SemanticVersionNumber &lhs, const SemanticVersionNumber &rhs) |
std::string & | LTrimString (std::string &s, const std::locale &loc=std::locale::classic()) |
trim from start | |
std::string & | RTrimString (std::string &s, const std::locale &loc=std::locale::classic()) |
trim from end | |
std::string & | TrimString (std::string &s, const std::locale &loc=std::locale::classic()) |
trim from both ends | |
std::string | ToTrimmedString (const std::string &s, const std::locale &loc=std::locale::classic()) |
Trim without modifying input string. | |
template<class ContainerT > | |
void | SplitString (const std::string &str, ContainerT &tokens, const unsigned char delimiter, bool trimElements=false, bool trimEmpty=false, const std::locale &loc=std::locale::classic()) |
Split string with single-char delimiter. | |
template<class ContainerT > | |
void | SplitString (const std::string &str, ContainerT &tokens, const std::function< bool(const signed char)> &pred, bool trimElements=false, bool trimEmpty=false, const std::locale &loc=std::locale::classic()) |
Split string, with a function. | |
template<class ContainerT > | |
void | SplitString (const std::string &str, ContainerT &tokens, const std::string &delimiters=" ", bool trimElements=false, bool trimEmpty=false, const std::locale &loc=std::locale::classic()) |
Split string with multiple possible delimiters. | |
std::string | JoinString (const std::string &delim, const std::vector< std::string > &strList) |
template<typename T , typename CharT = char> | |
std::optional< T > | TryParseNumber (const std::basic_string_view< CharT > &sv, const std::locale &loc=std::locale::classic()) |
template<typename T > | |
std::optional< T > | TryParseNumber (const std::string_view &sv, const std::locale &loc=std::locale::classic()) |
template<typename T > | |
std::optional< T > | TryParseNumber (const std::wstring_view &sv, const std::locale &loc=std::locale::classic()) |
void | Replace (std::string &str, const std::string &oldStr, const std::string &newStr) |
bool | TryParseDouble (const std::string &str, double &result, const std::locale &loc=std::locale::classic()) |
double | ParseDouble (const std::string &str, const std::locale &loc=std::locale::classic()) |
Locale independent parsing a double, without error checking. | |
double | ParseDouble (const std::wstring &str, const std::locale &loc=std::locale::classic()) |
bool | TryParseInt (const std::string &str, int &result, const std::locale &loc=std::locale::classic()) |
int | ParseInt (const std::string &str) |
int | ParseInt (const std::wstring &str) |
bool | TryParseColor (const std::string &str, int &r, int &g, int &b, int &a) |
bool | TryParseDashStyle (const std::string &dashString, std::vector< unsigned char > &dashes) |
std::string | ToLowerCase (const std::string &str, const std::locale &loc=std::locale::classic()) |
std::string | ToUpperCase (const std::string &str, const std::locale &loc=std::locale::classic()) |
bool | EndsWith (const std::string &str, const std::string &suffix) |
bool | TryParseBool (const std::string &str, bool &result) |
Attempt to parse a boolean value. It accepts the following variants: true: True, true, TRUE false: False, false, FALSE. | |
bool | isN (int child_dir) |
Returns true if the child direction is in the northern half. | |
bool | isE (int child_dir) |
Returns true if the child direction is in the eastern half. | |
int | setN (int child_dir) |
int | setE (int child_dir) |
int | swapNS (int child_dir) |
Swap North/South component of the child direction index. | |
int | swapEW (int child_dir) |
Swap East/West component of the child direction index. | |
int | swapDiag (int child_dir) |
Swap child direction diagonally, so that NE becomes NW and SW becomes NE. | |
TileId | EncodeTileId (int lvl, int x, int y, int quadid=0x0) |
TileId | EncodeTileId (uint8_t lvl, uint32_t x, uint32_t y, uint8_t quadId=0) |
void | DecodeTileId (TileId tileId, int &lvl, int &x, int &y, int &treeid) |
void | DecodeTileId (TileId tileId, int &lvl, int &x, int &y) |
void | DecodeTileId (TileId tileId, uint32_t &lvl, uint32_t &x, uint32_t &y, uint32_t &treeid) |
void | DecodeTileId (TileId tileId, uint32_t &lvl, uint32_t &x, uint32_t &y) |
void | DecodeTileId (TileId tileId, uint8_t &lvl, uint32_t &x, uint32_t &y, uint8_t &treeid) |
void | DecodeTileId (TileId tileId, uint8_t &lvl, uint32_t &x, uint32_t &y) |
uint8_t | GetTileLevel (const TileId tileId) |
Extracts the tileID from. | |
void | ReverseTileIndex (int lvl, int &idx) |
TileId | ReverseYTiling (TileId tileId) |
TileId | CalcChildTileId (TileId tileId, int childDir) |
TileId | CalcNeighborTileId (TileId tileId, NeighDir neighDir) |
TileId | CalcParentTileId (TileId tileId) |
TileId | GetAncestorId (TileId tileId, uint8_t ancestorLevel) |
Calculate the ancestor of an ID, at a certain level. | |
bool | IsChildOf (TileId child, TileId parent) |
Returns true if child is child of parent. | |
bool | IsSameSubtree (TileId t1, TileId t2) |
std::string | quadIdToString (const TileId quad_id) |
bool | TileIdIntersects (const TileId tileId, uint32_t rectLevel, uint32_t minX, uint32_t minY, uint32_t maxX, uint32_t maxY) |
Tests for intersection between tile and tile area defined by level plus. | |
std::string | to_string (const DistanceUnit unit) |
std::string | to_string (const VerticalReferenceCode code) |
void | dumpFeatureProperties (const mapbox::feature::property_map &properties, std::ofstream &ss) |
HorizontalAnchor | parseHorizontalAnchor (const std::string &str, HorizontalAnchor defaultValue) |
std::string | getHorizontalAnchorString (HorizontalAnchor horizontalAnchor) |
VerticalAnchor | parseVerticalAnchor (const std::string &str, VerticalAnchor defaultValue) |
std::string | getVerticalAnchorString (VerticalAnchor verticalAnchor) |
FillStyle | parseFillStyleString (const std::string &fillStyleString, FillStyle defaultValue) |
std::string | getFillStyleString (FillStyle fillStyle) |
DashStyle | parseDashStyle (const std::string &str, DashStyle defaultValue) |
std::string | getDashStyleString (DashStyle dashStyle) |
SymbolLabelPlacement | parseSymbolLabelPlacementString (const std::string &placementString, SymbolLabelPlacement defaultValue) |
std::string | getSymbolLabelPlacementString (SymbolLabelPlacement fillStyle) |
SymbolLabelPlacement | parseLabelPositionPlacementString (std::string const &labelPositionPlacementString) |
std::string | GetSymbolCodeWithSymbolModifier (const std::string &symbolCode, DrawObjectData &drawObjectData) |
std::string | GetSymbolCodeWithOrderOfBattle (const std::string &symbolCode, DrawObjectData &drawObjectData) |
std::string | GetSymbolCodeWithStandardIdentityAndTacticalStatus (const std::string &symbolCode, DrawObjectData &data) |
std::string | Get2525DSymbolCodeWithStandardIdentityAndTacticalStatus (const std::string &symbolCode, DrawObjectData &data) |
std::string | Get2525DSymbolCodeWithHQTaskForceDummy (const std::string &symbolCode, DrawObjectData &data) |
std::string | Get2525DSymbolCodeWithAmplifierDescriptor (const std::string &symbolCode, DrawObjectData &data) |
std::string | Get2525DAPP6DSymbolCodeWithModifiers (const std::string &symbolCode, DrawObjectData &data) |
bool | saveFloatBufferTIFF (const Maria::GeoBitmap &img, std::vector< unsigned char > &buffer, bool compress) |
bool | saveShortBufferTIFF (const Maria::GeoBitmap &img, std::vector< unsigned char > &buffer, bool compress) |
bool | saveShortBufferPNG (const Maria::GeoBitmap &img, std::vector< unsigned char > &buffer) |
bool | saveImageBufferPNG (const Maria::GeoBitmap &img, std::vector< unsigned char > &buffer) |
bool | saveImageBufferJPEG (const Maria::GeoBitmap &img, std::vector< unsigned char > &buffer, int quality=85) |
bool | saveImageBufferWEBP (const Maria::GeoBitmap &img, std::vector< unsigned char > &buffer, int quality=85) |
bool | saveImageBufferBMP (const Maria::GeoBitmap &gbm, std::vector< unsigned char > &buffer) |
bool | loadImageBufferPNG (const std::vector< unsigned char > &buffer, GeoBitmap &gbm) |
bool | loadImageBufferWEBP (const std::vector< unsigned char > &buffer, GeoBitmap &gbm) |
bool | loadImageBufferJPEG (const std::vector< unsigned char > &buffer, GeoBitmap &gbm) |
bool | loadFloatBufferTIFF (const std::vector< unsigned char > &buffer, GeoBitmap &data) |
bool | loadShortBufferTIFF (const std::vector< unsigned char > &buffer, GeoBitmap &data) |
bool | loadShortBufferPNG (const std::vector< unsigned char > &buffer, GeoBitmap &data) |
bool | saveShortBufferRHDT (const Maria::GeoBitmap &gbm, std::vector< std::string > &buffer) |
bool | saveFloatBufferFLDT (const Maria::GeoBitmap &gbm, std::vector< std::string > &buffer) |
bool | CompareIntVal (int cndVal, int objVal, FieldCondition::FieldOperator op) |
bool | CompareDblVal (double cndVal, double objVal, FieldCondition::FieldOperator op) |
bool | CompareStringVal (const std::string &cndVal, const std::string &objVal, FieldCondition::FieldOperator op) |
void | collectMetadata (Maria::TileCache &tileCache, const RasterProjector &rp, double pixelScale, long timeout_ms, MapMetadataLayer &mdl) |
Collect metadata for a viewport. Typically not used directly, but through a MapLayer or ElevationData. | |
void | collectMetadata (Maria::TileCache &tileCache, const BasicGeoTypes::GeoRect &rp, double resolution, long timeout_ms, MapMetadataLayer &mdl) |
Collect metadata for a geographical area. Typically not used directly, but through a MapLayer or ElevationData. | |
void | collectMetadata (Maria::TileCache &tileCache, const BasicGeoTypes::GeoPos &pos, double resolution, long timeout_ms, MapMetadataLayer &mdl) |
Collect metadata for a single point. Typically not used directly, but through a MapLayer or ElevationData. | |
PointDXY | DirVector (int dir, double len) |
int | ReverseDir (int dir) |
Variables | |
STK::ILogger * | defaultLog = nullptr |
constexpr TileId | UndefTileId = 0xffffffffffffffff |
constexpr TileId | ROOT_SW = 0x0000000000000000 |
The six root tile Id's. These are stored in the leftmost 4 bits of the quad id. | |
constexpr TileId | ROOT_SC = 0x1000000000000000 |
constexpr TileId | ROOT_SE = 0x2000000000000000 |
constexpr TileId | ROOT_NW = 0x3000000000000000 |
constexpr TileId | ROOT_NC = 0x4000000000000000 |
constexpr TileId | ROOT_NE = 0x5000000000000000 |
const std::unordered_map< std::string, TextBlockPosition > | TextBlockPositionString |
const double | ALMOST_PI2 = 1.57079632679 |
const double | E_RADIUS = 6367250.0 |
const double | WGS84_A = 6378137.0 |
const double | WGS84_B = 6356752.314245 |
const double | WGS84_F = (WGS84_A - WGS84_B) / WGS84_A |
const double | WGS84_E2 = 2.0 * WGS84_F - WGS84_F*WGS84_F |
const double | WGS84_EM2 = ((WGS84_A * WGS84_A) - (WGS84_B * WGS84_B)) / (WGS84_B * WGS84_B) |
file MNativeElevationInterface.h
brief
|
strong |
DrawObjectData - Short description
|
strong |
enum Maria::LabelAxis |
enum Maria::LabelType |
GeoProjectionPolarStereographic - Short description. Detailed description.
|
strong |
Enumerator | |
---|---|
GeoDeg | Lat/Lon Degrees. |
GeoDM | Lat/Lon Degrees and Minutes. |
GeoDMS | Lat/Lon Degrees, Minutes and Seconds. |
GeoText | Lat/Lon Degrees, Minutes and Seconds Text. |
MGRS_1m | Military Grid Reference System. |
UTM | Universal Transverse Mercator. |
UTM_LC2IS | Universal Transverse Mercator - LC2IS. |
Georef | |
LatLonDdmm | Legacy; Lat-Lon degrees and integer minutes, 0-padded, fixed length. |
LatLonDdmmm | Legacy; Lat-Lon degrees and minutes rounded to one decimal, 0-padded, fixed length. |
LatLonDdmmss | Legacy; Lat-Lon degrees, minutes and integer seconds, 0-padded, fixed length. |
LatLonDdmmsss | Legacy; Lat-Lon degrees, minutes and seconds rounded to one decimal, 0-padded, fixed length. |
GARS | Global Area Reference System. (NB! Precision 2.5') |
Calculate the Tile ID for the neigboring tile. This method will return the ID of the neighbor tile in the specified direction. If the neighbor tile is outside the border of the quadtree at the current level, UndefTileId is returned.
tileId | ID of the current tile. |
neighDir | Direction to get the neighbor tile. |
|
inline |
Encode a tile id to level, row, column and quad tree id. The level is the quadtree level, starting with 0 at the root tile. Row column is the grid index at that level, positive y direction is downwards to keep compatible with the Maria map protocol. Quadtree indicates which of the toplevel quadtrees this index is in.
|
inline |
Encode a tile id to level, row, column and quad tree id. The level is the quadtree level, starting with 0 at the root tile. Row column is the grid index at that level, positive y direction is downwards to keep compatible with the Maria map protocol. Quadtree indicates which of the toplevel quadtrees this index is in.
|
inline |
Encode a tile id from level, row, column and quad tree id. The level is the quadtree level, starting with 0 at the root tile. Row column is the grid index at that level, positive y direction is downwards to keep compatible with the Maria map protocol. Quadtree indicates which of the toplevel quadtrees this index is in.
Calculate the ancestor of an ID, at a certain level.
tileId | The tileid to get the ancestor of |
ancestorLevel | What level of ancestor we want. This is an absolute number, not relative to the tileId's level |
|
inline |
Extracts the tileID from.
tileId | the tile id to parse |
Returns true if child t1 is in the same subtree as t2, i.e if t1 is a child of t2 or vice versa.
|
inline |
Replace string in place
|
inline |
Reverse the tiling. Use on the Y index to convert between Google and TMS tiling scheme.
Reverse the Y tile index This is used to convert between Google and TMS tiling scheme. Maria uses Google tiling.
|
inline |
Tests for intersection between tile and tile area defined by level plus.
tileId | The tileid |
rectLevel | the level of the area |
minX | |
minY | |
maxX | |
maxY |
|
inline |
Attempt to parse a boolean value. It accepts the following variants: true: True, true, TRUE false: False, false, FALSE.
str | the string to parse |
result | true on True, true or TRUE, false on False, false or False. Unchanged otherwise |
|
inline |
Try to parse a string as an (A)RGB color Returns true on success. The format may be either HTML-style #[AA]RRGGBB where AA,RR,GG and BB are alpha, and RGB values in hexadecimal or a comma separated array; A,R,G,B where the A is optional and the RGB values are decimal integers.
|
inline |
Try to parse a string as a double value. Returns true on success. The in/out result value is only modified on success.
|
inline |
Try to parse a string as an integer value. Returns true on success. The in/out result value is only modified on success.
const std::unordered_map<std::string, TextBlockPosition> Maria::TextBlockPositionString |