CartoType Android API 7.8.2, 2022-03-25
for Java development on Android
|
Public Member Functions | |
native int | readFromXml (String aText) |
native String | toXml () |
Public Attributes | |
double | iPositionX = 0 |
double | iPositionY = 0 |
boolean | iAutoPosition = true |
double | iHeightInMeters = 0 |
double | iAzimuthDegrees = 0 |
boolean | iAutoAzimuth = true |
double | iDeclinationDegrees = 30 |
double | iRotationDegrees = 0 |
double | iFieldOfViewDegrees = 22.5 |
Parameters giving detailed control of the perspective view.
native int com.cartotype.PerspectiveParam.readFromXml | ( | String | aText | ) |
Reads a perspective parameter object from its XML form. Returns an error code (0 = success).
native String com.cartotype.PerspectiveParam.toXml | ( | ) |
Creates a string representing a perspective parameter object in XML.
boolean com.cartotype.PerspectiveParam.iAutoAzimuth = true |
If true, ignore iAzimuthDegrees and use the current map orientation.
boolean com.cartotype.PerspectiveParam.iAutoPosition = true |
If true, ignore iPosition, and set the camera position so that the location in the center of the display is shown.
double com.cartotype.PerspectiveParam.iAzimuthDegrees = 0 |
The azimuth of the camera in degrees going clockwise, where 0 is N, 90 is E, etc.
double com.cartotype.PerspectiveParam.iDeclinationDegrees = 30 |
The declination of the camera downward from the horizontal plane. Values are clamped to the range -90...90.
double com.cartotype.PerspectiveParam.iFieldOfViewDegrees = 22.5 |
The camera's field of view in degrees.
double com.cartotype.PerspectiveParam.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.
double com.cartotype.PerspectiveParam.iPositionX = 0 |
The X coordinate (longitude in degrees) of the position of the point on the terrain below the camera.
double com.cartotype.PerspectiveParam.iPositionY = 0 |
The Y coordinate (latitude in degrees) of the position of the point on the terrain below the camera.
double com.cartotype.PerspectiveParam.iRotationDegrees = 0 |
The amount by which the camera is rotated about its axis, after applying the declination, in degrees going clockwise.