com.jme.renderer
Class AbstractCamera

java.lang.Object
  extended by com.jme.renderer.AbstractCamera
All Implemented Interfaces:
Camera, Savable, java.io.Serializable
Direct Known Subclasses:
JOGLCamera, LWJGLCamera

public abstract class AbstractCamera
extends java.lang.Object
implements Camera

AbstractCamera implments the Camera interface implementing all non-API specific camera calculations. Those requiring API (LWJGL, JOGL, etc) specific calls are not implemented making this class abstract. API specific classes are expected to extend this class and handle renderer viewport setting.

Author:
Mark Powell, Joshua Slack
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jme.renderer.Camera
Camera.FrustumIntersect
 
Field Summary
protected  Matrix4f _modelView
           
protected  Matrix4f _projection
           
protected  Matrix4f _transMatrix
           
static int BOTTOM_PLANE
          BOTTOM_PLANE represents the bottom plane of the camera frustum.
protected  float[] coeffBottom
           
protected  float[] coeffLeft
           
protected  float[] coeffRight
           
protected  float[] coeffTop
           
protected  Vector3f direction
          Direction the camera is facing.
static int FAR_PLANE
          FAR_PLANE represents the far plane of the camera frustum.
static int FRUSTUM_PLANES
          FRUSTUM_PLANES represents the number of planes of the camera frustum.
protected  float frustumBottom
          Distance from camera to bottom frustum plane.
protected  float frustumFar
          Distance from camera to far frustum plane.
protected  float frustumLeft
          Distance from camera to left frustum plane.
protected  float frustumNear
          Distance from camera to near frustum plane.
protected  float frustumRight
          Distance from camera to right frustum plane.
protected  float frustumTop
          Distance from camera to top frustum plane.
protected  int height
           
protected  Vector3f left
          Direction of camera's 'left'
static int LEFT_PLANE
          LEFT_PLANE represents the left plane of the camera frustum.
protected  Vector3f location
          Camera's location
static int MAX_WORLD_PLANES
          MAX_WORLD_PLANES holds the maximum planes allowed by the system.
static int NEAR_PLANE
          NEAR_PLANE represents the near plane of the camera frustum.
protected  Vector3f newDirection
          Computation vector used in lookAt operations.
protected  int planeQuantity
           
static int RIGHT_PLANE
          RIGHT_PLANE represents the right plane of the camera frustum.
static int TOP_PLANE
          TOP_PLANE represents the top plane of the camera frustum.
protected  Vector3f up
          Direction of 'up' for camera.
protected  float viewPortBottom
          Percent value on display where vertical viewing begins for this camera.
protected  float viewPortLeft
          Percent value on display where horizontal viewing starts for this camera.
protected  float viewPortRight
          Percent value on display where horizontal viewing ends for this camera.
protected  float viewPortTop
          Percent value on display where vertical viewing ends for this camera.
protected  int width
           
protected  Plane[] worldPlane
          Array holding the planes that this camera will check for culling.
 
Constructor Summary
AbstractCamera()
          Constructor instantiates a new AbstractCamera object.
AbstractCamera(boolean dataOnly)
          Constructor instantiates a new AbstractCamera object.
 
Method Summary
 Camera.FrustumIntersect contains(BoundingVolume bound)
          culled tests a bounding volume against the planes of the camera's frustum.
 java.lang.Class<AbstractCamera> getClassTag()
           
 Vector3f getDirection()
          getDirection retrieves the direction vector the camera is facing.
 float getFrustumBottom()
          getFrustumBottom returns the value of the bottom frustum plane.
 float getFrustumFar()
          getFrustumFar gets the value of the far frustum plane.
 float getFrustumLeft()
          getFrustumLeft gets the value of the left frustum plane.
 float getFrustumNear()
          getFrustumNear gets the value of the near frustum plane.
 float getFrustumRight()
          getFrustumRight gets the value of the right frustum plane.
 float getFrustumTop()
          getFrustumTop gets the value of the top frustum plane.
abstract  int getHeight()
           
 Vector3f getLeft()
          getLeft retrieves the left axis of the camera.
 Vector3f getLocation()
          getLocation retrieves the location vector of the camera.
 Matrix4f getModelViewMatrix()
           
 int getPlaneState()
          getPlaneState returns the state of the frustum planes.
 Matrix4f getProjectionMatrix()
           
 Vector3f getScreenCoordinates(Vector3f worldPos)
          Convert world to screen coordinates.
 Vector3f getScreenCoordinates(Vector3f worldPosition, Vector3f store)
          Implementation contributed by Zbyl.
 Vector3f getUp()
          getUp retrieves the up axis of the camera.
 float getViewPortBottom()
          getViewPortBottom gets the bottom boundary of the viewport
 float getViewPortLeft()
          getViewPortLeft gets the left boundary of the viewport
 float getViewPortRight()
          getViewPortRight gets the right boundary of the viewport
 float getViewPortTop()
          getViewPortTop gets the top boundary of the viewport
abstract  int getWidth()
           
 Vector3f getWorldCoordinates(Vector2f screenPos, float zPos)
          Convert screen to world coordinates.
 Vector3f getWorldCoordinates(Vector2f screenPosition, float zPos, Vector3f store)
          Convert screen to world coordinates.
 boolean isDataOnly()
           
 boolean isParallelProjection()
           
 void lookAt(Vector3f pos, Vector3f worldUpVector)
          lookAt is a convienence method for auto-setting the frame based on a world position the user desires the camera to look at.
 void normalize()
          normalize normalizes the camera vectors.
 void onFrameChange()
          onFrameChange updates the view frame of the camera.
 void onFrustumChange()
          onFrustumChange updates the frustum to reflect any changes made to the planes.
 void read(JMEImporter e)
           
 void setAxes(Quaternion axes)
          setAxes uses a rotational matrix to set the axes of the camera.
 void setAxes(Vector3f left, Vector3f up, Vector3f direction)
          setAxes sets the axes (left, up and direction) for this camera.
 void setDataOnly(boolean dataOnly)
           
 void setDirection(Vector3f direction)
          setDirection sets the direction this camera is facing.
 void setFrame(Vector3f location, Quaternion axes)
          setFrame sets the orientation and location of the camera.
 void setFrame(Vector3f location, Vector3f left, Vector3f up, Vector3f direction)
          setFrame sets the orientation and location of the camera.
 void setFrustum(float near, float far, float left, float right, float top, float bottom)
          setFrustum sets the frustum of this camera object.
 void setFrustumBottom(float frustumBottom)
          setFrustumBottom sets the value of the bottom frustum plane.
 void setFrustumFar(float frustumFar)
          setFrustumFar sets the value of the far frustum plane.
 void setFrustumLeft(float frustumLeft)
          setFrustumLeft sets the value of the left frustum plane.
 void setFrustumNear(float frustumNear)
          setFrustumNear sets the value of the near frustum plane.
 void setFrustumPerspective(float fovY, float aspect, float near, float far)
          setFrustumPerspective defines the frustum for the camera.
 void setFrustumRight(float frustumRight)
          setFrustumRight sets the value of the right frustum plane.
 void setFrustumTop(float frustumTop)
          setFrustumTop sets the value of the top frustum plane.
 void setLeft(Vector3f left)
          setLeft sets the left axis of this camera.
 void setLocation(Vector3f location)
          setLocation sets the position of the camera.
 void setParallelProjection(boolean value)
          Enable/disable parallel projection.
 void setPlaneState(int planeState)
          setPlaneState sets the state to keep track of tested planes for culling.
 void setUp(Vector3f up)
          setUp sets the up axis of this camera.
 void setViewPort(float left, float right, float bottom, float top)
          setViewPort sets the boundaries of the viewport
 void setViewPortBottom(float bottom)
          setViewPortBottom sets the bottom boundary of the viewport
 void setViewPortLeft(float left)
          setViewPortLeft sets the left boundary of the viewport
 void setViewPortRight(float right)
          setViewPortRight sets the right boundary of the viewport
 void setViewPortTop(float top)
          setViewPortTop sets the top boundary of the viewport
 void update()
          update updates the camera parameters by calling onFrustumChange,onViewPortChange and onFrameChange.
 void write(JMEExporter e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jme.renderer.Camera
apply, onViewPortChange, resize
 

Field Detail

LEFT_PLANE

public static final int LEFT_PLANE
LEFT_PLANE represents the left plane of the camera frustum.

See Also:
Constant Field Values

RIGHT_PLANE

public static final int RIGHT_PLANE
RIGHT_PLANE represents the right plane of the camera frustum.

See Also:
Constant Field Values

BOTTOM_PLANE

public static final int BOTTOM_PLANE
BOTTOM_PLANE represents the bottom plane of the camera frustum.

See Also:
Constant Field Values

TOP_PLANE

public static final int TOP_PLANE
TOP_PLANE represents the top plane of the camera frustum.

See Also:
Constant Field Values

FAR_PLANE

public static final int FAR_PLANE
FAR_PLANE represents the far plane of the camera frustum.

See Also:
Constant Field Values

NEAR_PLANE

public static final int NEAR_PLANE
NEAR_PLANE represents the near plane of the camera frustum.

See Also:
Constant Field Values

FRUSTUM_PLANES

public static final int FRUSTUM_PLANES
FRUSTUM_PLANES represents the number of planes of the camera frustum.

See Also:
Constant Field Values

MAX_WORLD_PLANES

public static final int MAX_WORLD_PLANES
MAX_WORLD_PLANES holds the maximum planes allowed by the system.

See Also:
Constant Field Values

location

protected Vector3f location
Camera's location


left

protected Vector3f left
Direction of camera's 'left'


up

protected Vector3f up
Direction of 'up' for camera.


direction

protected Vector3f direction
Direction the camera is facing.


frustumNear

protected float frustumNear
Distance from camera to near frustum plane.


frustumFar

protected float frustumFar
Distance from camera to far frustum plane.


frustumLeft

protected float frustumLeft
Distance from camera to left frustum plane.


frustumRight

protected float frustumRight
Distance from camera to right frustum plane.


frustumTop

protected float frustumTop
Distance from camera to top frustum plane.


frustumBottom

protected float frustumBottom
Distance from camera to bottom frustum plane.


coeffLeft

protected float[] coeffLeft

coeffRight

protected float[] coeffRight

coeffBottom

protected float[] coeffBottom

coeffTop

protected float[] coeffTop

planeQuantity

protected int planeQuantity

viewPortLeft

protected float viewPortLeft
Percent value on display where horizontal viewing starts for this camera. Default is 0.


viewPortRight

protected float viewPortRight
Percent value on display where horizontal viewing ends for this camera. Default is 1.


viewPortTop

protected float viewPortTop
Percent value on display where vertical viewing ends for this camera. Default is 1.


viewPortBottom

protected float viewPortBottom
Percent value on display where vertical viewing begins for this camera. Default is 0.


worldPlane

protected Plane[] worldPlane
Array holding the planes that this camera will check for culling.


newDirection

protected Vector3f newDirection
Computation vector used in lookAt operations.


width

protected int width

height

protected int height

_transMatrix

protected final Matrix4f _transMatrix

_modelView

protected final Matrix4f _modelView

_projection

protected final Matrix4f _projection
Constructor Detail

AbstractCamera

public AbstractCamera()
Constructor instantiates a new AbstractCamera object. All values of the camera are set to default.


AbstractCamera

public AbstractCamera(boolean dataOnly)
Constructor instantiates a new AbstractCamera object. All values of the camera are set to default.

Method Detail

getFrustumBottom

public float getFrustumBottom()
getFrustumBottom returns the value of the bottom frustum plane.

Specified by:
getFrustumBottom in interface Camera
Returns:
the value of the bottom frustum plane.

setFrustumBottom

public void setFrustumBottom(float frustumBottom)
setFrustumBottom sets the value of the bottom frustum plane.

Specified by:
setFrustumBottom in interface Camera
Parameters:
frustumBottom - the value of the bottom frustum plane.

getFrustumFar

public float getFrustumFar()
getFrustumFar gets the value of the far frustum plane.

Specified by:
getFrustumFar in interface Camera
Returns:
the value of the far frustum plane.

setFrustumFar

public void setFrustumFar(float frustumFar)
setFrustumFar sets the value of the far frustum plane.

Specified by:
setFrustumFar in interface Camera
Parameters:
frustumFar - the value of the far frustum plane.

getFrustumLeft

public float getFrustumLeft()
getFrustumLeft gets the value of the left frustum plane.

Specified by:
getFrustumLeft in interface Camera
Returns:
the value of the left frustum plane.

setFrustumLeft

public void setFrustumLeft(float frustumLeft)
setFrustumLeft sets the value of the left frustum plane.

Specified by:
setFrustumLeft in interface Camera
Parameters:
frustumLeft - the value of the left frustum plane.

getFrustumNear

public float getFrustumNear()
getFrustumNear gets the value of the near frustum plane.

Specified by:
getFrustumNear in interface Camera
Returns:
the value of the near frustum plane.

setFrustumNear

public void setFrustumNear(float frustumNear)
setFrustumNear sets the value of the near frustum plane.

Specified by:
setFrustumNear in interface Camera
Parameters:
frustumNear - the value of the near frustum plane.

getFrustumRight

public float getFrustumRight()
getFrustumRight gets the value of the right frustum plane.

Specified by:
getFrustumRight in interface Camera
Returns:
frustumRight the value of the right frustum plane.

setFrustumRight

public void setFrustumRight(float frustumRight)
setFrustumRight sets the value of the right frustum plane.

Specified by:
setFrustumRight in interface Camera
Parameters:
frustumRight - the value of the right frustum plane.

getFrustumTop

public float getFrustumTop()
getFrustumTop gets the value of the top frustum plane.

Specified by:
getFrustumTop in interface Camera
Returns:
the value of the top frustum plane.

setFrustumTop

public void setFrustumTop(float frustumTop)
setFrustumTop sets the value of the top frustum plane.

Specified by:
setFrustumTop in interface Camera
Parameters:
frustumTop - the value of the top frustum plane.

getLocation

public Vector3f getLocation()
getLocation retrieves the location vector of the camera.

Specified by:
getLocation in interface Camera
Returns:
the position of the camera.
See Also:
Camera.getLocation()

getDirection

public Vector3f getDirection()
getDirection retrieves the direction vector the camera is facing.

Specified by:
getDirection in interface Camera
Returns:
the direction the camera is facing.
See Also:
Camera.getDirection()

getLeft

public Vector3f getLeft()
getLeft retrieves the left axis of the camera.

Specified by:
getLeft in interface Camera
Returns:
the left axis of the camera.
See Also:
Camera.getLeft()

getUp

public Vector3f getUp()
getUp retrieves the up axis of the camera.

Specified by:
getUp in interface Camera
Returns:
the up axis of the camera.
See Also:
Camera.getUp()

setLocation

public void setLocation(Vector3f location)
setLocation sets the position of the camera.

Specified by:
setLocation in interface Camera
Parameters:
location - the position of the camera.
See Also:
Camera.setLocation(com.jme.math.Vector3f)

setDirection

public void setDirection(Vector3f direction)
setDirection sets the direction this camera is facing. In most cases, this changes the up and left vectors of the camera. If your left or up vectors change, you must updates those as well for correct culling.

Specified by:
setDirection in interface Camera
Parameters:
direction - the direction this camera is facing.
See Also:
Camera.setDirection(com.jme.math.Vector3f)

setLeft

public void setLeft(Vector3f left)
setLeft sets the left axis of this camera. In most cases, this changes the up and direction vectors of the camera. If your direction or up vectors change, you must updates those as well for correct culling.

Specified by:
setLeft in interface Camera
Parameters:
left - the left axis of this camera.
See Also:
Camera.setLeft(com.jme.math.Vector3f)

setUp

public void setUp(Vector3f up)
setUp sets the up axis of this camera. In most cases, this changes the direction and left vectors of the camera. If your left or up vectors change, you must updates those as well for correct culling.

Specified by:
setUp in interface Camera
Parameters:
up - the up axis of this camera.
See Also:
Camera.setUp(com.jme.math.Vector3f)

setAxes

public void setAxes(Vector3f left,
                    Vector3f up,
                    Vector3f direction)
setAxes sets the axes (left, up and direction) for this camera.

Specified by:
setAxes in interface Camera
Parameters:
left - the left axis of the camera.
up - the up axis of the camera.
direction - the direction the camera is facing.
See Also:
Camera.setAxes(com.jme.math.Vector3f,com.jme.math.Vector3f,com.jme.math.Vector3f)

setAxes

public void setAxes(Quaternion axes)
setAxes uses a rotational matrix to set the axes of the camera.

Specified by:
setAxes in interface Camera
Parameters:
axes - the matrix that defines the orientation of the camera.

normalize

public void normalize()
normalize normalizes the camera vectors.

Specified by:
normalize in interface Camera

setFrustum

public void setFrustum(float near,
                       float far,
                       float left,
                       float right,
                       float top,
                       float bottom)
setFrustum sets the frustum of this camera object.

Specified by:
setFrustum in interface Camera
Parameters:
near - the near plane.
far - the far plane.
left - the left plane.
right - the right plane.
top - the top plane.
bottom - the bottom plane.
See Also:
Camera.setFrustum(float, float, float, float, float, float)

setFrustumPerspective

public void setFrustumPerspective(float fovY,
                                  float aspect,
                                  float near,
                                  float far)
Description copied from interface: Camera
setFrustumPerspective defines the frustum for the camera. This frustum is defined by a viewing angle, aspect ratio, and near/far planes

Specified by:
setFrustumPerspective in interface Camera
Parameters:
fovY - Frame of view angle along the Y.
aspect - Width:Height ratio
near - Near view plane distance
far - Far view plane distance

setFrame

public void setFrame(Vector3f location,
                     Vector3f left,
                     Vector3f up,
                     Vector3f direction)
setFrame sets the orientation and location of the camera.

Specified by:
setFrame in interface Camera
Parameters:
location - the point position of the camera.
left - the left axis of the camera.
up - the up axis of the camera.
direction - the facing of the camera.
See Also:
Camera.setFrame(com.jme.math.Vector3f, com.jme.math.Vector3f, com.jme.math.Vector3f, com.jme.math.Vector3f)

lookAt

public void lookAt(Vector3f pos,
                   Vector3f worldUpVector)
lookAt is a convienence method for auto-setting the frame based on a world position the user desires the camera to look at. It repoints the camera towards the given position using the difference between the position and the current camera location as a direction vector and the worldUpVector to compute up and left camera vectors.

Specified by:
lookAt in interface Camera
Parameters:
pos - where to look at in terms of world coordinates
worldUpVector - a normalized vector indicating the up direction of the world. (typically {0, 1, 0} in jME.)

setFrame

public void setFrame(Vector3f location,
                     Quaternion axes)
setFrame sets the orientation and location of the camera.

Specified by:
setFrame in interface Camera
Parameters:
location - the point position of the camera.
axes - the orientation of the camera.

update

public void update()
update updates the camera parameters by calling onFrustumChange,onViewPortChange and onFrameChange.

Specified by:
update in interface Camera
See Also:
Camera.update()

getPlaneState

public int getPlaneState()
getPlaneState returns the state of the frustum planes. So checks can be made as to which frustum plane has been examined for culling thus far.

Specified by:
getPlaneState in interface Camera
Returns:
the current plane state int.

setPlaneState

public void setPlaneState(int planeState)
setPlaneState sets the state to keep track of tested planes for culling.

Specified by:
setPlaneState in interface Camera
Parameters:
planeState - the updated state.

getViewPortLeft

public float getViewPortLeft()
getViewPortLeft gets the left boundary of the viewport

Specified by:
getViewPortLeft in interface Camera
Returns:
the left boundary of the viewport

setViewPortLeft

public void setViewPortLeft(float left)
setViewPortLeft sets the left boundary of the viewport

Specified by:
setViewPortLeft in interface Camera
Parameters:
left - the left boundary of the viewport

getViewPortRight

public float getViewPortRight()
getViewPortRight gets the right boundary of the viewport

Specified by:
getViewPortRight in interface Camera
Returns:
the right boundary of the viewport

setViewPortRight

public void setViewPortRight(float right)
setViewPortRight sets the right boundary of the viewport

Specified by:
setViewPortRight in interface Camera
Parameters:
right - the right boundary of the viewport

getViewPortTop

public float getViewPortTop()
getViewPortTop gets the top boundary of the viewport

Specified by:
getViewPortTop in interface Camera
Returns:
the top boundary of the viewport

setViewPortTop

public void setViewPortTop(float top)
setViewPortTop sets the top boundary of the viewport

Specified by:
setViewPortTop in interface Camera
Parameters:
top - the top boundary of the viewport

getViewPortBottom

public float getViewPortBottom()
getViewPortBottom gets the bottom boundary of the viewport

Specified by:
getViewPortBottom in interface Camera
Returns:
the bottom boundary of the viewport

setViewPortBottom

public void setViewPortBottom(float bottom)
setViewPortBottom sets the bottom boundary of the viewport

Specified by:
setViewPortBottom in interface Camera
Parameters:
bottom - the bottom boundary of the viewport

setViewPort

public void setViewPort(float left,
                        float right,
                        float bottom,
                        float top)
setViewPort sets the boundaries of the viewport

Specified by:
setViewPort in interface Camera
Parameters:
left - the left boundary of the viewport
right - the right boundary of the viewport
bottom - the bottom boundary of the viewport
top - the top boundary of the viewport

contains

public Camera.FrustumIntersect contains(BoundingVolume bound)
culled tests a bounding volume against the planes of the camera's frustum. The frustums planes are set such that the normals all face in towards the viewable scene. Therefore, if the bounding volume is on the negative side of the plane is can be culled out. If the object should be culled (i.e. not rendered) true is returned, otherwise, false is returned. If bound is null, false is returned and the object will not be culled.

Specified by:
contains in interface Camera
Parameters:
bound - the bound to check for culling
Returns:
true if the bound should be culled, false otherwise.

onFrustumChange

public void onFrustumChange()
onFrustumChange updates the frustum to reflect any changes made to the planes. The new frustum values are kept in a temporary location for use when calculating the new frame. It should be noted that the abstract implementation of this class only updates the data, and does not make any rendering calls. As such, any impelmenting subclass should insure to override this method call it with super and then call the rendering specific code.

Specified by:
onFrustumChange in interface Camera

onFrameChange

public void onFrameChange()
onFrameChange updates the view frame of the camera. It should be noted that the abstract implementation of this class only updates the data, and does not make any rendering calls. As such, any implementing subclass should insure to override this method call it with super and then call the rendering specific code.

Specified by:
onFrameChange in interface Camera

isParallelProjection

public boolean isParallelProjection()
Specified by:
isParallelProjection in interface Camera
Returns:
true if parallel projection is enable, false if in normal perspective mode
See Also:
setParallelProjection(boolean)

setParallelProjection

public void setParallelProjection(boolean value)
Enable/disable parallel projection.

Specified by:
setParallelProjection in interface Camera
Parameters:
value - true to set up this camera for parallel projection is enable, false to enter normal perspective mode

getWorldCoordinates

public Vector3f getWorldCoordinates(Vector2f screenPos,
                                    float zPos)
Description copied from interface: Camera
Convert screen to world coordinates.

Specified by:
getWorldCoordinates in interface Camera
Parameters:
screenPos - Vector2f representing the screen position with 0,0 at the bottom left
zPos - float The z position away from the viewing plane.
Returns:
Vector3f The store vector, after storing it's result.

getProjectionMatrix

public Matrix4f getProjectionMatrix()

getModelViewMatrix

public Matrix4f getModelViewMatrix()

getWorldCoordinates

public Vector3f getWorldCoordinates(Vector2f screenPosition,
                                    float zPos,
                                    Vector3f store)
Description copied from interface: Camera
Convert screen to world coordinates.

Specified by:
getWorldCoordinates in interface Camera
Parameters:
screenPosition - Vector2f representing the screen position with 0,0 at the bottom left
zPos - float The z position away from the viewing plane.
store - Vector3f The vector to store the result in.
Returns:
Vector3f The store vector, after storing it's result.

getScreenCoordinates

public Vector3f getScreenCoordinates(Vector3f worldPos)
Description copied from interface: Camera
Convert world to screen coordinates.

Specified by:
getScreenCoordinates in interface Camera
Parameters:
worldPos - Vector3f representing the world position
Returns:
Vector3f Screen coordinates, with 0,0 at the bottom left.

getScreenCoordinates

public Vector3f getScreenCoordinates(Vector3f worldPosition,
                                     Vector3f store)
Implementation contributed by Zbyl.

Specified by:
getScreenCoordinates in interface Camera
Parameters:
worldPosition - Vector3f representing the world position
store - Vector3f The vector to store the result in.
Returns:
Vector3f The store vector, after storing it's result. Screen coordinates, with 0,0 at the bottom left.
See Also:
Camera.getScreenCoordinates(Vector3f, Vector3f)

getHeight

public abstract int getHeight()
Returns:
the width/resolution of the display.

getWidth

public abstract int getWidth()
Returns:
the height/resolution of the display.

write

public void write(JMEExporter e)
           throws java.io.IOException
Specified by:
write in interface Savable
Throws:
java.io.IOException

read

public void read(JMEImporter e)
          throws java.io.IOException
Specified by:
read in interface Savable
Throws:
java.io.IOException

getClassTag

public java.lang.Class<AbstractCamera> getClassTag()
Specified by:
getClassTag in interface Savable

setDataOnly

public void setDataOnly(boolean dataOnly)

isDataOnly

public boolean isDataOnly()