Sweet Home 3D 4.1

com.eteks.sweethome3d.j3d
Class Object3DBranch

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Group
              extended by javax.media.j3d.BranchGroup
                  extended by 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.


Field Summary
protected static Integer DEFAULT_AMBIENT_COLOR
           
protected static Integer DEFAULT_COLOR
           
protected static Material DEFAULT_MATERIAL
           
protected static ColoringAttributes OUTLINE_COLORING_ATTRIBUTES
           
protected static LineAttributes OUTLINE_LINE_ATTRIBUTES
           
protected static PolygonAttributes OUTLINE_POLYGON_ATTRIBUTES
           
 
Fields inherited from class javax.media.j3d.BranchGroup
ALLOW_DETACH
 
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_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
Object3DBranch()
           
 
Method Summary
protected  Material getMaterial(Integer diffuseColor, Integer ambientColor, float shininess)
          Returns a shared material instance matching the given color.
protected  Shape getShape(float[][] points)
          Returns the shape matching the coordinates in points array.
abstract  void update()
          Updates the this branch from the home object.
 
Methods inherited from class javax.media.j3d.BranchGroup
cloneNode, compile, detach, pickAll, pickAllSorted, pickAny, 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, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 Integer DEFAULT_COLOR

DEFAULT_AMBIENT_COLOR

protected static final Integer DEFAULT_AMBIENT_COLOR

DEFAULT_MATERIAL

protected static final Material DEFAULT_MATERIAL
Constructor Detail

Object3DBranch

public Object3DBranch()
Method Detail

update

public abstract void update()
Updates the this branch from the home object.


getShape

protected Shape getShape(float[][] points)
Returns the shape matching the coordinates in points array.


getMaterial

protected Material getMaterial(Integer diffuseColor,
                               Integer ambientColor,
                               float shininess)
Returns a shared material instance matching the given color.


Sweet Home 3D 4.1

© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License