javax.media.j3d
Class SharedGroupRetained
java.lang.Object
javax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeRetained
javax.media.j3d.GroupRetained
javax.media.j3d.SharedGroupRetained
- All Implemented Interfaces:
- java.lang.Cloneable, BHLeafInterface, NnuId, TargetsInterface
class SharedGroupRetained
- extends GroupRetained
- implements TargetsInterface
The SharedGroup node provides the ability to share a scene graph from
multiple other scene graphs through the use of a Link node.
Fields inherited from class javax.media.j3d.GroupRetained |
allocatedAltApps, allocatedFogs, allocatedLights, allocatedMclips, altAppearances, bhLeafNode, children, childrenSwitchLinks, collisionBound, collisionTarget, collisionVwcBounds, compiledChildrenList, fogs, inViewSpecificGroup, isInClearLive, isRoot, key, lights, locale, mirrorGroup, modelClips, orderedPaths, parentSwitchLinkChildIndex, scopingRefCount, sourceNode, viewLists |
Fields inherited from class javax.media.j3d.NodeRetained |
ALTERNATEAPPEARANCE, 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, 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, VIEWSPECIFICGROUP |
Method Summary |
(package private) void |
appendChildrenData()
|
(package private) void |
childCheckSetLive(NodeRetained child,
int childIndex,
SetLiveState s)
|
(package private) void |
childDoSetLive(NodeRetained child,
int childIndex,
SetLiveState s)
|
(package private) void |
clearLive(SetLiveState s)
This version of clearLive calls clearLive on all of its chidren. |
(package private) void |
compile()
|
void |
computeTargetThreads(int type,
CachedTargets[] newCachedTargets)
|
void |
copyCachedTargets(int type,
CachedTargets[] newCt)
|
(package private) void |
dirtyBoundsCache()
Make the boundsCache of this node and all its parents dirty |
CachedTargets |
getCachedTargets(int type,
int index,
int child)
|
(package private) TargetsInterface |
getClosestTargetsInterface(int type)
|
(package private) Link[] |
getLinks()
Returns the Link nodes that refer to this SharedGroup node |
java.util.ArrayList |
getTargetsData(int type,
int index)
|
int |
getTargetThreads(int type)
|
(package private) void |
insertChildrenData(int index)
|
void |
propagateTargetThreads(int type,
int childTargetThreads)
|
(package private) void |
removeChildrenData(int index)
|
(package private) void |
removeNodeData(SetLiveState s)
remove the localToVworld transform for a node. |
void |
resetCachedTargets(int type,
CachedTargets[] newCtArr,
int child)
|
(package private) void |
setAuxData(SetLiveState s,
int index,
int hkIndex)
|
(package private) void |
setLive(SetLiveState s)
|
(package private) void |
setNodeData(SetLiveState s)
|
(package private) void |
traverseSwitchChild(int child,
HashKey key,
int index,
SwitchRetained switchRoot,
boolean init,
boolean swChanged,
boolean switchOn,
int switchLevel,
java.util.ArrayList updateList)
|
(package private) void |
traverseSwitchParent()
|
void |
updateCachedTargets(int type,
CachedTargets[] newCt)
|
(package private) void |
updateChildLocalToVworld(HashKey key,
int index,
java.util.ArrayList dirtyTransformGroups,
java.util.ArrayList keySet,
UpdateTargets targets,
java.util.ArrayList blUsers)
|
void |
updateTargetThreads(int type,
CachedTargets[] newCachedTargets)
|
Methods inherited from class javax.media.j3d.GroupRetained |
addAllNodesForScopedAltApp, addAllNodesForScopedFog, addAllNodesForScopedLight, addAllNodesForScopedModelClip, addAltApp, addChild, addFog, addLight, addModelClip, checkClearLive, checkClearLive, checkSetLive, checkSetLive, checkValidChild, childCheckSetLive, compile, computeBoundingHull, computeCombineBounds, createMirrorGroup, doAddChild, doInsertChild, doMoveTo, doRemoveChild, doSetChild, doSetLive, findSwitchInfo, gatherBlUsers, getAllChildren, getAlternateCollisionTarget, getBounds, getChild, getCollisionBounds, getEffectiveBounds, getLocale2, indexOfChild, initSwitchStates, initTransformStates, insertChild, isEnable, isEnable, isNodeSwitchOn, isStatic, isStaticChildren, merge, moveTo, numChildren, processAddNodesForScopedAltApp, processAddNodesForScopedFog, processAddNodesForScopedModelClip, processAllNodesForScopedLight, processCollisionTarget, processRemoveAllNodesForScopedFog, processRemoveAllNodesForScopedLight, processRemoveAllNodesForScopedModelClip, processRemoveNodesForScopedAltApp, processViewSpecificInfo, removeAllChildren, removeAllNodesForScopedAltApp, removeAllNodesForScopedFog, removeAllNodesForScopedLight, removeAllNodesForScopedModelClip, removeAltApp, removeAltAppScope, removeChild, removeChild, removeFog, removeFogScope, removeLight, removeLightScope, removeMclipScope, removeModelClip, searchGeometryAtoms, setAltAppScope, setAlternateCollisionTarget, setBounds, setBoundsAutoCompute, setChild, setCollisionBounds, setCompiled, setFogScope, setLightScope, setMclipScope, setScopingInfo, traverse, updateCollidable, updateLocalToVworld, updatePickable, updateSwitchStates, updateTransformStates, usedInScoping, validSwitchChild |
Methods inherited from class javax.media.j3d.NodeRetained |
computeNonLiveLocalToVworld, equal, findCollidableFlags, findPickableFlags, findTransformLevels, getBoundsAutoCompute, getCollidable, getCurrentLocalToVworld, getCurrentLocalToVworld, getCurrentLocalToVworld, getId, getLastLocalToVworld, getLastLocalToVworld, getLastLocalToVworld, getLocalBounds, getLocale, getLocalToVworld, getLocalToVworld, getLocalToVworld, getParent, getPickable, getVirtualUniverse, mergeTransform, notifySceneGraphChanged, recombineAbove, setCollidable, setParent, setPickable, transformBounds |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
childTransformLinks
java.util.ArrayList childTransformLinks
currentKey
HashKey currentKey
switchKey
HashKey switchKey
parents
java.util.Vector parents
- The Shared Group Node's parent vector.
j3dCTs
CachedTargets[] j3dCTs
cachedTargets
CachedTargets[] cachedTargets
localTargetThreads
int localTargetThreads
targetThreads
int targetThreads
switchStates
java.util.ArrayList switchStates
SharedGroupRetained
SharedGroupRetained()
setAuxData
void setAuxData(SetLiveState s,
int index,
int hkIndex)
- Overrides:
setAuxData
in class NodeRetained
setNodeData
void setNodeData(SetLiveState s)
- Overrides:
setNodeData
in class GroupRetained
setLive
void setLive(SetLiveState s)
- Overrides:
setLive
in class GroupRetained
removeNodeData
void removeNodeData(SetLiveState s)
- remove the localToVworld transform for a node.
- Overrides:
removeNodeData
in class GroupRetained
clearLive
void clearLive(SetLiveState s)
- Description copied from class:
GroupRetained
- This version of clearLive calls clearLive on all of its chidren.
- Overrides:
clearLive
in class GroupRetained
updateChildLocalToVworld
void updateChildLocalToVworld(HashKey key,
int index,
java.util.ArrayList dirtyTransformGroups,
java.util.ArrayList keySet,
UpdateTargets targets,
java.util.ArrayList blUsers)
traverseSwitchChild
void traverseSwitchChild(int child,
HashKey key,
int index,
SwitchRetained switchRoot,
boolean init,
boolean swChanged,
boolean switchOn,
int switchLevel,
java.util.ArrayList updateList)
traverseSwitchParent
void traverseSwitchParent()
compile
void compile()
getLinks
Link[] getLinks()
- Returns the Link nodes that refer to this SharedGroup node
- Returns:
- An array of Link nodes
insertChildrenData
void insertChildrenData(int index)
- Overrides:
insertChildrenData
in class GroupRetained
appendChildrenData
void appendChildrenData()
- Overrides:
appendChildrenData
in class GroupRetained
removeChildrenData
void removeChildrenData(int index)
- Overrides:
removeChildrenData
in class GroupRetained
getTargetThreads
public int getTargetThreads(int type)
- Specified by:
getTargetThreads
in interface TargetsInterface
getClosestTargetsInterface
TargetsInterface getClosestTargetsInterface(int type)
- Overrides:
getClosestTargetsInterface
in class GroupRetained
computeTargetThreads
public void computeTargetThreads(int type,
CachedTargets[] newCachedTargets)
- Specified by:
computeTargetThreads
in interface TargetsInterface
updateTargetThreads
public void updateTargetThreads(int type,
CachedTargets[] newCachedTargets)
- Specified by:
updateTargetThreads
in interface TargetsInterface
propagateTargetThreads
public void propagateTargetThreads(int type,
int childTargetThreads)
- Specified by:
propagateTargetThreads
in interface TargetsInterface
updateCachedTargets
public void updateCachedTargets(int type,
CachedTargets[] newCt)
- Specified by:
updateCachedTargets
in interface TargetsInterface
copyCachedTargets
public void copyCachedTargets(int type,
CachedTargets[] newCt)
- Specified by:
copyCachedTargets
in interface TargetsInterface
getCachedTargets
public CachedTargets getCachedTargets(int type,
int index,
int child)
- Specified by:
getCachedTargets
in interface TargetsInterface
resetCachedTargets
public void resetCachedTargets(int type,
CachedTargets[] newCtArr,
int child)
- Specified by:
resetCachedTargets
in interface TargetsInterface
getTargetsData
public java.util.ArrayList getTargetsData(int type,
int index)
- Specified by:
getTargetsData
in interface TargetsInterface
childDoSetLive
void childDoSetLive(NodeRetained child,
int childIndex,
SetLiveState s)
- Overrides:
childDoSetLive
in class GroupRetained
childCheckSetLive
void childCheckSetLive(NodeRetained child,
int childIndex,
SetLiveState s)
dirtyBoundsCache
void dirtyBoundsCache()
- Make the boundsCache of this node and all its parents dirty
- Overrides:
dirtyBoundsCache
in class NodeRetained
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.