|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeRetained
javax.media.j3d.LeafRetained
javax.media.j3d.MorphRetained
class MorphRetained
A morph leaf node consisting of geometery and appearance properties.
Field Summary | |
---|---|
(package private) AppearanceRetained |
appearance
The appearance component of the morph node. |
(package private) static int |
APPEARANCE_CHANGED
|
(package private) static int |
APPEARANCEOVERRIDE_CHANGED
|
(package private) boolean |
appearanceOverrideEnable
|
(package private) Bounds |
bounds
|
(package private) static int |
BOUNDS_CHANGED
|
(package private) BranchGroupRetained[] |
branchGroupPath
Reference to the BranchGroup path of this mirror shape This is used for picking only. |
(package private) int |
changedFrequent
|
(package private) int |
closestSwitchIndex
|
(package private) SwitchRetained |
closestSwitchParent
|
(package private) static int |
COLLISION_CHANGED
|
(package private) Bounds |
collisionBound
|
(package private) Bounds |
collisionVwcBound
|
(package private) static int |
GEOMETRY_CHANGED
|
(package private) GeometryArrayRetained[] |
geometryArrays
The Geosets associated with the morph node. |
(package private) boolean |
isCollidable
|
(package private) boolean |
isPickable
|
(package private) float[] |
Mcolor
|
(package private) float[] |
Mcoord
|
(package private) java.util.ArrayList |
mirrorShape3D
The mirror Shape3DRetained nodes for this object. |
(package private) float[] |
Mnormal
|
(package private) GeometryArray |
morphedGeometryArray
|
(package private) float[][] |
MtexCoord
|
private int |
numGeometryArrays
|
(package private) static int |
targetThreads
|
private static double |
TOLERANCE
|
(package private) static int |
UPDATE_MORPH
|
(package private) boolean |
visible
|
(package private) BoundingBox |
vwcBounds
|
(package private) double[] |
weights
The weight vector the morph node. |
Fields inherited from class javax.media.j3d.LeafRetained |
---|
boundsDirty, switchState |
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
Fields inherited from class javax.media.j3d.IndexedObject |
---|
listIdx |
Constructor Summary | |
---|---|
MorphRetained()
|
Method Summary | |
---|---|
(package private) void |
clearLive(SetLiveState s)
assign a name to this node when it is made live. |
(package private) void |
compile(CompileState compState)
This is the default compile() method, which just marks the sgo as compiled. |
(package private) void |
computeCombineBounds(Bounds bounds)
ONLY needed for SHAPE, MORPH, and LINK node type. |
(package private) void |
doErrorCheck(GeometryArrayRetained prevGeo,
GeometryArrayRetained geo)
|
(package private) Appearance |
getAppearance()
Retrieves the morph node's appearance component. |
(package private) boolean |
getAppearanceOverrideEnable()
|
(package private) Bounds |
getBounds()
Gets the bounding object of a node. |
(package private) Bounds |
getCollisionBounds()
Gets the collision bounds of a node. |
(package private) Bounds |
getEffectiveBounds()
Gets the bounding object of a node. |
(package private) GeometryArray |
getGeometryArray(int index)
Retrieves the geometryArrays component of this Morph node. |
(package private) void |
getMirrorObjects(java.util.ArrayList leafList,
HashKey key)
|
(package private) Shape3DRetained |
getMirrorShape(HashKey key)
|
(package private) Shape3DRetained |
getMirrorShape(SceneGraphPath path)
|
(package private) void |
getMirrorShape3D(java.util.ArrayList list,
HashKey k)
|
(package private) int |
getNumGeometryArrays()
|
(package private) double[] |
getWeights()
Retrieves the Morph node's weight vector |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initMorphedGeometry()
Initialization of morphed geometry |
(package private) boolean |
intersect(PickInfo pickInfo,
PickShape pickShape,
int flags)
|
(package private) boolean |
intersect(SceneGraphPath path,
PickShape pickShape,
double[] dist)
Check if the geometry component of this shape node under path intersects with the pickShape. |
(package private) void |
searchGeometryAtoms(UnorderList list)
|
(package private) void |
setAppearance(Appearance newAppearance)
Sets the appearance component of this Morph node. |
(package private) void |
setAppearanceOverrideEnable(boolean flag)
|
(package private) void |
setBounds(Bounds bounds)
Sets the geometric bounds of a node. |
(package private) void |
setBoundsAutoCompute(boolean autoCompute)
Sets the automatic calcuation of geometric bounds of a node. |
(package private) void |
setCollisionBounds(Bounds bounds)
Sets the collision bounds of a node. |
(package private) void |
setGeometryArrays(GeometryArray[] geometryArrays)
Sets the geometryArrays component of the Morph node. |
(package private) void |
setLive(SetLiveState s)
assign a name to this node when it is made live. |
(package private) void |
setWeights(double[] weights)
Sets the Morph node's weight vector |
(package private) void |
updateBounds()
|
(package private) void |
updateCollidable(HashKey[] keys,
boolean[] collide)
|
void |
updateData(Geometry mga)
Update GeometryArray computed by morphing input GeometryArrays with weights |
(package private) void |
updateImmediateMirrorObject(java.lang.Object[] objs)
|
(package private) void |
updateMorphedGeometryArray(GeometryArrayRetained geo,
boolean coordinatesChanged)
|
(package private) void |
updatePickable(HashKey[] keys,
boolean[] pick)
|
Methods inherited from class javax.media.j3d.LeafRetained |
---|
clone, updateBoundingLeaf, updateMirrorObject, updateTransformChange |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, clone, doSetLive, getSource, isInSetLive, markAsLive, setCompiled, setLive, setSource, traverse |
Methods inherited from class javax.media.j3d.IndexedObject |
---|
getIdxUsed, incIdxUsed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int GEOMETRY_CHANGED
static final int APPEARANCE_CHANGED
static final int COLLISION_CHANGED
static final int BOUNDS_CHANGED
static final int APPEARANCEOVERRIDE_CHANGED
static final int UPDATE_MORPH
private static final double TOLERANCE
java.util.ArrayList mirrorShape3D
static final int targetThreads
AppearanceRetained appearance
GeometryArrayRetained[] geometryArrays
private int numGeometryArrays
double[] weights
BranchGroupRetained[] branchGroupPath
boolean isPickable
boolean isCollidable
SwitchRetained closestSwitchParent
int closestSwitchIndex
boolean visible
Bounds bounds
BoundingBox vwcBounds
Bounds collisionBound
Bounds collisionVwcBound
GeometryArray morphedGeometryArray
float[] Mcoord
float[] Mcolor
float[] Mnormal
float[][] MtexCoord
boolean appearanceOverrideEnable
int changedFrequent
Constructor Detail |
---|
MorphRetained()
Method Detail |
---|
void setCollisionBounds(Bounds bounds)
bounds
- the bounding object for the nodevoid setBounds(Bounds bounds)
setBounds
in class NodeRetained
bounds
- the bounding object for the nodeBounds getCollisionBounds()
void setGeometryArrays(GeometryArray[] geometryArrays)
geometryArrays
- the new vector of geometryArrays for the morph nodeGeometryArray getGeometryArray(int index)
index
- the index of GeometryArray to be returned
void setAppearance(Appearance newAppearance)
appearance
- the new apearance component for this morph nodeAppearance getAppearance()
void setAppearanceOverrideEnable(boolean flag)
boolean getAppearanceOverrideEnable()
boolean intersect(PickInfo pickInfo, PickShape pickShape, int flags)
boolean intersect(SceneGraphPath path, PickShape pickShape, double[] dist)
void setWeights(double[] weights)
wieghts
- the new vector of weights for the morph nodedouble[] getWeights()
Bounds getBounds()
getBounds
in class NodeRetained
Bounds getEffectiveBounds()
NodeRetained
getEffectiveBounds
in class NodeRetained
void computeCombineBounds(Bounds bounds)
computeCombineBounds
in class NodeRetained
int getNumGeometryArrays()
void updateMorphedGeometryArray(GeometryArrayRetained geo, boolean coordinatesChanged)
public void updateData(Geometry mga)
updateData
in interface GeometryUpdater
mga
- the Geometry object being updated.GeometryArray.updateData(javax.media.j3d.GeometryUpdater)
void updateImmediateMirrorObject(java.lang.Object[] objs)
void setLive(SetLiveState s)
setLive
in class NodeRetained
void clearLive(SetLiveState s)
clearLive
in class NodeRetained
void updatePickable(HashKey[] keys, boolean[] pick)
updatePickable
in class NodeRetained
void updateCollidable(HashKey[] keys, boolean[] collide)
updateCollidable
in class NodeRetained
Shape3DRetained getMirrorShape(SceneGraphPath path)
Shape3DRetained getMirrorShape(HashKey key)
void getMirrorObjects(java.util.ArrayList leafList, HashKey key)
getMirrorObjects
in class LeafRetained
void setBoundsAutoCompute(boolean autoCompute)
NodeRetained
setBoundsAutoCompute
in class NodeRetained
autoCompute
- is a boolean value indicating if automatic calcuation
of boundsvoid updateBounds()
updateBounds
in class LeafRetained
void initMorphedGeometry()
void getMirrorShape3D(java.util.ArrayList list, HashKey k)
void compile(CompileState compState)
SceneGraphObjectRetained
compile
in class SceneGraphObjectRetained
void doErrorCheck(GeometryArrayRetained prevGeo, GeometryArrayRetained geo)
void handleFrequencyChange(int bit)
handleFrequencyChange
in class SceneGraphObjectRetained
void searchGeometryAtoms(UnorderList list)
searchGeometryAtoms
in class NodeRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |