simbad.sim
Class Box

java.lang.Object
  extended by simbad.sim.BaseObject
      extended by simbad.sim.StaticObject
          extended by simbad.sim.BlockWorldObject
              extended by simbad.sim.Box
Direct Known Subclasses:
Wall

public class Box
extends BlockWorldObject

A box object which can be put in the environment.

Author:
Louis Hugues

Field Summary
(package private)  float sx
          Object dimension.s
(package private)  float sy
          Object dimension.s
(package private)  float sz
          Object dimension.s
 
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
Box(javax.vecmath.Vector3d pos, javax.vecmath.Vector3f extent, EnvironmentDescription wd)
          Constructs a box object.
Box(javax.vecmath.Vector3d pos, javax.vecmath.Vector3f extent, EnvironmentDescription wd, javax.vecmath.Color3f color)
          Constructs a box object.
 
Method Summary
protected  void create3D(EnvironmentDescription wd, javax.vecmath.Color3f color)
          Create the 3d object
 
Methods inherited from class simbad.sim.BlockWorldObject
rotate90, setColor
 
Methods inherited from class simbad.sim.StaticObject
create3D, createLocalToVworld, createTransformedBounds, getTransformedBounds, intersect
 
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

sx

float sx
Object dimension.s


sy

float sy
Object dimension.s


sz

float sz
Object dimension.s

Constructor Detail

Box

public Box(javax.vecmath.Vector3d pos,
           javax.vecmath.Vector3f extent,
           EnvironmentDescription wd)
Constructs a box object.

Parameters:
pos - position of the center of the object.
extent - - extent in the three directions.
wd - EnvironmentDescription for global parameters.

Box

public Box(javax.vecmath.Vector3d pos,
           javax.vecmath.Vector3f extent,
           EnvironmentDescription wd,
           javax.vecmath.Color3f color)
Constructs a box object.

Parameters:
pos - position of the center of the object.
extent - - extent in the three directions.
wd - EnvironmentDescription for global parameters.
color - color of the object.
Method Detail

create3D

protected void create3D(EnvironmentDescription wd,
                        javax.vecmath.Color3f color)
Create the 3d object