com.eteks.sweethome3d.j3d
Class Object3DBranch
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Group
javax.media.j3d.BranchGroup
com.eteks.sweethome3d.j3d.Object3DBranch
- Direct Known Subclasses:
- Ground3D, HomePieceOfFurniture3D, Room3D, Wall3D
public abstract class Object3DBranch
- extends BranchGroup
Root of a branch that matches a home object.
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_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
Method Summary |
protected Material |
getMaterial(java.lang.Integer diffuseColor,
java.lang.Integer ambientColor,
float shininess)
Returns a shared material instance matching the given color. |
protected java.awt.Shape |
getShape(float[][] points)
Returns the shape matching the coordinates in points array. |
protected java.awt.Shape |
parseShape(java.lang.String svgPathShape)
Returns the AWT shape matching the given SVG path shape. |
abstract void |
update()
Updates the this branch from the home object. |
Methods inherited from class javax.media.j3d.BranchGroup |
cloneNode, compile, detach, pickAll, pickAll, pickAllSorted, pickAllSorted, pickAny, pickAny, pickClosest, pickClosest |
Methods inherited from class javax.media.j3d.Group |
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds |
Methods inherited from class javax.media.j3d.Node |
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OUTLINE_COLORING_ATTRIBUTES
protected static final ColoringAttributes OUTLINE_COLORING_ATTRIBUTES
OUTLINE_POLYGON_ATTRIBUTES
protected static final PolygonAttributes OUTLINE_POLYGON_ATTRIBUTES
OUTLINE_LINE_ATTRIBUTES
protected static final LineAttributes OUTLINE_LINE_ATTRIBUTES
DEFAULT_COLOR
protected static final java.lang.Integer DEFAULT_COLOR
DEFAULT_AMBIENT_COLOR
protected static final java.lang.Integer DEFAULT_AMBIENT_COLOR
DEFAULT_MATERIAL
protected static final Material DEFAULT_MATERIAL
Object3DBranch
public Object3DBranch()
update
public abstract void update()
- Updates the this branch from the home object.
getShape
protected java.awt.Shape getShape(float[][] points)
- Returns the shape matching the coordinates in
points
array.
getMaterial
protected Material getMaterial(java.lang.Integer diffuseColor,
java.lang.Integer ambientColor,
float shininess)
- Returns a shared material instance matching the given color.
parseShape
protected java.awt.Shape parseShape(java.lang.String svgPathShape)
- Returns the AWT shape matching the given SVG path shape.