CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_framework.h>
Public Member Functions | |
ViewState (const char *aXmlText) | |
Result | ReadFromXml (const char *aXmlText) |
bool | operator== (const ViewState &aOther) const |
bool | operator< (const ViewState &aOther) const |
bool | operator!= (const ViewState &aOther) const |
std::string | ToXml () const |
Public Attributes | |
int32_t | WidthInPixels = 256 |
int32_t | HeightInPixels = 256 |
PointFP | ViewCenterDegrees |
double | ScaleDenominator = 0 |
double | RotationDegrees = 0 |
bool | Perspective = false |
CartoTypeCore::PerspectiveParam | PerspectiveParam |
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 CartoTypeCore::ViewState::operator< | ( | const ViewState & | aOther | ) | const |
The less-than operator.
bool CartoTypeCore::ViewState::operator== | ( | const ViewState & | aOther | ) | const |
The equality operator.
Result CartoTypeCore::ViewState::ReadFromXml | ( | const char * | aXmlText | ) |
Reads a view state object from its XML form.
std::string CartoTypeCore::ViewState::ToXml | ( | ) | const |
Creates a string representing a view state in XML.
int32_t CartoTypeCore::ViewState::HeightInPixels = 256 |
The display height in pixels.
bool CartoTypeCore::ViewState::Perspective = false |
True if perspective mode is on.
CartoTypeCore::PerspectiveParam CartoTypeCore::ViewState::PerspectiveParam |
The parameters to be used for perspective mode.
double CartoTypeCore::ViewState::RotationDegrees = 0 |
The clockwise rotation of the view in degrees.
double CartoTypeCore::ViewState::ScaleDenominator = 0 |
The denominator of the scale fraction; e.g., 50000 for 1:50000.
PointFP CartoTypeCore::ViewState::ViewCenterDegrees |
The view center in degrees longitude (x) and latitude (y).
int32_t CartoTypeCore::ViewState::WidthInPixels = 256 |
The display width in pixels.