public abstract class Object3DBranch extends BranchGroup
Modifier and Type | Field and Description |
---|---|
protected static java.lang.Integer |
DEFAULT_AMBIENT_COLOR |
protected static java.lang.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 |
ALLOW_DETACH
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
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
Constructor and Description |
---|
Object3DBranch() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<float[][]> |
getAreaPoints(java.awt.geom.Area area,
float flatness,
boolean reversed)
Returns the list of polygons points matching the given
area . |
protected java.util.List<float[][]> |
getAreaPoints(java.awt.geom.Area area,
java.util.List<float[][]> areaPoints,
java.util.List<float[][]> areaHoles,
float flatness,
boolean reversed)
Returns the list of polygons points matching the given
area with detailed information in
areaPoints and areaHoles . |
protected Texture |
getHomeTextureClone(Texture texture,
Home home)
Returns a cloned instance of texture shared per
home or
the texture itself if home is null . |
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. |
abstract void |
update()
Updates the this branch from the home object.
|
cloneNode, compile, detach, pickAll, pickAll, pickAllSorted, pickAllSorted, pickAny, pickAny, pickClosest, pickClosest
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
protected static final ColoringAttributes OUTLINE_COLORING_ATTRIBUTES
protected static final PolygonAttributes OUTLINE_POLYGON_ATTRIBUTES
protected static final LineAttributes OUTLINE_LINE_ATTRIBUTES
protected static final java.lang.Integer DEFAULT_COLOR
protected static final java.lang.Integer DEFAULT_AMBIENT_COLOR
protected static final Material DEFAULT_MATERIAL
public abstract void update()
protected Texture getHomeTextureClone(Texture texture, Home home)
home
or
the texture itself if home
is null
.
As sharing textures across universes might cause some problems,
it's safer to handle a copy of textures for a given home.protected java.awt.Shape getShape(float[][] points)
points
array.protected Material getMaterial(java.lang.Integer diffuseColor, java.lang.Integer ambientColor, float shininess)
protected java.util.List<float[][]> getAreaPoints(java.awt.geom.Area area, float flatness, boolean reversed)
area
.protected java.util.List<float[][]> getAreaPoints(java.awt.geom.Area area, java.util.List<float[][]> areaPoints, java.util.List<float[][]> areaHoles, float flatness, boolean reversed)
area
with detailed information in
areaPoints
and areaHoles
.
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License