Class edu.calpoly.smetzger.j3d.loaders.Assembly
java.lang.Object
|
+----javax.media.j3d.SceneGraphObject
|
+----javax.media.j3d.Node
|
+----javax.media.j3d.Group
|
+----edu.calpoly.smetzger.j3d.loaders.Assembly
- Subclasses:
- NFFFile, ObjectFile
- public class Assembly
- extends javax.media.j3d.Group
This class extends the javax.media.j3d.Group Group class. An
Assembly consist of a group of parts.
| Fields inherited from class javax.media.j3d.Group
|
| ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE |
| Fields inherited from class javax.media.j3d.Node
|
| ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICK, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
|
Constructor Summary
|
Assembly()
Instantiate the class with null contents.
|
|
Method Summary
|
|
javax.media.j3d.BoundingBox
|
getBoundingBox()
Get the bounding box of the assembly
|
|
javax.media.j3d.BoundingSphere
|
getBoundingSphere()
Get the bounding sphere of the assembly
|
|
void
|
setPolygons(int mode)
Set the polygon mode for the assembly.
|
|
void
|
setRenderer(int mode)
Set the rendering mode for the assembly.
|
| Methods inherited from class javax.media.j3d.Group
|
| addChild, cloneNode, duplicateNode, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, insertChild, moveTo, numChildren, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds |
| Methods inherited from class javax.media.j3d.Node
|
| cloneNode, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.j3d.SceneGraphObject
|
| clearCapability, getCapability, getUserData, isCompiled, isLive, setCapability, setUserData |
| Methods inherited from class java.lang.Object
|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVERSE
public static final int REVERSE
Assembly
public Assembly()
- Instantiate the class with null contents.
setPolygons
public void setPolygons(int mode)
- Set the polygon mode for the assembly. This assumes setCapability(ALLOW_MODE_WRITE).
- Parameters:
mode
- PolygonAttributes constant can be POLYGON_POINT, POLYGON_LINE, or POLYGON_FILL
setRenderer
public void setRenderer(int mode)
- Set the rendering mode for the assembly. This assumes setCapability(ALLOW_COLOR_WRITE).
- Parameters:
mode
- ColoringAttributes constant can be FASTEST,NICEST,SHADE_FLAT,or SHADE_GOURAUD
getBoundingBox
public javax.media.j3d.BoundingBox getBoundingBox()
- Get the bounding box of the assembly
getBoundingSphere
public javax.media.j3d.BoundingSphere getBoundingSphere()
- Get the bounding sphere of the assembly