|
|||||||||
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
class GroupRetained
Group node.
Field Summary | |
---|---|
(package private) boolean |
allocatedAltApps
|
(package private) boolean |
allocatedFogs
|
(package private) boolean |
allocatedLights
|
(package private) boolean |
allocatedMclips
|
(package private) java.util.ArrayList |
altAppearances
|
(package private) BHLeafNode |
bhLeafNode
The BHLeafNode for this GeometryAtom. |
(package private) java.util.ArrayList |
children
The Group Node's children vector. |
(package private) java.util.ArrayList |
childrenSwitchLinks
|
(package private) Bounds |
collisionBound
The Group node's collision bounds in local coordinates. |
(package private) boolean |
collisionTarget
|
(package private) BoundingBox |
collisionVwcBounds
If collisionBound is set, this is equal to the transformed collisionBounds, otherwise it is equal to the transformed localBounds. |
(package private) java.util.ArrayList |
compiledChildrenList
|
(package private) java.util.ArrayList |
fogs
|
(package private) boolean |
inViewSpecificGroup
|
(package private) boolean |
isInClearLive
|
(package private) boolean |
isRoot
|
(package private) HashKey |
key
key of mirror GroupRetained. |
(package private) java.util.ArrayList |
lights
|
(package private) Locale |
locale
|
(package private) java.util.ArrayList |
mirrorGroup
Mirror group of this node, it is only used when collisionTarget = true. |
(package private) java.util.ArrayList |
modelClips
|
(package private) java.util.ArrayList |
orderedPaths
|
(package private) int |
parentSwitchLinkChildIndex
|
(package private) int |
scopingRefCount
|
(package private) GroupRetained |
sourceNode
sourceNode of this mirror Group |
(package private) java.util.ArrayList |
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 |
Constructor Summary | |
---|---|
GroupRetained()
|
Method Summary | |
---|---|
(package private) void |
addAllNodesForScopedAltApp(AlternateAppearanceRetained mAltApp,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
addAllNodesForScopedFog(FogRetained mfog,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
addAllNodesForScopedLight(int numLgts,
LightRetained[] ml,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
addAllNodesForScopedModelClip(ModelClipRetained mModelClip,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
addAltApp(AlternateAppearanceRetained altApp,
HashKey key)
|
(package private) void |
addChild(Node child)
Appends the specified child to this node's list of children. |
(package private) void |
addFog(FogRetained fog,
HashKey key)
|
(package private) void |
addLight(LightRetained[] addlight,
int numLgts,
HashKey key)
|
(package private) void |
addModelClip(ModelClipRetained modelClip,
HashKey key)
|
(package private) void |
appendChildrenData()
|
(package private) void |
checkClearLive(NodeRetained child,
HashKey[] keys,
boolean isShared,
J3dMessage[] messages,
int messageIndex,
int childIndex,
NodeRetained linkNode)
This checks if clearLive needs to be called. |
(package private) void |
checkClearLive(NodeRetained child,
J3dMessage[] messages,
int messageIndex,
int childIndex,
NodeRetained linkNode)
|
(package private) void |
checkSetLive(NodeRetained child,
int childIndex,
HashKey[] keys,
boolean isShared,
J3dMessage[] messages,
int messageIndex,
NodeRetained linkNode)
This checks is setLive needs to be called. |
(package private) void |
checkSetLive(NodeRetained child,
int childIndex,
J3dMessage[] messages,
int messageIndex,
NodeRetained linkNode)
This checks is setLive needs to be called. |
(package private) void |
checkValidChild(Node child,
java.lang.String s)
|
(package private) void |
childCheckSetLive(NodeRetained child,
int childIndex,
SetLiveState s,
NodeRetained linkNode)
|
(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)
This is the default compile() method, which just marks the sgo as compiled. |
BoundingBox |
computeBoundingHull()
|
(package private) void |
computeCombineBounds(Bounds bounds)
ONLY needed for SHAPE, MORPH, and LINK node type. |
(package private) void |
createMirrorGroup()
Create mirror group when this Group AlternateCollisionTarget is set to true while live. |
(package private) void |
doAddChild(Node child,
J3dMessage[] messages,
int messageIndex)
|
(package private) void |
doInsertChild(Node child,
int index)
|
(package private) void |
doMoveTo(BranchGroup branchGroup)
|
(package private) void |
doRemoveChild(int index,
J3dMessage[] messages,
int messageIndex)
|
(package private) void |
doSetChild(Node child,
int index)
|
(package private) void |
doSetLive(SetLiveState s)
This version of setLive calls setLive on all of its chidren. |
(package private) void |
findSwitchInfo(SetLiveState s,
NodeRetained parentNode,
NodeRetained childNode,
NodeRetained linkNode)
|
(package private) static void |
gatherBlUsers(java.util.ArrayList blUsers,
java.lang.Object[] blArr)
|
(package private) java.util.Enumeration |
getAllChildren()
Returns an enumeration object of the children. |
(package private) boolean |
getAlternateCollisionTarget()
|
(package private) Bounds |
getBounds()
Gets the bounding object of a node. |
(package private) Node |
getChild(int index)
Returns the child specified by the index. |
(package private) TargetsInterface |
getClosestTargetsInterface(int type)
|
(package private) Bounds |
getCollisionBounds()
Gets the collision bounds of a node. |
(package private) Bounds |
getEffectiveBounds()
Gets the bounding object of a node. |
Locale |
getLocale2()
|
(package private) int |
indexOfChild(Node child)
Returns the index of the specified Node in this Group's list of Nodes |
(package private) TargetsInterface |
initSwitchStates(SetLiveState s,
NodeRetained parentNode,
NodeRetained childNode,
NodeRetained linkNode,
boolean isSetLive)
|
(package private) TargetsInterface |
initTransformStates(SetLiveState s,
boolean isSetLive)
|
(package private) void |
insertChild(Node child,
int index)
Inserts the specified child at specified index. |
(package private) void |
insertChildrenData(int index)
|
boolean |
isEnable()
|
boolean |
isEnable(int vis)
|
(package private) static boolean |
isNodeSwitchOn(NodeRetained node,
HashKey key)
Return true of nodeR is not under a switch group or nodeR is enable under a switch group. |
(package private) boolean |
isStatic()
true if component can't be read or written after compile or setlive() |
(package private) boolean |
isStaticChildren()
|
(package private) void |
merge(CompileState compState)
|
(package private) void |
moveTo(BranchGroup bg)
|
(package private) int |
numChildren()
Returns a count of this nodes' children. |
(package private) void |
processAddNodesForScopedAltApp(AlternateAppearanceRetained mAltApp,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
processAddNodesForScopedFog(FogRetained mfog,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
processAddNodesForScopedModelClip(ModelClipRetained mModelClip,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
processAllNodesForScopedLight(int numLgts,
LightRetained[] ml,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
processCollisionTarget(SetLiveState s)
|
(package private) void |
processRemoveAllNodesForScopedFog(FogRetained mfog,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
processRemoveAllNodesForScopedLight(int numLgts,
LightRetained[] ml,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
processRemoveAllNodesForScopedModelClip(ModelClipRetained mModelClip,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
processRemoveNodesForScopedAltApp(AlternateAppearanceRetained mAltApp,
java.util.ArrayList list,
HashKey k)
|
(package private) int[] |
processViewSpecificInfo(int mode,
HashKey k,
View v,
java.util.ArrayList vsgList,
int[] keyList,
java.util.ArrayList leafList)
|
(package private) void |
removeAllChildren()
|
(package private) void |
removeAllNodesForScopedAltApp(AlternateAppearanceRetained mAltApp,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
removeAllNodesForScopedFog(FogRetained mfog,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
removeAllNodesForScopedLight(int numLgts,
LightRetained[] ml,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
removeAllNodesForScopedModelClip(ModelClipRetained mModelClip,
java.util.ArrayList list,
HashKey k)
|
(package private) void |
removeAltApp(AlternateAppearanceRetained altApp,
HashKey key)
|
(package private) void |
removeAltAppScope()
|
(package private) void |
removeChild(int index)
Removes the child at specified index. |
(package private) void |
removeChild(Node child)
Removes the specified child from this Group's list of children. |
(package private) void |
removeChildrenData(int index)
|
(package private) void |
removeFog(FogRetained fog,
HashKey key)
|
(package private) void |
removeFogScope()
|
(package private) void |
removeLight(int numLgt,
LightRetained[] removelight,
HashKey key)
|
(package private) void |
removeLightScope()
|
(package private) void |
removeMclipScope()
|
(package private) void |
removeModelClip(ModelClipRetained modelClip,
HashKey key)
|
(package private) void |
removeNodeData(SetLiveState s)
remove the localToVworld transform for this node. |
(package private) void |
searchGeometryAtoms(UnorderList list)
|
(package private) void |
setAltAppScope()
|
(package private) void |
setAlternateCollisionTarget(boolean target)
|
(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 |
setChild(Node child,
int index)
Replaces the specified child with the child provided. |
(package private) void |
setCollisionBounds(Bounds bounds)
Sets the collision bounds of a node. |
(package private) void |
setCompiled()
This compiles() a group |
(package private) void |
setFogScope()
|
(package private) void |
setLightScope()
|
(package private) void |
setLive(SetLiveState s)
|
(package private) void |
setMclipScope()
|
(package private) void |
setNodeData(SetLiveState s)
|
(package private) void |
setScopingInfo(SetLiveState s)
|
(package private) void |
traverse(boolean sameLevel,
int level)
|
(package private) void |
updateCollidable(HashKey[] keys,
boolean[] collide)
|
(package private) void |
updateLocalToVworld()
|
(package private) void |
updatePickable(HashKey[] keys,
boolean[] pick)
|
(package private) void |
updateSwitchStates(SetLiveState s,
TargetsInterface ti,
boolean isSetLive)
|
(package private) CachedTargets[] |
updateTransformStates(SetLiveState s,
TargetsInterface ti,
boolean isSetLive)
|
(package private) boolean |
usedInScoping()
|
(package private) static boolean |
validSwitchChild(SwitchRetained sw,
NodeRetained node)
Determinte if nodeR is a valid child to render for Switch Node swR. |
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 |
---|
java.util.ArrayList children
Bounds collisionBound
Locale locale
java.util.ArrayList lights
java.util.ArrayList fogs
java.util.ArrayList modelClips
java.util.ArrayList altAppearances
boolean collisionTarget
java.util.ArrayList childrenSwitchLinks
int parentSwitchLinkChildIndex
java.util.ArrayList orderedPaths
BoundingBox collisionVwcBounds
java.util.ArrayList mirrorGroup
HashKey key
GroupRetained sourceNode
BHLeafNode bhLeafNode
boolean isRoot
boolean allocatedLights
boolean allocatedFogs
boolean allocatedMclips
boolean allocatedAltApps
int scopingRefCount
java.util.ArrayList compiledChildrenList
boolean isInClearLive
java.util.ArrayList viewLists
boolean inViewSpecificGroup
Constructor Detail |
---|
GroupRetained()
Method Detail |
---|
void setCollisionBounds(Bounds bounds)
bounds
- the bounding object for the nodeBounds getCollisionBounds()
void setChild(Node child, int index)
child
- the new childindex
- which child to replacevoid doSetChild(Node child, int index)
void insertChild(Node child, int index)
child
- the new childindex
- position to insert new child atvoid doInsertChild(Node child, int index)
void removeChild(int index)
index
- which child to removeint indexOfChild(Node child)
Node
- whose index is desired
void removeChild(Node child)
child
- to be removedvoid removeAllChildren()
void doRemoveChild(int index, J3dMessage[] messages, int messageIndex)
Node getChild(int index)
index
- which child to return
java.util.Enumeration getAllChildren()
void checkValidChild(Node child, java.lang.String s)
void addChild(Node child)
child
- the child to add to this node's list of childrenvoid doAddChild(Node child, J3dMessage[] messages, int messageIndex)
void moveTo(BranchGroup bg)
void doMoveTo(BranchGroup branchGroup)
int numChildren()
void removeLight(int numLgt, LightRetained[] removelight, HashKey key)
void addAllNodesForScopedLight(int numLgts, LightRetained[] ml, java.util.ArrayList list, HashKey k)
void processAllNodesForScopedLight(int numLgts, LightRetained[] ml, java.util.ArrayList list, HashKey k)
void removeAllNodesForScopedLight(int numLgts, LightRetained[] ml, java.util.ArrayList list, HashKey k)
void processRemoveAllNodesForScopedLight(int numLgts, LightRetained[] ml, java.util.ArrayList list, HashKey k)
void addAllNodesForScopedFog(FogRetained mfog, java.util.ArrayList list, HashKey k)
void processAddNodesForScopedFog(FogRetained mfog, java.util.ArrayList list, HashKey k)
void removeAllNodesForScopedFog(FogRetained mfog, java.util.ArrayList list, HashKey k)
void processRemoveAllNodesForScopedFog(FogRetained mfog, java.util.ArrayList list, HashKey k)
void addAllNodesForScopedModelClip(ModelClipRetained mModelClip, java.util.ArrayList list, HashKey k)
void processAddNodesForScopedModelClip(ModelClipRetained mModelClip, java.util.ArrayList list, HashKey k)
void removeAllNodesForScopedModelClip(ModelClipRetained mModelClip, java.util.ArrayList list, HashKey k)
void processRemoveAllNodesForScopedModelClip(ModelClipRetained mModelClip, java.util.ArrayList list, HashKey k)
void addAllNodesForScopedAltApp(AlternateAppearanceRetained mAltApp, java.util.ArrayList list, HashKey k)
void processAddNodesForScopedAltApp(AlternateAppearanceRetained mAltApp, java.util.ArrayList list, HashKey k)
void removeAllNodesForScopedAltApp(AlternateAppearanceRetained mAltApp, java.util.ArrayList list, HashKey k)
void processRemoveNodesForScopedAltApp(AlternateAppearanceRetained mAltApp, java.util.ArrayList list, HashKey k)
void setLightScope()
void removeLightScope()
void setFogScope()
void removeFogScope()
void setMclipScope()
void removeMclipScope()
void setAltAppScope()
void removeAltAppScope()
boolean usedInScoping()
void addLight(LightRetained[] addlight, int numLgts, HashKey key)
void addFog(FogRetained fog, HashKey key)
void addModelClip(ModelClipRetained modelClip, HashKey key)
void addAltApp(AlternateAppearanceRetained altApp, HashKey key)
void removeFog(FogRetained fog, HashKey key)
void removeModelClip(ModelClipRetained modelClip, HashKey key)
void removeAltApp(AlternateAppearanceRetained altApp, HashKey key)
void updatePickable(HashKey[] keys, boolean[] pick)
updatePickable
in class NodeRetained
void updateCollidable(HashKey[] keys, boolean[] collide)
updateCollidable
in class NodeRetained
void setAlternateCollisionTarget(boolean target)
boolean getAlternateCollisionTarget()
void checkSetLive(NodeRetained child, int childIndex, J3dMessage[] messages, int messageIndex, NodeRetained linkNode)
void checkSetLive(NodeRetained child, int childIndex, HashKey[] keys, boolean isShared, J3dMessage[] messages, int messageIndex, NodeRetained linkNode)
void checkClearLive(NodeRetained child, J3dMessage[] messages, int messageIndex, int childIndex, NodeRetained linkNode)
void checkClearLive(NodeRetained child, HashKey[] keys, boolean isShared, J3dMessage[] messages, int messageIndex, int childIndex, NodeRetained linkNode)
TargetsInterface initTransformStates(SetLiveState s, boolean isSetLive)
CachedTargets[] updateTransformStates(SetLiveState s, TargetsInterface ti, boolean isSetLive)
TargetsInterface initSwitchStates(SetLiveState s, NodeRetained parentNode, NodeRetained childNode, NodeRetained linkNode, boolean isSetLive)
void updateSwitchStates(SetLiveState s, TargetsInterface ti, boolean isSetLive)
void appendChildrenData()
void insertChildrenData(int index)
void removeChildrenData(int index)
TargetsInterface getClosestTargetsInterface(int type)
void updateLocalToVworld()
updateLocalToVworld
in class NodeRetained
void setNodeData(SetLiveState s)
setNodeData
in class NodeRetained
void removeNodeData(SetLiveState s)
NodeRetained
removeNodeData
in class NodeRetained
void setLive(SetLiveState s)
setLive
in class NodeRetained
void childDoSetLive(NodeRetained child, int childIndex, SetLiveState s)
void childCheckSetLive(NodeRetained child, int childIndex, SetLiveState s, NodeRetained linkNode)
void doSetLive(SetLiveState s)
doSetLive
in class NodeRetained
void setScopingInfo(SetLiveState s)
void processCollisionTarget(SetLiveState s)
void computeCombineBounds(Bounds bounds)
NodeRetained
computeCombineBounds
in class NodeRetained
Bounds getBounds()
getBounds
in class NodeRetained
Bounds getEffectiveBounds()
getEffectiveBounds
in class NodeRetained
boolean isStaticChildren()
boolean isStatic()
SceneGraphObjectRetained
isStatic
in class NodeRetained
void setCompiled()
setCompiled
in class SceneGraphObjectRetained
void traverse(boolean sameLevel, int level)
traverse
in class SceneGraphObjectRetained
void compile(CompileState compState)
SceneGraphObjectRetained
compile
in class SceneGraphObjectRetained
void merge(CompileState compState)
merge
in class NodeRetained
void clearLive(SetLiveState s)
clearLive
in class NodeRetained
public BoundingBox computeBoundingHull()
computeBoundingHull
in interface BHLeafInterface
public boolean isEnable()
isEnable
in interface BHLeafInterface
public boolean isEnable(int vis)
isEnable
in interface BHLeafInterface
public Locale getLocale2()
getLocale2
in interface BHLeafInterface
static boolean isNodeSwitchOn(NodeRetained node, HashKey key)
static boolean validSwitchChild(SwitchRetained sw, NodeRetained node)
void createMirrorGroup()
void setBoundsAutoCompute(boolean autoCompute)
NodeRetained
setBoundsAutoCompute
in class NodeRetained
autoCompute
- is a boolean value indicating if automatic calcuation
of boundsvoid setBounds(Bounds bounds)
NodeRetained
setBounds
in class NodeRetained
bounds
- the bounding object for the nodeint[] processViewSpecificInfo(int mode, HashKey k, View v, java.util.ArrayList vsgList, int[] keyList, java.util.ArrayList leafList)
processViewSpecificInfo
in class NodeRetained
void findSwitchInfo(SetLiveState s, NodeRetained parentNode, NodeRetained childNode, NodeRetained linkNode)
static void gatherBlUsers(java.util.ArrayList blUsers, java.lang.Object[] blArr)
void searchGeometryAtoms(UnorderList list)
searchGeometryAtoms
in class NodeRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |