|
|||||||||
| 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.GroupRetained
javax.media.j3d.SwitchRetained
class SwitchRetained
The switch node controls which one of its children will be rendered.
| Field Summary | |
|---|---|
(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. |
| 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.SceneGraphObjectRetained |
|---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
| Fields inherited from class javax.media.j3d.IndexedObject |
|---|
listIdx |
| Fields inherited from interface javax.media.j3d.TargetsInterface |
|---|
SWITCH_TARGETS, TRANSFORM_TARGETS |
| Constructor Summary | |
|---|---|
SwitchRetained()
|
|
| Method Summary | |
|---|---|
(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)
|
| Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
|---|
clearLive, clearLive, clone, doSetLive, getSource, handleFrequencyChange, isInSetLive, markAsLive, setLive, setSource |
| 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 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
| Constructor Detail |
|---|
SwitchRetained()
| Method Detail |
|---|
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)
NodeRetained
removeNodeData in class GroupRetainedvoid clearLive(SetLiveState s)
GroupRetained
clearLive 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)
NodeRetained
computeCombineBounds 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 GroupRetained
void childDoSetLive(NodeRetained child,
int childIndex,
SetLiveState s)
childDoSetLive in class GroupRetainedTargetsInterface getClosestTargetsInterface(int type)
getClosestTargetsInterface in class GroupRetained
public CachedTargets getCachedTargets(int type,
int index,
int child)
getCachedTargets in interface TargetsInterface
public void resetCachedTargets(int type,
CachedTargets[] newCtArr,
int child)
resetCachedTargets in interface TargetsInterface
public java.util.ArrayList getTargetsData(int type,
int child)
getTargetsData in interface TargetsInterfacepublic int getTargetThreads(int type)
getTargetThreads in interface TargetsInterface
public void updateCachedTargets(int type,
CachedTargets[] newCt)
updateCachedTargets in interface TargetsInterface
public void computeTargetThreads(int type,
CachedTargets[] newCt)
computeTargetThreads in interface TargetsInterface
public void updateTargetThreads(int type,
CachedTargets[] newCt)
updateTargetThreads in interface TargetsInterface
public void propagateTargetThreads(int type,
int newTargetThreads)
propagateTargetThreads in interface TargetsInterface
public void copyCachedTargets(int type,
CachedTargets[] newCt)
copyCachedTargets in interface TargetsInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||