CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_framework.h>
Public Member Functions | |
TViewState (const char *aXmlText) | |
TResult | ReadFromXml (const char *aXmlText) |
bool | operator== (const TViewState &aOther) const |
bool | operator< (const TViewState &aOther) const |
bool | operator!= (const TViewState &aOther) const |
std::string | ToXml () const |
Public Attributes | |
int32_t | iWidthInPixels = 256 |
int32_t | iHeightInPixels = 256 |
TPointFP | iViewCenterDegrees |
double | iScaleDenominator = 0 |
double | iRotationDegrees = 0 |
bool | iPerspective = false |
TPerspectiveParam | iPerspectiveParam |
The view state, which can be retrieved or set so that maps can be recreated.
|
explicit |
Reads a view state object from its XML form.
|
inline |
The inequality operator.
bool CartoType::TViewState::operator< | ( | const TViewState & | aOther | ) | const |
The less-than operator.
bool CartoType::TViewState::operator== | ( | const TViewState & | aOther | ) | const |
The equality operator.
TResult CartoType::TViewState::ReadFromXml | ( | const char * | aXmlText | ) |
Reads a view state object from its XML form.
std::string CartoType::TViewState::ToXml | ( | ) | const |
Creates a string representing a view state in XML.
int32_t CartoType::TViewState::iHeightInPixels = 256 |
The display height in pixels.
bool CartoType::TViewState::iPerspective = false |
True if perspective mode is on.
TPerspectiveParam CartoType::TViewState::iPerspectiveParam |
The parameters to be used for perspective mode.
double CartoType::TViewState::iRotationDegrees = 0 |
The clockwise rotation of the view in degrees.
double CartoType::TViewState::iScaleDenominator = 0 |
The denominator of the scale fraction; e.g., 50000 for 1:50000.
TPointFP CartoType::TViewState::iViewCenterDegrees |
The view center in degrees longitude (x) and latitude (y).
int32_t CartoType::TViewState::iWidthInPixels = 256 |
The display width in pixels.