class MorphRetained extends LeafRetained implements GeometryUpdater
| Modifier and Type | Field and Description |
|---|---|
(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.
|
boundsDirty, switchStateALTERNATEAPPEARANCE, AMBIENTLIGHT, apiBounds, BACKGROUND, BACKGROUNDSOUND, BEHAVIOR, BOUNDINGLEAF, boundsAutoCompute, BRANCHGROUP, branchGroupPaths, cachedBounds, childIndex, CLIP, collidable, CONESOUND, CONTAINS_VIEWPLATFORM, CURRENT_LOCAL_TO_VWORLD, DECALGROUP, DIRECTIONALLIGHT, EXPONENTIALFOG, geometryBackground, GROUP, inSharedGroup, LAST_LOCAL_TO_VWORLD, LINEARFOG, LINK, localBounds, locale, localToVworld, localToVworldIndex, localToVworldKeys, MODELCLIP, MORPH, nnuId, nodeId, nodeType, NUMNODES, ORDEREDGROUP, orderedId, ORIENTEDSHAPE3D, parent, parentSwitchLink, parentTransformLink, pickable, POINTLIGHT, POINTSOUND, refCount, SHAPE, SHAREDGROUP, SOUNDSCAPE, SPOTLIGHT, staticTransform, SWITCH, TRANSFORMGROUP, universe, validCachedBounds, VIEWPLATFORM, VIEWSPECIFICGROUPDONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, sourcelistIdx| Constructor and Description |
|---|
MorphRetained() |
| Modifier and Type | Method and Description |
|---|---|
(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) |
clone, updateBoundingLeaf, updateMirrorObject, updateTransformChangecomputeNonLiveLocalToVworld, dirtyBoundsCache, doSetLive, equal, findCollidableFlags, findPickableFlags, findTransformLevels, getBoundsAutoCompute, getCollidable, getCurrentLocalToVworld, getCurrentLocalToVworld, getCurrentLocalToVworld, getId, getLastLocalToVworld, getLastLocalToVworld, getLastLocalToVworld, getLocalBounds, getLocale, getLocalToVworld, getLocalToVworld, getLocalToVworld, getParent, getPickable, getVirtualUniverse, isStatic, merge, mergeTransform, notifySceneGraphChanged, processViewSpecificInfo, recombineAbove, removeNodeData, setAuxData, setCollidable, setNodeData, setParent, setPickable, transformBounds, updateLocalToVworldclearLive, clearLive, clone, doSetLive, getSource, isInSetLive, markAsLive, setCompiled, setLive, setSource, traversegetIdxUsed, incIdxUsedstatic 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
void setCollisionBounds(Bounds bounds)
bounds - the bounding object for the nodevoid setBounds(Bounds bounds)
setBounds in class NodeRetainedbounds - 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 returnedvoid setAppearance(Appearance newAppearance)
appearance - the new apearance component for this morph nodeAppearance getAppearance()
void setAppearanceOverrideEnable(boolean flag)
boolean getAppearanceOverrideEnable()
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 NodeRetainedBounds getEffectiveBounds()
NodeRetainedgetEffectiveBounds in class NodeRetainedvoid computeCombineBounds(Bounds bounds)
computeCombineBounds in class NodeRetainedint getNumGeometryArrays()
void updateMorphedGeometryArray(GeometryArrayRetained geo, boolean coordinatesChanged)
public void updateData(Geometry mga)
updateData in interface GeometryUpdatermga - the Geometry object being updated.GeometryArray.updateData(javax.media.j3d.GeometryUpdater)void updateImmediateMirrorObject(java.lang.Object[] objs)
void setLive(SetLiveState s)
setLive in class NodeRetainedvoid clearLive(SetLiveState s)
clearLive in class NodeRetainedvoid updatePickable(HashKey[] keys, boolean[] pick)
updatePickable in class NodeRetainedvoid updateCollidable(HashKey[] keys, boolean[] collide)
updateCollidable in class NodeRetainedShape3DRetained getMirrorShape(SceneGraphPath path)
Shape3DRetained getMirrorShape(HashKey key)
void getMirrorObjects(java.util.ArrayList leafList,
HashKey key)
getMirrorObjects in class LeafRetainedvoid setBoundsAutoCompute(boolean autoCompute)
NodeRetainedsetBoundsAutoCompute in class NodeRetainedautoCompute - is a boolean value indicating if automatic calcuation
of boundsvoid updateBounds()
updateBounds in class LeafRetainedvoid initMorphedGeometry()
void getMirrorShape3D(java.util.ArrayList list,
HashKey k)
void compile(CompileState compState)
SceneGraphObjectRetainedcompile in class SceneGraphObjectRetainedvoid doErrorCheck(GeometryArrayRetained prevGeo, GeometryArrayRetained geo)
void handleFrequencyChange(int bit)
handleFrequencyChange in class SceneGraphObjectRetainedvoid searchGeometryAtoms(UnorderList list)
searchGeometryAtoms in class NodeRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.