unc.cdva.utils
Class PdsBean

java.lang.Object
  extended by unc.cdva.utils.PdsBean

public class PdsBean
extends java.lang.Object

Bean that stores the position, direction and scaling vectors of an item

Author:
Guillaume Conte

Constructor Summary
PdsBean()
          Instantiates a pds bean with default data.
PdsBean(javax.vecmath.Vector3f pos, javax.vecmath.Vector3f dir, javax.vecmath.Vector3f scale)
          Instantiates a pds bean with data provided by this constructor's parameters.
 
Method Summary
 javax.vecmath.Vector3f getDirection()
           
 javax.vecmath.Vector3f getPosition()
           
 javax.vecmath.Vector3f getScaling()
           
 void setDirection(javax.vecmath.Vector3f direction)
          Sets the direction, the vector is normalized for you.
 void setPosition(javax.vecmath.Vector3f position)
           
 void setScaling(javax.vecmath.Vector3f scaling)
           
 java.lang.String toString()
          Returns a string which holds the position, direction, and scaling of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdsBean

public PdsBean(javax.vecmath.Vector3f pos,
               javax.vecmath.Vector3f dir,
               javax.vecmath.Vector3f scale)
Instantiates a pds bean with data provided by this constructor's parameters.

Parameters:
pos - The position vector.
dir - The direction vector.
scale - The scaling vector.

PdsBean

public PdsBean()
Instantiates a pds bean with default data.

Method Detail

getDirection

public javax.vecmath.Vector3f getDirection()
Returns:
Returns the direction.

setDirection

public void setDirection(javax.vecmath.Vector3f direction)
Sets the direction, the vector is normalized for you.

Parameters:
direction - The direction to set, can be any arbitrary vector.

getPosition

public javax.vecmath.Vector3f getPosition()
Returns:
Returns the position.

setPosition

public void setPosition(javax.vecmath.Vector3f position)
Parameters:
position - The position to set.

getScaling

public javax.vecmath.Vector3f getScaling()
Returns:
Returns the scaling.

setScaling

public void setScaling(javax.vecmath.Vector3f scaling)
Parameters:
scaling - The scaling to set.

toString

public java.lang.String toString()
Returns a string which holds the position, direction, and scaling of this object

Overrides:
toString in class java.lang.Object