Loading...
Searching...
No Matches
com.navigine.idl.java.Camera Class Reference

Class describing position of the camera. More...

Public Member Functions

 Camera (Point point, float zoom, float rotation, float tilt)
 Default constructor for class Camera.
 
Point getPoint ()
 point the camera is looking at Point
 
float getZoom ()
 zoom level.
 
float getRotation ()
 Map azimuth in degrees: angle between Location North (top of the image) and the direction of interest on the view plane, in the range [0, 360).
 
float getTilt ()
 Camera tilt in degrees. 0 means vertical downward (map seen from above). Positive values tilt the eye toward the horizon; the renderer clamps tilt to device limits when applying.
 
String toString ()
 

Detailed Description

Class describing position of the camera.

Referenced from LocationWindow.

Java code snippet:

// Create camera with constructor
Point newPoint = new Point(100.0, 200.0);
Camera newCamera = new Camera(newPoint, 50.0, 0.0, 0.0);
System.out.println("Created camera with point (" + newPoint.x + ", " + newPoint.y + "), zoom 50.0, rotation 0°, tilt 0°");

Kotlin code snippet:

// Create camera with constructor
val newPoint = Point(100.0, 200.0)
val newCamera = Camera(newPoint, 50.0, 0.0, 0.0)
println("Created camera with point (${newPoint.x}, ${newPoint.y}), zoom 50.0, rotation 0°, tilt 0°")

Definition at line 25 of file Camera.java.

Constructor & Destructor Documentation

◆ Camera()

com.navigine.idl.java.Camera.Camera ( Point point,
float zoom,
float rotation,
float tilt )
inline

Default constructor for class Camera.

Definition at line 39 of file Camera.java.

Member Function Documentation

◆ getPoint()

Point com.navigine.idl.java.Camera.getPoint ( )
inline

point the camera is looking at Point

Returns

Definition at line 53 of file Camera.java.

◆ getRotation()

float com.navigine.idl.java.Camera.getRotation ( )
inline

Map azimuth in degrees: angle between Location North (top of the image) and the direction of interest on the view plane, in the range [0, 360).

Returns

Definition at line 68 of file Camera.java.

◆ getTilt()

float com.navigine.idl.java.Camera.getTilt ( )
inline

Camera tilt in degrees. 0 means vertical downward (map seen from above). Positive values tilt the eye toward the horizon; the renderer clamps tilt to device limits when applying.

Returns

Definition at line 76 of file Camera.java.

◆ getZoom()

float com.navigine.idl.java.Camera.getZoom ( )
inline

zoom level.

Returns

Definition at line 60 of file Camera.java.

◆ toString()

String com.navigine.idl.java.Camera.toString ( )
inline

Definition at line 81 of file Camera.java.


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