public abstract class GLContext extends java.lang.Object implements Camera.OnCameraChangeListener
| 限定符和类型 | 字段和说明 |
|---|---|
static float |
DEFAULT_SP |
static double |
ZOOM_LEVEL_CRITICAL_VALUE |
| 构造器和说明 |
|---|
GLContext(android.content.Context context,
IStyleManager styleManager) |
public static final double ZOOM_LEVEL_CRITICAL_VALUE
public static final float DEFAULT_SP
public GLContext(android.content.Context context,
IStyleManager styleManager)
public void changeMapCenter(boolean resetCamera,
double mapCenterX,
double mapCenterY)
public void onSurfaceChanged(int width,
int height)
public abstract void runOnGLThread(java.lang.Runnable runnable)
public abstract void requestRender(boolean doCollisionDetection)
public void requestRender()
public void onAction(Camera camera)
onAction 在接口中 Camera.OnCameraChangeListenerpublic void onDestroy()
public double getProjectionTenZ()
public double getProjectionTenW()
public double getProjectionOneZ()
public double getProjectionOneW()
public int getViewPortWidth()
public int getViewPortHeight()
public android.content.Context getContext()
public Mat4 getProjectionMatrix()
public Mat4 getModelMatrix()
public void resetModelMatrix()
public Camera getDefaultCamera()
public float getFoxy()
public float getzNear()
public float getzFar()
public double getMapCenterX()
public double getMapCenterY()
public float getSp()
public void bindSp(float sp)
public void setCameraBounds(CameraBounds cameraBounds)
public IStyleManager getStyleManager()
public Mat4 getTexture2DModelMatrix()
public Mat4 getViewProjectionMatrix()
public void setOnCameraChangeListener(Camera.OnCameraChangeListener onCameraChangeListener)
public double getZoomLevel()
public ParallelLight getLight()
public CollisionRendererManager getCollisionManager()
public TaskDispatcher getTaskDispatcher()
public Vec4 worldCoordinate2GLVec4(Coordinate coordinate)
public Vec4 worldCoordinate2GLVec4(Coordinate coordinate, float sp)
public Coordinate screenCoordinate2GLCoordinate(float screenX, float screenY)
public Coordinate screenCoordinate2WorldCoordinate(float screenX, float screenY)
public Coordinate worldCoordinate2ScreenCoordinate(Coordinate coordinate)
public double coordinateXModelTransform(double x)
public double coordinateYModelTransform(double y)
public Coordinate coordinateModelTransform(Coordinate coordinate)
public Coordinate coordinateModelTransform(com.vividsolutions.jts.geom.Coordinate coordinate)
public void disableDepthTest()
public void enableDepthTest()
public void glLineWidth(float width)