class TransformGroupRetained extends GroupRetained implements TargetsInterface
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
aboveAViewPlatform |
(package private) CachedTargets[] |
cachedTargets |
(package private) Transform3D[][] |
childLocalToVworld
localVworld values for children of this TG
|
(package private) int[][] |
childLocalToVworldIndex |
(package private) Transform3D[][] |
childTrans |
(package private) java.util.ArrayList |
childTransformLinks |
(package private) int[][] |
childTransIndex |
(package private) HashKey |
currentKey |
(package private) Transform3D |
currentTransform
The Transform value currently being used internally
|
(package private) Transform3D |
invTransform
The inverse of the transform
|
(package private) CachedTargets[] |
j3dCTs |
(package private) int |
localTargetThreads
A bitmask of the types in targets
|
(package private) int |
maxTransformLevel |
(package private) boolean |
needNormalsTransform |
(package private) Transform3D |
normalTransform
The transpose of the inverse of the transform
|
(package private) TransformGroupData[] |
perPathData |
(package private) int |
targetThreads |
(package private) Transform3D |
transform
The Transform value for the TransformGroup.
|
(package private) WakeupIndexedList |
transformChange
A list of WakeupOnTransformChange conditions for this Transform
|
(package private) int[] |
transformLevels |
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 |
|---|
TransformGroupRetained()
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addCondition(WakeupOnTransformChange wakeup) |
(package private) void |
childCheckSetLive(NodeRetained child,
int childIndex,
SetLiveState s,
NodeRetained linkNode) |
(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.
|
(package private) void |
computeCombineBounds(Bounds bounds)
ONLY needed for SHAPE, MORPH, and LINK node type.
|
void |
computeTargetThreads(int type,
CachedTargets[] newCachedTargets) |
void |
copyCachedTargets(int type,
CachedTargets[] newCt) |
CachedTargets |
getCachedTargets(int type,
int index,
int child) |
(package private) TargetsInterface |
getClosestTargetsInterface(int type) |
(package private) Transform3D |
getCurrentChildLocalToVworld()
Get the current child localToVworld transform for a node
|
(package private) Transform3D |
getCurrentChildLocalToVworld(HashKey key) |
(package private) Transform3D |
getCurrentChildLocalToVworld(int index) |
(package private) Transform3D |
getInvTransform() |
(package private) Transform3D |
getLastChildLocalToVworld(HashKey key)
Get the last child localToVworld transform for a node
|
(package private) Transform3D |
getNormalTransform() |
java.util.ArrayList |
getTargetsData(int type,
int index) |
int |
getTargetThreads(int type) |
(package private) void |
getTransform(Transform3D t1)
Copies the transform component of this TransformGroup into
the passed transform object.
|
(package private) Transform3D |
getUpdateChildLocalToVworld(int index)
get the to be updated child localToVworld
|
(package private) boolean |
isStatic()
true if component can't be read or written after compile or setlive()
|
(package private) void |
merge(CompileState compState) |
(package private) void |
mergeTransform(TransformGroupRetained xform) |
(package private) void |
notifyConditions() |
(package private) void |
processChildLocalToVworld(java.util.ArrayList dirtyTransformGroups,
java.util.ArrayList keySet,
UpdateTargets targets,
java.util.ArrayList blUsers) |
void |
propagateTargetThreads(int type,
int childTargetThreads) |
(package private) void |
removeCondition(WakeupOnTransformChange wakeup) |
(package private) void |
removeNodeData(SetLiveState s)
remove the localToVworld transform for a transformGroup
|
void |
resetCachedTargets(int type,
CachedTargets[] newCtArr,
int child) |
(package private) void |
setAuxData(SetLiveState s,
int index,
int hkIndex) |
(package private) void |
setLive(SetLiveState s)
This setlive simply concatinates it's transform onto all the ones
passed in.
|
(package private) void |
setNodeData(SetLiveState s) |
(package private) void |
setTransform(Transform3D t1)
Sets the transform component of this TransformGroup to the value of
the passed transform.
|
(package private) void |
transformBounds(SceneGraphPath path,
Bounds bound)
Transform the input bound by the current LocalToVWorld, this
one overwrite the one defined in NodeRetained since for
TransformGroup, it has to use currentChildLocalToVworld
instead of currentLocalToVworld
|
(package private) void |
traverse(boolean sameLevel,
int level) |
void |
updateCachedTargets(int type,
CachedTargets[] newCt) |
(package private) void |
updateChildLocalToVworld(java.util.ArrayList dirtyTransformGroups,
java.util.ArrayList keySet,
UpdateTargets targets,
java.util.ArrayList blUsers) |
(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) |
addAllNodesForScopedAltApp, addAllNodesForScopedFog, addAllNodesForScopedLight, addAllNodesForScopedModelClip, addAltApp, addChild, addFog, addLight, addModelClip, appendChildrenData, checkClearLive, checkClearLive, checkSetLive, checkSetLive, checkValidChild, childDoSetLive, computeBoundingHull, createMirrorGroup, doAddChild, doInsertChild, doMoveTo, doRemoveChild, doSetChild, doSetLive, findSwitchInfo, gatherBlUsers, getAllChildren, getAlternateCollisionTarget, getBounds, getChild, getCollisionBounds, getEffectiveBounds, getLocale2, indexOfChild, initSwitchStates, initTransformStates, insertChild, insertChildrenData, isEnable, isEnable, isNodeSwitchOn, isStaticChildren, moveTo, numChildren, processAddNodesForScopedAltApp, processAddNodesForScopedFog, processAddNodesForScopedModelClip, processAllNodesForScopedLight, processCollisionTarget, processRemoveAllNodesForScopedFog, processRemoveAllNodesForScopedLight, processRemoveAllNodesForScopedModelClip, processRemoveNodesForScopedAltApp, processViewSpecificInfo, removeAllChildren, removeAllNodesForScopedAltApp, removeAllNodesForScopedFog, removeAllNodesForScopedLight, removeAllNodesForScopedModelClip, removeAltApp, removeAltAppScope, removeChild, removeChild, removeChildrenData, removeFog, removeFogScope, removeLight, removeLightScope, removeMclipScope, removeModelClip, searchGeometryAtoms, setAltAppScope, setAlternateCollisionTarget, setBounds, setBoundsAutoCompute, setChild, setCollisionBounds, setCompiled, setFogScope, setLightScope, setMclipScope, setScopingInfo, 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, notifySceneGraphChanged, recombineAbove, setCollidable, setParent, setPickableclearLive, clearLive, clone, doSetLive, getSource, handleFrequencyChange, isInSetLive, markAsLive, setLive, setSourcegetIdxUsed, incIdxUsedTransform3D transform
Transform3D invTransform
Transform3D normalTransform
Transform3D currentTransform
Transform3D[][] childLocalToVworld
int[][] childLocalToVworldIndex
Transform3D[][] childTrans
int[][] childTransIndex
int localTargetThreads
int targetThreads
WakeupIndexedList transformChange
java.util.ArrayList childTransformLinks
boolean needNormalsTransform
HashKey currentKey
boolean aboveAViewPlatform
int maxTransformLevel
int[] transformLevels
CachedTargets[] j3dCTs
CachedTargets[] cachedTargets
TransformGroupData[] perPathData
void setTransform(Transform3D t1)
t1 - the transform to be copiedvoid getTransform(Transform3D t1)
t1 - the transform object to be copied intoTransform3D getInvTransform()
Transform3D getNormalTransform()
void setNodeData(SetLiveState s)
setNodeData in class GroupRetainedvoid setAuxData(SetLiveState s, int index, int hkIndex)
setAuxData in class NodeRetainedvoid removeCondition(WakeupOnTransformChange wakeup)
void addCondition(WakeupOnTransformChange wakeup)
void notifyConditions()
boolean isStatic()
SceneGraphObjectRetainedisStatic in class GroupRetainedvoid mergeTransform(TransformGroupRetained xform)
mergeTransform in class NodeRetainedvoid traverse(boolean sameLevel,
int level)
traverse in class GroupRetainedvoid compile(CompileState compState)
SceneGraphObjectRetainedcompile in class GroupRetainedvoid merge(CompileState compState)
merge in class GroupRetainedvoid setLive(SetLiveState s)
setLive in class GroupRetainedvoid removeNodeData(SetLiveState s)
removeNodeData in class GroupRetainedvoid clearLive(SetLiveState s)
GroupRetainedclearLive in class GroupRetainedvoid computeCombineBounds(Bounds bounds)
NodeRetainedcomputeCombineBounds in class GroupRetainedvoid processChildLocalToVworld(java.util.ArrayList dirtyTransformGroups,
java.util.ArrayList keySet,
UpdateTargets targets,
java.util.ArrayList blUsers)
void updateChildLocalToVworld(HashKey key, int index, java.util.ArrayList dirtyTransformGroups, java.util.ArrayList keySet, UpdateTargets targets, java.util.ArrayList blUsers)
void updateChildLocalToVworld(java.util.ArrayList dirtyTransformGroups,
java.util.ArrayList keySet,
UpdateTargets targets,
java.util.ArrayList blUsers)
void transformBounds(SceneGraphPath path, Bounds bound)
transformBounds in class NodeRetainedTransform3D getUpdateChildLocalToVworld(int index)
Transform3D getCurrentChildLocalToVworld()
Transform3D getCurrentChildLocalToVworld(int index)
Transform3D getCurrentChildLocalToVworld(HashKey key)
Transform3D getLastChildLocalToVworld(HashKey key)
public int getTargetThreads(int type)
getTargetThreads in interface TargetsInterfacepublic CachedTargets getCachedTargets(int type, int index, int child)
getCachedTargets in interface TargetsInterfaceTargetsInterface getClosestTargetsInterface(int type)
getClosestTargetsInterface in class GroupRetainedpublic void computeTargetThreads(int type,
CachedTargets[] newCachedTargets)
computeTargetThreads in interface TargetsInterfacepublic void updateTargetThreads(int type,
CachedTargets[] newCachedTargets)
updateTargetThreads in interface TargetsInterfacepublic void propagateTargetThreads(int type,
int childTargetThreads)
propagateTargetThreads in interface TargetsInterfacepublic void updateCachedTargets(int type,
CachedTargets[] newCt)
updateCachedTargets in interface TargetsInterfacepublic void copyCachedTargets(int type,
CachedTargets[] newCt)
copyCachedTargets in interface TargetsInterfacepublic void resetCachedTargets(int type,
CachedTargets[] newCtArr,
int child)
resetCachedTargets in interface TargetsInterfacepublic java.util.ArrayList getTargetsData(int type,
int index)
getTargetsData in interface TargetsInterfacevoid childCheckSetLive(NodeRetained child, int childIndex, SetLiveState s, NodeRetained linkNode)
childCheckSetLive in class GroupRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.