public class SmoothCamera extends ZoomCamera
IUpdateHandler.IUpdateHandlerMatcher| Modifier and Type | Field and Description |
|---|---|
protected float |
mMaxVelocityX |
protected float |
mMaxVelocityY |
protected float |
mMaxZoomFactorChange |
protected float |
mTargetCenterX |
protected float |
mTargetCenterY |
protected float |
mTargetZoomFactor |
mZoomFactormBoundsCenterX, mBoundsCenterY, mBoundsEnabled, mBoundsHeight, mBoundsWidth, mBoundsXMax, mBoundsXMin, mBoundsYMax, mBoundsYMinmCameraSceneRotation, mResizeOnSurfaceSizeChanged, mRotation, mSurfaceHeight, mSurfaceWidth, mSurfaceX, mSurfaceY, mUpdateHandlers, mXMax, mXMin, mYMax, mYMin| Constructor and Description |
|---|
SmoothCamera(float pX,
float pY,
float pWidth,
float pHeight,
float pMaxVelocityX,
float pMaxVelocityY,
float pMaxZoomFactorChange) |
| Modifier and Type | Method and Description |
|---|---|
float |
getMaxVelocityX() |
float |
getMaxVelocityY() |
float |
getMaxZoomFactorChange() |
float |
getTargetCenterX() |
float |
getTargetCenterY() |
float |
getTargetZoomFactor() |
protected void |
onSmoothZoomFinished() |
protected void |
onSmoothZoomStarted() |
void |
onUpdate(float pSecondsElapsed) |
void |
setCenter(float pCenterX,
float pCenterY) |
void |
setCenterDirect(float pCenterX,
float pCenterY) |
void |
setMaxVelocity(float pMaxVelocityX,
float pMaxVelocityY) |
void |
setMaxVelocityX(float pMaxVelocityX) |
void |
setMaxVelocityY(float pMaxVelocityY) |
void |
setMaxZoomFactorChange(float pMaxZoomFactorChange) |
void |
setZoomFactor(float pZoomFactor) |
void |
setZoomFactorDirect(float pZoomFactor) |
applySceneToCameraSceneOffset, applySceneToCameraSceneOffset, getHeight, getWidth, getXMax, getXMin, getYMax, getYMin, getZoomFactor, unapplySceneToCameraSceneOffset, unapplySceneToCameraSceneOffsetensureInBounds, getBoundedX, getBoundedY, getBoundsHeight, getBoundsWidth, getBoundsXMax, getBoundsXMin, getBoundsYMax, getBoundsYMin, isBoundsEnabled, setBounds, setBoundsEnabledclearUpdateHandlers, convertCameraSceneToSceneTouchEvent, convertSceneToCameraSceneTouchEvent, convertSceneToSurfaceTouchEvent, convertSurfaceToSceneTouchEvent, getCameraSceneCoordinatesFromSceneCoordinates, getCameraSceneCoordinatesFromSceneCoordinates, getCameraSceneRotation, getCenterX, getCenterY, getHeightRaw, getHUD, getRotation, getSceneCoordinatesFromCameraSceneCoordinates, getSceneCoordinatesFromCameraSceneCoordinates, getSurfaceHeight, getSurfaceWidth, getSurfaceX, getSurfaceY, getWidthRaw, getZFar, getZNear, hasHUD, isLineVisible, isRectangularShapeVisible, isRectangularShapeVisible, isResizeOnSurfaceSizeChanged, isRotated, offsetCenter, onApplyCameraSceneMatrix, onApplySceneBackgroundMatrix, onApplySceneMatrix, onDrawHUD, onSurfaceSizeChanged, onSurfaceSizeInitialized, registerUpdateHandler, reset, set, setCameraSceneRotation, setChaseEntity, setHUD, setResizeOnSurfaceSizeChanged, setRotation, setSurfaceSize, setXMax, setXMin, setYMax, setYMin, setZClippingPlanes, setZFar, setZNear, unregisterUpdateHandler, unregisterUpdateHandlers, updateChaseEntityprotected float mMaxVelocityX
protected float mMaxVelocityY
protected float mMaxZoomFactorChange
protected float mTargetCenterX
protected float mTargetCenterY
protected float mTargetZoomFactor
public SmoothCamera(float pX,
float pY,
float pWidth,
float pHeight,
float pMaxVelocityX,
float pMaxVelocityY,
float pMaxZoomFactorChange)
public float getTargetCenterX()
public float getTargetCenterY()
public float getTargetZoomFactor()
public void setCenter(float pCenterX,
float pCenterY)
setCenter in class BoundCamerapublic void setCenterDirect(float pCenterX,
float pCenterY)
public void setZoomFactor(float pZoomFactor)
setZoomFactor in class ZoomCamerapublic void setZoomFactorDirect(float pZoomFactor)
public float getMaxVelocityX()
public void setMaxVelocityX(float pMaxVelocityX)
public float getMaxVelocityY()
public void setMaxVelocityY(float pMaxVelocityY)
public void setMaxVelocity(float pMaxVelocityX,
float pMaxVelocityY)
public float getMaxZoomFactorChange()
public void setMaxZoomFactorChange(float pMaxZoomFactorChange)
protected void onSmoothZoomStarted()
protected void onSmoothZoomFinished()
public void onUpdate(float pSecondsElapsed)
onUpdate in interface IUpdateHandleronUpdate in class Camera