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 | |
TPerspectiveParam (const char *aText) | |
TResult | ReadFromXml (const char *aText) |
std::string | ToXml () const |
bool | operator== (const TPerspectiveParam &aP) const |
bool | operator!= (const TPerspectiveParam &aP) const |
bool | operator< (const TPerspectiveParam &aP) const |
Public Attributes | |
TPointFP | iPositionDegrees |
bool | iAutoPosition = true |
double | iHeightInMeters = 0 |
double | iAzimuthDegrees = 0 |
bool | iAutoAzimuth = true |
double | iDeclinationDegrees = 30 |
double | iRotationDegrees = 0 |
double | iFieldOfViewDegrees = 22.5 |
Parameters giving detailed control of the perspective view.
|
explicit |
Reads a perspective parameter object from its XML form. Throws an exception if there is an error.
|
inline |
The inequality operator.
|
inline |
The less-than operator.
|
inline |
The equality operator.
TResult CartoType::TPerspectiveParam::ReadFromXml | ( | const char * | aText | ) |
Reads a perspective parameter object from its XML form. Returns an error code; does not throw exceptions.
std::string CartoType::TPerspectiveParam::ToXml | ( | ) | const |
Creates a string representing a perspective parameter object in XML.
bool CartoType::TPerspectiveParam::iAutoAzimuth = true |
If true, ignore iAzimuthDegrees and use the current map orientation.
bool CartoType::TPerspectiveParam::iAutoPosition = true |
If true, ignore iPosition, and set the camera position so that the location in the center of the display is shown.
double CartoType::TPerspectiveParam::iAzimuthDegrees = 0 |
The azimuth of the camera in degrees going clockwise, where 0 is N, 90 is E, etc.
double CartoType::TPerspectiveParam::iDeclinationDegrees = 30 |
The declination of the camera downward from the horizontal plane. Values are clamped to the range -90...90.
double CartoType::TPerspectiveParam::iFieldOfViewDegrees = 22.5 |
The camera's field of view in degrees.
double CartoType::TPerspectiveParam::iHeightInMeters = 0 |
The height of the camera above the terrain. The value 0 causes a default value to be used, which is the width of the display.
TPointFP CartoType::TPerspectiveParam::iPositionDegrees |
The position of the point on the terrain below the camera, in degrees longitude (x) and latitude (y).
double CartoType::TPerspectiveParam::iRotationDegrees = 0 |
The amount by which the camera is rotated about its axis, after applying the declination, in degrees going clockwise.