public class Camera extends Object3D implements HasEventBus, ViewportResizeHandler
Object3D.ObjectHandler, Object3D.Traverse
__webglActive, __webglInit, _modelViewMatrix, _normalMatrix, DefaultUp
EVENT_BUS
Constructor and Description |
---|
Camera()
This constructor sets the following properties to the correct type: matrixWorldInverse and projectionMatrix.
|
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addViewportResizeHandler(ViewportResizeHandler handler) |
Camera |
clone()
Creates a new clone of this object and all descendants.
|
Camera |
clone(Camera camera) |
Matrix4 |
getMatrixWorldInverse()
This is the inverse of matrixWorld.
|
Matrix4 |
getProjectionMatrix()
This is the matrix which contains the projection.
|
Vector3 |
getWorldDirection() |
Vector3 |
getWorldDirection(Vector3 optionalTarget) |
void |
lookAt(Vector3 vector)
This makes the camera look at the vector position in the global space as long as the parent
of this camera is the scene or at position (0,0,0).
|
void |
onResize(ViewportResizeEvent event) |
void |
setMatrixWorldInverse(Matrix4 matrixWorldInverse) |
void |
setProjectionMatrix(Matrix4 projectionMatrix) |
add, add, applyMatrix, clone, clone, getChildren, getChildrenByClass, getId, getMatrix, getMatrixWorld, getName, getObjectById, getObjectByName, getParent, getPosition, getQuaternion, getRenderDepth, getRotation, getScale, getUp, getWorldPosition, getWorldPosition, getWorldQuaternion, getWorldQuaternion, getWorldRotation, getWorldRotation, getWorldScale, getWorldScale, isCastShadow, isFrustumCulled, isMatrixAutoUpdate, isMatrixWorldNeedsUpdate, isReceiveShadow, isRotationAutoUpdate, isVisible, localToWorld, remove, remove, rotateOnAxis, rotateX, rotateY, rotateZ, setCastShadow, setChildren, setFrustumCulled, setHandler, setMatrix, setMatrixAutoUpdate, setMatrixWorld, setMatrixWorldNeedsUpdate, setName, setParent, setPosition, setQuaternion, setReceiveShadow, setRenderDepth, setRotation, setRotationAutoUpdate, setRotationFromAxisAngle, setRotationFromEuler, setRotationFromMatrix, setRotationFromQuaternion, setScale, setUp, setVisible, toString, translateOnAxis, translateX, translateY, translateZ, traverse, traverseVisible, updateMatrix, updateMatrixWorld, worldToLocal
public Camera()
public com.google.gwt.event.shared.HandlerRegistration addViewportResizeHandler(ViewportResizeHandler handler)
public void onResize(ViewportResizeEvent event)
onResize
in interface ViewportResizeHandler
public Matrix4 getMatrixWorldInverse()
public void setMatrixWorldInverse(Matrix4 matrixWorldInverse)
public Matrix4 getProjectionMatrix()
public void setProjectionMatrix(Matrix4 projectionMatrix)
public Vector3 getWorldDirection()
getWorldDirection
in class Object3D
public Vector3 getWorldDirection(Vector3 optionalTarget)
getWorldDirection
in class Object3D
public void lookAt(Vector3 vector)
public Camera clone()
Object3D