unc.cdva.interactiveitems
Class InteractiveItem

java.lang.Object
  extended by unc.cdva.utils.TaggedObject
      extended by unc.cdva.interactiveitems.InteractiveItem
All Implemented Interfaces:
Taggable
Direct Known Subclasses:
AnimatedItem, PathwayEnd, Reticle

public class InteractiveItem
extends TaggedObject

Super class for items that change on screen (ie: they have animations)

Author:
Dan Van Atta, Guillaume Conte

Field Summary
protected  javax.vecmath.Vector3f direction
          Vector representing the direction of the item.
protected  javax.vecmath.Vector3f position
          Vector representing the position of the item.
protected  javax.vecmath.Vector3f scaling
          Vector repesenting how to scale the item.
 
Constructor Summary
InteractiveItem()
          Default constructor for interactive item, initializes the interactive item with default position/direction/scale values, does not initialize the state of the item.
 
Method Summary
 javax.vecmath.Vector3f getDirection()
           
 PdsBean getPdsBean()
           
 javax.vecmath.Vector3f getPosition()
           
 javax.vecmath.Vector3f getScaling()
           
 int getState()
           
 void setDirection(javax.vecmath.Vector3f direction)
           
 void setPds(PdsBean pds)
          SetPds - sets the position, direction, and scaling of the gun.
 void setPosition(javax.vecmath.Vector3f position)
           
 void setScaling(javax.vecmath.Vector3f scaling)
           
protected  void setState(int state)
           
 
Methods inherited from class unc.cdva.utils.TaggedObject
createId, equals, getId, hashCode, setId, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

protected javax.vecmath.Vector3f position
Vector representing the position of the item.


direction

protected javax.vecmath.Vector3f direction
Vector representing the direction of the item.


scaling

protected javax.vecmath.Vector3f scaling
Vector repesenting how to scale the item.

Constructor Detail

InteractiveItem

public InteractiveItem()
Default constructor for interactive item, initializes the interactive item with default position/direction/scale values, does not initialize the state of the item.

Method Detail

getPdsBean

public PdsBean getPdsBean()
Returns:
A pds bean, this is the position, direction and scaling of the item encapsulated into a bean.

getDirection

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

getPosition

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

getScaling

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

getState

public int getState()
Returns:
Returns the state.

setDirection

public void setDirection(javax.vecmath.Vector3f direction)
Parameters:
direction - The direction to set.

setPosition

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

setScaling

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

setPds

public void setPds(PdsBean pds)
SetPds - sets the position, direction, and scaling of the gun.

Parameters:
pds - A bean containing the pds data.

setState

protected void setState(int state)
Parameters:
state - The state to set.