public class ViewController extends Viewport
| Modifier and Type | Field and Description |
|---|---|
Viewport |
mNextFrame |
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 and Description |
|---|
ViewController() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyRotation(double mx,
double my,
float bearing,
Point out) |
float[] |
getMapViewCenter()
Get pivot horizontal / vertical relative to view center.
|
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 |
rollMap(float move) |
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
view center.
|
void |
setMapPosition(MapPosition mapPosition) |
void |
setMapViewCenter(float pivotX,
float pivotY)
Set pivot horizontal / vertical relative to view center.
|
void |
setRoll(double degree) |
void |
setRotation(double degree) |
boolean |
setTilt(float tilt) |
void |
setViewSize(int width,
int height) |
boolean |
tiltMap(float move) |
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, unprojectScreenpublic final Viewport mNextFrame
public void setViewSize(int width,
int height)
public float[] getMapViewCenter()
public void setMapViewCenter(float pivotX,
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 static void applyRotation(double mx,
double my,
float bearing,
Point out)
mx - the amount of pixels to move the map horizontally.my - the amount of pixels to move the map vertically.bearing - the bearing to rotate the map.out - the position where to move.public boolean scaleMap(float scale,
float pivotX,
float pivotY)
public void rotateMap(double radians,
float pivotX,
float pivotY)
public void setRotation(double degree)
public void rollMap(float move)
public void setRoll(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)