@Override public void setLinkedObject(Object3D object) { super.setLinkedObject(object); enableLookAt(); } }
/** * Updates the projection matrix of the current camera for new view port dimensions. * * @param width int the new viewport width in pixels. * @param height in the new viewport height in pixes. */ public void updateProjectionMatrix(int width, int height) { mCamera.setProjectionMatrix(width, height); }
@Override public Matrix4 getViewMatrix() { mPosition.addAndSet(mLinkedObject.getWorldPosition(), mCameraOffset); setLookAt(mLinkedObject.getWorldPosition()); onRecalculateModelMatrix(null); return super.getViewMatrix(); }
public ArcballCamera(Context context, View view, Object3D target) { super(); mContext = context; mTarget = target; mView = view; initialize(); addListeners(); }
private void updateRotation(final float x, final float y) { mapToScreen(x, y, mCurrScreenCoord); applyRotation(); }
@Override public Matrix4 getViewMatrix() { mPosition.addAndSet(mLinkedObject.getWorldPosition(), mCameraOffset); mLinkedObject.getOrientation(mOrientation); onRecalculateModelMatrix(null); return super.getViewMatrix(); } }
public void setFieldOfView(double fieldOfView) { synchronized (mFrustumLock) { mStartFOV = fieldOfView; super.setFieldOfView(fieldOfView); } }
public void updateFrustum(Matrix4 invVPMatrix) { synchronized (mFrustumLock) { mFrustum.update(invVPMatrix); } }
public void getFrustumCorners(Vector3[] points) { getFrustumCorners(points, false); }
public OrthographicCamera() { setZ(4.0f); }
public void updatePerspective(double left, double right, double bottom, double top) { updatePerspective(left + right, bottom + top); }
@Override public void resetCameraOrientation() { super.resetCameraOrientation(); mEmpty.setOrientation(Quaternion.getIdentity()); getViewMatrix(); }
@Override public void setProjectionMatrix(int width, int height) { super.setProjectionMatrix(width, height); }
public void getFrustumCorners(Vector3[] points, boolean transformed) { getFrustumCorners(points, transformed, false); }
public void setFarPlane(double farPlane) { synchronized (mFrustumLock) { mFarPlane = farPlane; mCameraDirty = true; setProjectionMatrix(mLastWidth, mLastHeight); } }
public void setFieldOfView(double fieldOfView) { synchronized (mFrustumLock) { mFieldOfView = fieldOfView; mCameraDirty = true; setProjectionMatrix(mLastWidth, mLastHeight); } }
public void setNearPlane(double nearPlane) { synchronized (mFrustumLock) { mNearPlane = nearPlane; mCameraDirty = true; setProjectionMatrix(mLastWidth, mLastHeight); } }
public void setProjectionMatrix(double fieldOfView, int width, int height) { synchronized (mFrustumLock) { mFieldOfView = fieldOfView; setProjectionMatrix(width, height); } }