public class ViewController extends Viewport
| Modifier and Type | Field and Description |
|---|---|
Viewport |
mNextFrame |
protected float |
mPivotY |
MAX_TILT, MAX_ZOOMLEVEL, mHeight, MIN_TILT, MIN_ZOOMLEVEL, mMaxBearing, mMaxScale, mMaxTilt, mMaxX, mMaxY, mMinBearing, 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 and Description |
|---|
ViewController() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getSyncMapPosition(MapPosition mapPosition) |
Viewport |
getSyncViewport()
synchronize on this object when doing multiple calls on it
|
boolean |
getSyncViewport(Viewport v) |
void |
moveMap(float mx,
float my)
Moves this Viewport by the given amount of pixels.
|
void |
rotateMap(double radians,
float pivotX,
float pivotY)
Rotate map by radians around pivot.
|
boolean |
scaleMap(float scale,
float pivotX,
float pivotY)
Scale map by scale width center at pivot in pixel relative to
screen center.
|
void |
setMapPosition(MapPosition mapPosition) |
void |
setMapScreenCenter(float pivotY)
Set pivot height relative to screen center.
|
void |
setRotation(double degree) |
void |
setScreenSize(int width,
int height) |
boolean |
setTilt(float tilt) |
boolean |
tiltMap(float move) |
copy, fromScreenPoint, fromScreenPoint, getBBox, getMapExtents, getMapLimit, getMapPosition, getMaxBearing, getMaxScale, getMaxTilt, getMaxX, getMaxY, getMaxZoomLevel, getMinBearing, getMinScale, getMinTilt, getMinX, getMinY, getMinZoomLevel, limitPosition, limitScale, limitTilt, setMapLimit, setMapLimit, setMaxBearing, setMaxScale, setMaxTilt, setMaxX, setMaxY, setMaxZoomLevel, setMinBearing, setMinScale, setMinTilt, setMinX, setMinY, setMinZoomLevel, toScreenPoint, toScreenPoint, toScreenPoint, toScreenPoint, unproject, unprojectScreenprotected float mPivotY
public final Viewport mNextFrame
public void setScreenSize(int width,
int height)
public void setMapScreenCenter(float pivotY)
public void moveMap(float mx,
float my)
mx - the amount of pixels to move the map horizontally.my - the amount of pixels to move the map vertically.public boolean scaleMap(float scale,
float pivotX,
float pivotY)
public void rotateMap(double radians,
float pivotX,
float pivotY)
public void setRotation(double degree)
public boolean tiltMap(float move)
public boolean setTilt(float tilt)
public void setMapPosition(MapPosition mapPosition)
public final Viewport getSyncViewport()
public boolean getSyncViewport(Viewport v)
public boolean getSyncMapPosition(MapPosition mapPosition)