simbad.sim
Class BlockWorldCompositeObject

java.lang.Object
  extended by simbad.sim.BaseObject
      extended by simbad.sim.StaticObject
          extended by simbad.sim.BlockWorldObject
              extended by simbad.sim.BlockWorldCompositeObject
Direct Known Subclasses:
Arch

public class BlockWorldCompositeObject
extends BlockWorldObject

Base classt for all composite block world objects (arch...).


Field Summary
(package private)  java.util.ArrayList components
          Keep list of all simple components .
 
Fields inherited from class simbad.sim.StaticObject
appearance, localToVworld, transformedBounds
 
Fields inherited from class simbad.sim.BaseObject
black, branchGroup, canBeTraversed, compilable, detachedFromSceneGraph, group, localBounds, material, rotation, rotationGroup, translation, translationGroup, white, world
 
Constructor Summary
BlockWorldCompositeObject()
           
 
Method Summary
protected  void addComponent(BlockWorldObject o)
           
protected  void createTransformedBounds()
          Create and pre Compute the transformed bound of the objects.
protected  boolean intersect(javax.media.j3d.BoundingSphere bs)
          Returns true if the object intersect with the given bounding sphere.
 
Methods inherited from class simbad.sim.BlockWorldObject
rotate90, setColor
 
Methods inherited from class simbad.sim.StaticObject
create3D, createLocalToVworld, getTransformedBounds
 
Methods inherited from class simbad.sim.BaseObject
addChild, addChild, attach, compile, create3D, detach, getBounds, getCanBeTraversed, getGroup, getNode, getRotationTransform, getRotationTransformGroup, getTranslation, getTranslationTransform, getTranslationTransform, resetTransforms, rotateY, setBounds, setCanBeTraversed, setWorld, translateTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

components

java.util.ArrayList components
Keep list of all simple components .

Constructor Detail

BlockWorldCompositeObject

BlockWorldCompositeObject()
Method Detail

createTransformedBounds

protected void createTransformedBounds()
Create and pre Compute the transformed bound of the objects.

Overrides:
createTransformedBounds in class StaticObject

intersect

protected boolean intersect(javax.media.j3d.BoundingSphere bs)
Returns true if the object intersect with the given bounding sphere. This can be overriden.

Overrides:
intersect in class StaticObject
Parameters:
bs - the boundingsphere to intersect with.

addComponent

protected void addComponent(BlockWorldObject o)