java.lang.Object | |
↳ | com.carto.graphics.ViewState |
A class containing various view parameters for a view state.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
float |
getAspectRatio()
Returns the aspect ratio of the map screen.
| ||||||||||
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).
| ||||||||||
int |
getFOVY()
Returns the vertical field of view angle.
| ||||||||||
float |
getFar()
Returns the far plane distance.
| ||||||||||
int |
getHeight()
Returns the height of the map screen.
| ||||||||||
float |
getNear()
Returns the near plane distance.
| ||||||||||
float |
getRotation()
Returns the camera rotation angle.
| ||||||||||
int |
getScreenHeight()
Returns the screen height.
| ||||||||||
int |
getScreenWidth()
Returns the screen width.
| ||||||||||
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.
| ||||||||||
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.
| ||||||||||
int |
hashCode()
Returns the hash value of this object.
| ||||||||||
boolean |
isCameraChanged()
Returns the state of the camera changed flag.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Checks if this object is equal to the specified object.
obj | The reference object. |
---|
Returns the aspect ratio of the map screen. Equal to width / height.
Returns the dots per inch parameter of the screen.
Returns a value that is used for converting display independent pixels (dp) to pixels (px).
This values depends on the screen density.
Returns the vertical field of view angle.
Returns the far plane distance.
Returns the height of the map screen.
Returns the near plane distance.
Returns the camera rotation angle.
Returns the screen height.
Returns the screen width.
Returns the camera tilt angle.
Returns the conversion ratio between internal map units and screen density independent pixels (DP or DIP).
This parameter is dependent on the zoom level, DPI and other screen parameters.
Returns the conversion ratio between internal map units and screen pixels. This parameter is dependent
on the zoom level and other screen parameters.
Returns the width of the map screen.
Returns the camera zoom level.
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.
Returns the hash value of this object.
Returns the state of the camera changed flag.