public class ViewState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
ViewState(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
float |
getAspectRatio()
Returns the aspect ratio of the map screen.
|
MapPos |
getCameraPos()
Returns the camera position.
|
double |
getCosHalfFOVXY()
Returns the cosine of the half horizontal FOV angle multiplied
by the cosine of the half vertical FOV angle. |
double |
getCosHalfFOVY()
Returns the cosine of the half vertical FOV angle.
|
static long |
getCPtr(ViewState obj) |
float |
getDPI()
Returns the dots per inch parameter of the screen.
|
float |
getDPToPX()
Returns a value that is used for converting display independent pixels (dp) to pixels (px).
This values depends on the screen density. |
double |
getFar()
Returns the far plane distance.
|
MapPos |
getFocusPos()
Returns the focus position.
|
int |
getFOVY()
Returns the vertical field of view angle.
|
Frustum |
getFrustum()
Returns the view frustum.
|
float |
getHalfFOVY()
Returns the vertical field of view angle, divided by 2.
|
float |
getHalfHeight()
Returns the height of the map screen divided by 2.
|
float |
getHalfWidth()
Returns the width of the map screen divided by 2.
|
int |
getHeight()
Returns the height of the map screen.
|
double |
getNear()
Returns the near plane distance.
|
float |
getNormalizedResolution()
Get normalized resolution of the view.
|
ProjectionMode |
getProjectionMode()
Returns the projection mode.
|
float |
getRotation()
Returns the camera rotation angle.
|
int |
getScreenHeight()
Returns the screen height.
|
int |
getScreenWidth()
Returns the screen width.
|
double |
getTanHalfFOVX()
Returns the tangent of the half horizontal FOV angle.
|
double |
getTanHalfFOVY()
Returns the tangent of the half vertical FOV angle.
|
float |
getTilt()
Returns the camera tilt angle.
|
float |
getUnitToDPCoef()
Returns the conversion ratio between internal map units and screen density independent pixels (DP or DIP).
|
float |
getUnitToPXCoef()
Returns the conversion ratio between internal map units and screen pixels.
|
MapVec |
getUpVec()
Returns the up direction vector.
|
int |
getWidth()
Returns the width of the map screen.
|
float |
getZoom()
Returns the camera zoom level.
|
float |
getZoom0Distance()
Returns the distance between the focus and the camera position, when the zoom level is set to 0.
This parameter depends on the screen size, DPI, tile draw size and field of view settings. |
int |
hashCode()
Returns the hash value of this object.
|
boolean |
isCameraChanged()
Returns the state of the camera changed flag.
|
public static long getCPtr(ViewState obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public MapPos getCameraPos()
public MapPos getFocusPos()
public MapVec getUpVec()
public boolean isCameraChanged()
public float getRotation()
public float getTilt()
public float getZoom()
public float getZoom0Distance()
public float getNormalizedResolution()
public int getWidth()
public int getHeight()
public float getHalfWidth()
public float getHalfHeight()
public float getAspectRatio()
public double getNear()
public double getFar()
public int getFOVY()
public float getHalfFOVY()
public double getTanHalfFOVY()
public double getCosHalfFOVY()
public double getTanHalfFOVX()
public double getCosHalfFOVXY()
public float getDPToPX()
public float getDPI()
public float getUnitToPXCoef()
public float getUnitToDPCoef()
public ProjectionMode getProjectionMode()
public Frustum getFrustum()
public int getScreenWidth()
public int getScreenHeight()