us.ihmc.graphics3DAdapter.jme
Class JMECamera

java.lang.Object
  extended by com.jme3.renderer.Camera
      extended by us.ihmc.graphics3DAdapter.jme.JMECamera
All Implemented Interfaces:
com.jme3.export.Savable, java.lang.Cloneable, CameraAdapter

public class JMECamera
extends com.jme3.renderer.Camera
implements CameraAdapter

JMECamera overloads camera and implements the following assumptions - Z-UP frame - Horizontal FoV


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme3.renderer.Camera
com.jme3.renderer.Camera.FrustumIntersect
 
Constructor Summary
JMECamera(com.jme3.renderer.Camera camera)
           
 
Method Summary
 javax.vecmath.Point3d getCameraPosition()
           
 javax.vecmath.Quat4d getCameraRotation()
           
 CameraController getController()
           
 float getFarClip()
           
 float getHorizontalFovInRadians()
           
 int getInternalHeight()
           
 int getInternalWidth()
           
 float getNearClip()
           
 void resize(int width, int height, boolean fixAspect)
           
 void setCameraController(CameraController cameraController)
           
 void setClipDistanceFar(float clipDistanceFar)
           
 void setClipDistanceNear(float clipDistanceNear)
           
 void setFrustumPerspective(float fovY, float aspect, float near, float far)
          Deprecated. 
 void setHorizontalFoVInRadians(float fovHorizontalInRadians)
           
 void setLocation(com.jme3.math.Vector3f location)
          Deprecated. Use setLocationInZUpCoordinates
 void setLocationInZUpCoordinates(javax.vecmath.Tuple3d cameraPosition)
           
 void setLocationInZUpCoordinates(com.jme3.math.Vector3f location)
           
 void setRotation(com.jme3.math.Quaternion rotation)
          Deprecated. Use setRotationInZUpcoordinates
 void setRotationInZUpcoordinates(javax.vecmath.Quat4d rotation)
           
 void setRotationInZUpcoordinates(com.jme3.math.Quaternion rotation)
           
 void updateCamera()
           
 
Methods inherited from class com.jme3.renderer.Camera
clearViewportChanged, clone, contains, containsGui, copyFrom, distanceToNearPlane, getDirection, getDirection, getFrustumBottom, getFrustumFar, getFrustumLeft, getFrustumNear, getFrustumRight, getFrustumTop, getHeight, getLeft, getLeft, getLocation, getName, getPlaneState, getProjectionMatrix, getRotation, getScreenCoordinates, getScreenCoordinates, getUp, getUp, getViewMatrix, getViewPortBottom, getViewPortLeft, getViewPortRight, getViewPortTop, getViewProjectionMatrix, getViewToProjectionZ, getWidth, getWorldCoordinates, getWorldCoordinates, isParallelProjection, isViewportChanged, lookAt, lookAtDirection, normalize, onFrameChange, onFrustumChange, onViewPortChange, read, setAxes, setAxes, setClipPlane, setClipPlane, setFrame, setFrame, setFrustum, setFrustumBottom, setFrustumFar, setFrustumLeft, setFrustumNear, setFrustumRight, setFrustumTop, setName, setParallelProjection, setPlaneState, setProjectionMatrix, setViewPort, setViewPortBottom, setViewPortLeft, setViewPortRight, setViewPortTop, toString, update, updateViewProjection, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMECamera

public JMECamera(com.jme3.renderer.Camera camera)
Method Detail

setHorizontalFoVInRadians

public void setHorizontalFoVInRadians(float fovHorizontalInRadians)

setClipDistanceNear

public void setClipDistanceNear(float clipDistanceNear)

setClipDistanceFar

public void setClipDistanceFar(float clipDistanceFar)

setFrustumPerspective

@Deprecated
public void setFrustumPerspective(float fovY,
                                             float aspect,
                                             float near,
                                             float far)
Deprecated. 

Overrides:
setFrustumPerspective in class com.jme3.renderer.Camera

getNearClip

public float getNearClip()

getFarClip

public float getFarClip()

getHorizontalFovInRadians

public float getHorizontalFovInRadians()
Specified by:
getHorizontalFovInRadians in interface CameraAdapter

getController

public CameraController getController()

setLocationInZUpCoordinates

public void setLocationInZUpCoordinates(javax.vecmath.Tuple3d cameraPosition)

setLocationInZUpCoordinates

public void setLocationInZUpCoordinates(com.jme3.math.Vector3f location)

setRotationInZUpcoordinates

public void setRotationInZUpcoordinates(javax.vecmath.Quat4d rotation)

setRotationInZUpcoordinates

public void setRotationInZUpcoordinates(com.jme3.math.Quaternion rotation)

setLocation

@Deprecated
public void setLocation(com.jme3.math.Vector3f location)
Deprecated. Use setLocationInZUpCoordinates

Overrides:
setLocation in class com.jme3.renderer.Camera

setRotation

@Deprecated
public void setRotation(com.jme3.math.Quaternion rotation)
Deprecated. Use setRotationInZUpcoordinates

Overrides:
setRotation in class com.jme3.renderer.Camera

updateCamera

public void updateCamera()

setCameraController

public void setCameraController(CameraController cameraController)

getCameraRotation

public javax.vecmath.Quat4d getCameraRotation()
Specified by:
getCameraRotation in interface CameraAdapter

getCameraPosition

public javax.vecmath.Point3d getCameraPosition()
Specified by:
getCameraPosition in interface CameraAdapter

resize

public void resize(int width,
                   int height,
                   boolean fixAspect)
Overrides:
resize in class com.jme3.renderer.Camera

getInternalWidth

public int getInternalWidth()

getInternalHeight

public int getInternalHeight()