CartoType Android API 8.8-7-gb35e4dc71
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 positionX = 0
 
double positionY = 0
 
boolean autoPosition = true
 
double heightMeters = 0
 
double azimuthDegrees = 0
 
boolean autoAzimuth = true
 
double declinationDegrees = 30
 
double rotationDegrees = 0
 
double fieldOfViewDegrees = 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

◆ autoAzimuth

boolean com.cartotype.PerspectiveParam.autoAzimuth = true

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

◆ autoPosition

boolean com.cartotype.PerspectiveParam.autoPosition = true

If true, ignore positionX and positionY, and set the camera position so that the location in the center of the display is shown.

◆ azimuthDegrees

double com.cartotype.PerspectiveParam.azimuthDegrees = 0

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

◆ declinationDegrees

double com.cartotype.PerspectiveParam.declinationDegrees = 30

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

◆ fieldOfViewDegrees

double com.cartotype.PerspectiveParam.fieldOfViewDegrees = 22.5

The camera's field of view in degrees.

◆ heightMeters

double com.cartotype.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.

◆ positionX

double com.cartotype.PerspectiveParam.positionX = 0

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

◆ positionY

double com.cartotype.PerspectiveParam.positionY = 0

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

◆ rotationDegrees

double com.cartotype.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 file: