Package org.oscim.renderer
Class GLViewport
java.lang.Object
org.oscim.map.Viewport
org.oscim.renderer.GLViewport
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanfinal GLMatrixFor temporary use, to setup MVP-Matrixfinal float[]Do not modify!final MapPositionfinal GLMatrixDo not modify!final GLMatrixDo not modify!final GLMatrixDo not modify!Fields inherited from class org.oscim.map.Viewport
MAX_TILT, MAX_ZOOM_LEVEL, mHeight, MIN_TILT, MIN_ZOOM_LEVEL, mMaxBearing, mMaxRoll, mMaxScale, mMaxTilt, mMaxX, mMaxY, mMinBearing, mMinRoll, mMinScale, mMinTilt, mMinX, mMinY, mMovePoint, mPos, mProjMatrix, mProjMatrixInverse, mProjMatrixUnscaled, mRotationMatrix, mTmpMatrix, mu, mUnprojMatrix, mv, mViewCoords, mViewMatrix, mViewProjMatrix, mWidth, VIEW_DISTANCE, VIEW_FAR, VIEW_NEAR, VIEW_SCALE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanchanged()floatfloatgetWidth()voiduseScreenCoordinates(boolean center, float scale) Set MVP so that coordinates are in screen pixel coordinates with 0,0 being centervoiduseScreenCoordinates(int width, int height, GLViewport.Position position, float xOffset, float yOffset, float scale) Set MVP so that coordinates are in screen pixel coordinates with 0,0 being centerMethods inherited from class org.oscim.map.Viewport
copy, fromScreenPoint, fromScreenPoint, getBBox, getMapExtents, getMapLimit, getMapPosition, getMaxBearing, getMaxRoll, getMaxScale, getMaxTilt, getMaxX, getMaxY, getMaxZoomLevel, getMinBearing, getMinRoll, getMinScale, getMinTilt, getMinX, getMinY, getMinZoomLevel, limitPosition, limitScale, limitTilt, setMapLimit, setMapLimit, setMaxBearing, setMaxRoll, setMaxScale, setMaxTilt, setMaxX, setMaxY, setMaxZoomLevel, setMinBearing, setMinRoll, setMinScale, setMinTilt, setMinX, setMinY, setMinZoomLevel, toScreenPoint, toScreenPoint, toScreenPoint, toScreenPoint, unproject, unprojectScreen
-
Field Details
-
viewproj
Do not modify! -
proj
Do not modify! -
view
Do not modify! -
plane
public final float[] planeDo not modify! -
mvp
For temporary use, to setup MVP-Matrix -
pos
-
changed
protected boolean changed
-
-
Constructor Details
-
GLViewport
public GLViewport()
-
-
Method Details
-
useScreenCoordinates
public void useScreenCoordinates(boolean center, float scale) Set MVP so that coordinates are in screen pixel coordinates with 0,0 being center -
useScreenCoordinates
public void useScreenCoordinates(int width, int height, GLViewport.Position position, float xOffset, float yOffset, float scale) Set MVP so that coordinates are in screen pixel coordinates with 0,0 being center -
changed
public boolean changed() -
getWidth
public float getWidth()- Returns:
- width in pixels
-
getHeight
public float getHeight()- Returns:
- height in pixels
-