Class Camera

java.lang.Object
  |
  +--SimpleCamera
        |
        +--Camera

public class Camera
extends SimpleCamera

Camera extends simple camera with the ability to specify the VPN, VUV and VRP.


Constructor Summary
Camera()
          Create a default camera that behaves as a SimpleCamera
Camera(Camera c)
          Create a camera by copying an existing camera
 
Method Summary
 Matrix getInvViewMatrix()
          Get the VC to WC mapping matrix Note the matrix is copied not referenced.
 Matrix getViewMatrix()
          Get the WC to VC mapping matrix Note the matrix is copied not referenced.
 Vector getVPN()
          Get the view plane normal.
 Point getVRP()
          Get the view reference point Note the point is copied not referenced.
 Vector getVUV()
          Get the view up vector Note the vector is copied not referenced.
 void setVPN(Vector v)
          Set the view plane normal.
 void setVRP(Point p)
          Set the view reference point Note the point is copied not referenced.
 void setVUV(Vector v)
          Set the view up vector.
 
Methods inherited from class SimpleCamera
initBasic, ray, setCOP, setResolution, setVPWindow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Camera

public Camera()
Create a default camera that behaves as a SimpleCamera


Camera

public Camera(Camera c)
Create a camera by copying an existing camera

Parameters:
c - the camera to copy
Method Detail

setVPN

public void setVPN(Vector v)
Set the view plane normal. Note the vector is copied not referenced.

Parameters:
v - the vector with the VPN value

setVUV

public void setVUV(Vector v)
Set the view up vector. Note the vector is copied not referenced.

Parameters:
v - the vector with the VUV value

setVRP

public void setVRP(Point p)
Set the view reference point Note the point is copied not referenced.


getVPN

public Vector getVPN()
Get the view plane normal. Note the vector is copied not referenced.

Returns:
new vector with the VPN value

getVUV

public Vector getVUV()
Get the view up vector Note the vector is copied not referenced.

Returns:
new vector with the VUV value

getVRP

public Point getVRP()
Get the view reference point Note the point is copied not referenced.

Returns:
new point with the VRP value

getViewMatrix

public Matrix getViewMatrix()
Get the WC to VC mapping matrix Note the matrix is copied not referenced.

Returns:
new matrix

getInvViewMatrix

public Matrix getInvViewMatrix()
Get the VC to WC mapping matrix Note the matrix is copied not referenced.

Returns:
new matrix