simbad.sim
Class Box
java.lang.Object
simbad.sim.BaseObject
simbad.sim.StaticObject
simbad.sim.BlockWorldObject
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.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. |
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 |
sx
float sx
- Object dimension.s
sy
float sy
- Object dimension.s
sz
float sz
- Object dimension.s
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.
create3D
protected void create3D(EnvironmentDescription wd,
javax.vecmath.Color3f color)
- Create the 3d object