#include <cartotype_framework.h>
Parameters giving detailed control of the perspective view.
◆ PerspectiveParam()
CartoTypeCore::PerspectiveParam::PerspectiveParam |
( |
const char * |
aText | ) |
|
|
explicit |
Reads a perspective parameter object from its XML form. Throws an exception if there is an error.
◆ operator!=()
bool CartoTypeCore::PerspectiveParam::operator!= |
( |
const PerspectiveParam & |
aP | ) |
const |
|
inline |
◆ operator<()
bool CartoTypeCore::PerspectiveParam::operator< |
( |
const PerspectiveParam & |
aP | ) |
const |
|
inline |
◆ operator==()
bool CartoTypeCore::PerspectiveParam::operator== |
( |
const PerspectiveParam & |
aP | ) |
const |
|
inline |
◆ ReadFromXml()
Result CartoTypeCore::PerspectiveParam::ReadFromXml |
( |
const char * |
aText | ) |
|
Reads a perspective parameter object from its XML form. Returns an error code; does not throw exceptions.
◆ ToXml()
std::string CartoTypeCore::PerspectiveParam::ToXml |
( |
| ) |
const |
Creates a string representing a perspective parameter object in XML.
◆ AutoAzimuth
bool CartoTypeCore::PerspectiveParam::AutoAzimuth = true |
If true, ignore iAzimuthDegrees and use the current map orientation.
◆ AutoPosition
bool CartoTypeCore::PerspectiveParam::AutoPosition = true |
If true, ignore iPosition, and set the camera position so that the location in the center of the display is shown.
◆ AzimuthDegrees
double CartoTypeCore::PerspectiveParam::AzimuthDegrees = 0 |
The azimuth of the camera in degrees going clockwise, where 0 is N, 90 is E, etc.
◆ DeclinationDegrees
double CartoTypeCore::PerspectiveParam::DeclinationDegrees = 30 |
The declination of the camera downward from the horizontal plane. The value 90 is equivalent to looking straight downwards, and perspective is apparent only in 3D buildings. Values are clamped to the range 25...90 when creating the perspective transform. Smaller declinations cause performance problems and integer overflow in coordinate conversion.
◆ FieldOfViewDegrees
double CartoTypeCore::PerspectiveParam::FieldOfViewDegrees = 22.5 |
The camera's field of view in degrees.
◆ HeightMeters
double CartoTypeCore::PerspectiveParam::HeightMeters = 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.
◆ PositionDegrees
PointFP CartoTypeCore::PerspectiveParam::PositionDegrees |
The position of the point on the terrain below the camera, in degrees longitude (x) and latitude (y).
◆ RotationDegrees
double CartoTypeCore::PerspectiveParam::RotationDegrees = 0 |
The amount by which the camera is rotated about its axis, after applying the declination, in degrees going clockwise.
The documentation for this class was generated from the following files:
- cartotype_framework.h
- cartotype_framework.cpp