public class Camera
extends java.lang.Object
相机
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
Camera.OnCameraChangeListener |
| 构造器和说明 |
|---|
Camera(GLContext glContext,
CameraBounds cameraBounds,
Camera.OnCameraChangeListener onCameraChangeListener) |
Camera(GLContext glContext,
CameraBounds cameraBounds,
Camera.OnCameraChangeListener onCameraChangeListener,
float aspectRatio) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
animation(CameraUpdate update,
int durationMs,
CameraAnimCallback callback) |
void |
animationGesture(CameraUpdate update,
int durationMs,
CameraAnimCallback callback)
手势操作 动画
|
void |
changeCamera(float cameraEyeX,
float cameraEyeY,
float cameraEyeZ) |
void |
changeCamera(float cameraEyeX,
float cameraEyeY,
float cameraEyeZ,
float cameraCenterX,
float cameraCenterY,
float cameraCenterZ) |
void |
changeCamera(float cameraEyeX,
float cameraEyeY,
float cameraEyeZ,
float cameraCenterX,
float cameraCenterY,
float cameraCenterZ,
float cameraUpX,
float cameraUpY,
float cameraUpZ) |
float |
getCameraCenterX() |
float |
getCameraCenterY() |
float |
getCameraCenterZ() |
float |
getCameraEyeX() |
float |
getCameraEyeY() |
float |
getCameraEyeZ() |
float |
getCameraUpX() |
float |
getCameraUpY() |
float |
getCameraUpZ() |
ParallelLight |
getLight() |
Coordinate |
getMapCenterPoint() |
double |
getMapHeading() |
Mat4 |
getMatrix() |
float |
getSkewAngle() |
Mat4 |
getTexture2DModelMatrix() |
double |
getZoomLevel() |
void |
move(float x,
float y)
移动
|
void |
moveToRect(Coordinate leftTop,
Coordinate rightBottom,
int durationMs,
double minZoomLevel,
CameraAnimCallback callback) |
void |
onDestroy() |
void |
removeAnimation() |
void |
rotate(float rotation)
旋转
|
void |
setCameraBounds(CameraBounds cameraBounds) |
void |
setDefaultZoomLevel(float zoomLevel)
设置默认的zoomLevel
|
void |
setTextScaleFactor(float textScaleFactor) |
void |
skew(float angle)
俯仰
|
boolean |
spereInFrustum(Vec3 centerPoint,
double radius,
float far,
float near,
float angleFoxy,
float aspectRatio)
判断球体是否在视锥体内
|
void |
zoom(float z)
缩放
|
public Camera(GLContext glContext, CameraBounds cameraBounds, Camera.OnCameraChangeListener onCameraChangeListener, float aspectRatio)
public Camera(GLContext glContext, CameraBounds cameraBounds, Camera.OnCameraChangeListener onCameraChangeListener)
public void setTextScaleFactor(float textScaleFactor)
public void changeCamera(float cameraEyeX,
float cameraEyeY,
float cameraEyeZ)
public void changeCamera(float cameraEyeX,
float cameraEyeY,
float cameraEyeZ,
float cameraCenterX,
float cameraCenterY,
float cameraCenterZ)
public void changeCamera(float cameraEyeX,
float cameraEyeY,
float cameraEyeZ,
float cameraCenterX,
float cameraCenterY,
float cameraCenterZ,
float cameraUpX,
float cameraUpY,
float cameraUpZ)
public Coordinate getMapCenterPoint()
public boolean spereInFrustum(Vec3 centerPoint, double radius, float far, float near, float angleFoxy, float aspectRatio)
centerPoint - 球心radius - 半径public void setDefaultZoomLevel(float zoomLevel)
zoomLevel - public double getZoomLevel()
public void move(float x,
float y)
x - 屏幕坐标的偏移量xy - 屏幕坐标的偏移量ypublic void zoom(float z)
z - public void rotate(float rotation)
rotation - 要改变的角度public void skew(float angle)
angle - 要改变的角度public float getCameraUpX()
public float getCameraUpY()
public float getCameraUpZ()
public float getCameraEyeX()
public float getCameraEyeY()
public float getCameraEyeZ()
public float getCameraCenterX()
public float getCameraCenterY()
public float getCameraCenterZ()
public Mat4 getMatrix()
public Mat4 getTexture2DModelMatrix()
public float getSkewAngle()
public double getMapHeading()
public ParallelLight getLight()
public void setCameraBounds(CameraBounds cameraBounds)
public void animation(CameraUpdate update, int durationMs, CameraAnimCallback callback)
public void moveToRect(Coordinate leftTop, Coordinate rightBottom, int durationMs, double minZoomLevel, CameraAnimCallback callback)
public void removeAnimation()
public void onDestroy()
public void animationGesture(CameraUpdate update, int durationMs, CameraAnimCallback callback)
update - durationMs - callback -