class SwitchRetained extends GroupRetained implements TargetsInterface
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
BEHAVIOR_NODES |
(package private) static int |
BOUNDINGLEAF_NODES |
(package private) java.util.BitSet |
childMask
The BitSet specifying which children are to be selected for
rendering.
|
(package private) java.util.ArrayList |
childrenSwitchStates |
(package private) static int |
ENV_NODES |
(package private) static int |
GEO_NODES |
(package private) boolean |
isDirty |
(package private) java.util.BitSet |
renderChildMask
The childmask bitset used for rendering
|
(package private) static int |
SOUND_NODES |
(package private) int |
switchIndexCount |
(package private) HashKey |
switchKey |
(package private) java.util.ArrayList |
switchLevels |
(package private) UpdateTargets |
updateTargets |
(package private) int |
whichChild
The value specifing which child to render.
|
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, viewListsALTERNATEAPPEARANCE, 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, VIEWSPECIFICGROUPDONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, sourcelistIdxSWITCH_TARGETS, TRANSFORM_TARGETS| Constructor and Description |
|---|
SwitchRetained() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
appendChildrenData() |
(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(CompileState compState)
Compiles the children of the switch, preventing shape merging at
this level or above
|
(package private) void |
computeCombineBounds(Bounds bounds)
ONLY needed for SHAPE, MORPH, and LINK node type.
|
void |
computeTargetThreads(int type,
CachedTargets[] newCt) |
void |
copyCachedTargets(int type,
CachedTargets[] newCt) |
(package private) Node |
currentChild()
Returns the current child.
|
(package private) Bounds |
getBounds()
Gets the bounding object of a node.
|
CachedTargets |
getCachedTargets(int type,
int index,
int child) |
(package private) java.util.BitSet |
getChildMask()
Returns the current childMask.
|
(package private) TargetsInterface |
getClosestTargetsInterface(int type) |
java.util.ArrayList |
getTargetsData(int type,
int child) |
int |
getTargetThreads(int type) |
(package private) int |
getWhichChild()
Returns the index of the current child.
|
(package private) void |
initRenderChildMask() |
(package private) void |
insertChildrenData(int index) |
void |
propagateTargetThreads(int type,
int newTargetThreads) |
(package private) void |
removeChildrenData(int index) |
(package private) void |
removeNodeData(SetLiveState s)
remove the localToVworld transform for this node.
|
void |
resetCachedTargets(int type,
CachedTargets[] newCtArr,
int child) |
(package private) void |
sendMessage(java.util.ArrayList updateList) |
(package private) void |
setAuxData(SetLiveState s,
int index,
int hkIndex) |
(package private) void |
setChildMask(java.util.BitSet childMask)
Sets current childMask.
|
(package private) void |
setLive(SetLiveState s) |
(package private) void |
setNodeData(SetLiveState s) |
(package private) void |
setWhichChild(int whichChild,
boolean updateAlways)
Sets which child should be drawn.
|
(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 |
updateSwitchChild(int child,
boolean switchOn,
java.util.ArrayList updateList) |
void |
updateTargetThreads(int type,
CachedTargets[] newCt) |
addAllNodesForScopedAltApp, addAllNodesForScopedFog, addAllNodesForScopedLight, addAllNodesForScopedModelClip, addAltApp, addChild, addFog, addLight, addModelClip, checkClearLive, checkClearLive, checkSetLive, checkSetLive, checkValidChild, childCheckSetLive, computeBoundingHull, createMirrorGroup, doAddChild, doInsertChild, doMoveTo, doRemoveChild, doSetChild, doSetLive, findSwitchInfo, gatherBlUsers, getAllChildren, getAlternateCollisionTarget, 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, validSwitchChildcomputeNonLiveLocalToVworld, dirtyBoundsCache, 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, transformBoundsclearLive, clearLive, clone, doSetLive, getSource, handleFrequencyChange, isInSetLive, markAsLive, setLive, setSourcegetIdxUsed, incIdxUsedstatic final int GEO_NODES
static final int ENV_NODES
static final int BEHAVIOR_NODES
static final int SOUND_NODES
static final int BOUNDINGLEAF_NODES
int whichChild
java.util.BitSet childMask
java.util.BitSet renderChildMask
boolean isDirty
java.util.ArrayList switchLevels
HashKey switchKey
int switchIndexCount
UpdateTargets updateTargets
java.util.ArrayList childrenSwitchStates
void setWhichChild(int whichChild,
boolean updateAlways)
whichChild - the child to choose during a render operationint getWhichChild()
final void setChildMask(java.util.BitSet childMask)
childMask - a BitSet to select the children for renderingvoid sendMessage(java.util.ArrayList updateList)
final java.util.BitSet getChildMask()
Node currentChild()
void updateSwitchChild(int child,
boolean switchOn,
java.util.ArrayList updateList)
void setAuxData(SetLiveState s, int index, int hkIndex)
setAuxData in class NodeRetainedvoid setNodeData(SetLiveState s)
setNodeData in class GroupRetainedvoid setLive(SetLiveState s)
setLive in class GroupRetainedvoid removeNodeData(SetLiveState s)
NodeRetainedremoveNodeData in class GroupRetainedvoid clearLive(SetLiveState s)
GroupRetainedclearLive in class GroupRetainedvoid initRenderChildMask()
void traverseSwitchChild(int child,
HashKey key,
int index,
SwitchRetained switchRoot,
boolean init,
boolean swChanged,
boolean switchOn,
int switchLevel,
java.util.ArrayList updateList)
void traverseSwitchParent()
void computeCombineBounds(Bounds bounds)
NodeRetainedcomputeCombineBounds in class GroupRetainedBounds getBounds()
getBounds in class GroupRetainedvoid compile(CompileState compState)
compile in class GroupRetainedvoid insertChildrenData(int index)
insertChildrenData in class GroupRetainedvoid appendChildrenData()
appendChildrenData in class GroupRetainedvoid removeChildrenData(int index)
removeChildrenData in class GroupRetainedvoid childDoSetLive(NodeRetained child, int childIndex, SetLiveState s)
childDoSetLive in class GroupRetainedTargetsInterface getClosestTargetsInterface(int type)
getClosestTargetsInterface in class GroupRetainedpublic CachedTargets getCachedTargets(int type, int index, int child)
getCachedTargets in interface TargetsInterfacepublic void resetCachedTargets(int type,
CachedTargets[] newCtArr,
int child)
resetCachedTargets in interface TargetsInterfacepublic java.util.ArrayList getTargetsData(int type,
int child)
getTargetsData in interface TargetsInterfacepublic int getTargetThreads(int type)
getTargetThreads in interface TargetsInterfacepublic void updateCachedTargets(int type,
CachedTargets[] newCt)
updateCachedTargets in interface TargetsInterfacepublic void computeTargetThreads(int type,
CachedTargets[] newCt)
computeTargetThreads in interface TargetsInterfacepublic void updateTargetThreads(int type,
CachedTargets[] newCt)
updateTargetThreads in interface TargetsInterfacepublic void propagateTargetThreads(int type,
int newTargetThreads)
propagateTargetThreads in interface TargetsInterfacepublic void copyCachedTargets(int type,
CachedTargets[] newCt)
copyCachedTargets in interface TargetsInterfaceCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.