CartoType Android API 7.8.2, 2022-03-25
for Java development on Android
Public Member Functions | Public Attributes | List of all members
com.cartotype.PerspectiveParam Class Reference

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
 

Detailed Description

Parameters giving detailed control of the perspective view.

Member Function Documentation

◆ readFromXml()

native int com.cartotype.PerspectiveParam.readFromXml ( String  aText)

Reads a perspective parameter object from its XML form. Returns an error code (0 = success).

◆ toXml()

native String com.cartotype.PerspectiveParam.toXml ( )

Creates a string representing a perspective parameter object in XML.

Member Data Documentation

◆ iAutoAzimuth

boolean com.cartotype.PerspectiveParam.iAutoAzimuth = true

If true, ignore iAzimuthDegrees and use the current map orientation.

◆ iAutoPosition

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.

◆ iAzimuthDegrees

double com.cartotype.PerspectiveParam.iAzimuthDegrees = 0

The azimuth of the camera in degrees going clockwise, where 0 is N, 90 is E, etc.

◆ iDeclinationDegrees

double com.cartotype.PerspectiveParam.iDeclinationDegrees = 30

The declination of the camera downward from the horizontal plane. Values are clamped to the range -90...90.

◆ iFieldOfViewDegrees

double com.cartotype.PerspectiveParam.iFieldOfViewDegrees = 22.5

The camera's field of view in degrees.

◆ iHeightInMeters

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.

◆ iPositionX

double com.cartotype.PerspectiveParam.iPositionX = 0

The X coordinate (longitude in degrees) of the position of the point on the terrain below the camera.

◆ iPositionY

double com.cartotype.PerspectiveParam.iPositionY = 0

The Y coordinate (latitude in degrees) of the position of the point on the terrain below the camera.

◆ iRotationDegrees

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.


The documentation for this class was generated from the following file: