simbad.sim
Class StaticObject

java.lang.Object
  extended bysimbad.sim.BaseObject
      extended bysimbad.sim.StaticObject
Direct Known Subclasses:
BlockWorldObject

public class StaticObject
extends simbad.sim.BaseObject

Base Object for all block world objects (box,wall,arch ...). All object which doesnt move.


Constructor Summary
StaticObject()
           
 
Method Summary
 void attach()
          Re-add object to the scenegraph.
 void detach()
          Removes object from the scenegraph.
 boolean getCanBeTraversed()
          Gets the canBeTraversed Flag.
 void getRotationTransform(javax.media.j3d.Transform3D t)
          Obtain rotation transform.
 void getTranslationTransform(javax.media.j3d.Transform3D t)
          Obtain translation transform.
 void rotateY(double angle)
          Rotates (relative to current rotation) the object about Y axis.
 void setCanBeTraversed(boolean canbetraversed)
          Sets the canBeTraversed Flag.
 void setColor(javax.vecmath.Color3f color)
          Change the color while the simulation is running.
 void translateTo(javax.vecmath.Vector3d t)
          Translates (relative to current pos) the object to given position.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticObject

public StaticObject()
Method Detail

translateTo

public void translateTo(javax.vecmath.Vector3d t)
Translates (relative to current pos) the object to given position.


rotateY

public void rotateY(double angle)
Rotates (relative to current rotation) the object about Y axis.


getTranslationTransform

public void getTranslationTransform(javax.media.j3d.Transform3D t)
Obtain translation transform.


getRotationTransform

public void getRotationTransform(javax.media.j3d.Transform3D t)
Obtain rotation transform.


detach

public void detach()
Removes object from the scenegraph.


attach

public void attach()
Re-add object to the scenegraph.


setCanBeTraversed

public void setCanBeTraversed(boolean canbetraversed)
Sets the canBeTraversed Flag.


getCanBeTraversed

public boolean getCanBeTraversed()
Gets the canBeTraversed Flag.


setColor

public void setColor(javax.vecmath.Color3f color)
Change the color while the simulation is running.