javax.media.j3d
Class LinkRetained

java.lang.Object
  extended by javax.media.j3d.IndexedObject
      extended by javax.media.j3d.SceneGraphObjectRetained
          extended by javax.media.j3d.NodeRetained
              extended by javax.media.j3d.LeafRetained
                  extended by javax.media.j3d.LinkRetained
All Implemented Interfaces:
java.lang.Cloneable, NnuId

 class LinkRetained
extends LeafRetained

A Link leaf node consisting of a reference to a SharedGroup node.


Field Summary
(package private) static java.lang.String plus
           
(package private)  SharedGroupRetained sharedGroup
          The SharedGroup component of the link node.
(package private)  boolean visited
           
 
Fields inherited from class javax.media.j3d.LeafRetained
boundsDirty, switchState
 
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, locale, 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
 
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
LinkRetained()
           
 
Method Summary
(package private)  void clearLive(SetLiveState s)
          assign a name to this node when it is made live.
(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.
(package private)  Bounds getBounds()
          Gets the bounding object of a node.
(package private)  HashKey[] getNewKeys(java.lang.String localeNodeId, HashKey[] oldKeys)
           
(package private)  SharedGroup getSharedGroup()
          Retrieves the SharedGroup reference.
(package private)  void recombineAbove()
           
(package private)  void removeNodeData(SetLiveState s)
          remove the localToVworld transform for this node.
(package private)  void searchGeometryAtoms(UnorderList list)
           
(package private)  void setBoundsAutoCompute(boolean autoCompute)
          Sets the automatic calcuation of geometric bounds of a node.
(package private)  void setCompiled()
          This marks this object as compiled.
(package private)  void setLive(SetLiveState s)
          assign a name to this node when it is made live.
(package private)  void setNodeData(SetLiveState s)
           
(package private)  void setSharedGroup(SharedGroup sharedGroup)
          Sets the SharedGroup reference.
(package private)  void updateCollidable(HashKey[] keys, boolean[] collide)
           
(package private)  void updatePickable(HashKey[] keys, boolean[] pick)
           
 
Methods inherited from class javax.media.j3d.LeafRetained
clone, getMirrorObjects, updateBoundingLeaf, updateBounds, updateMirrorObject, updateTransformChange
 
Methods inherited from class javax.media.j3d.NodeRetained
computeNonLiveLocalToVworld, dirtyBoundsCache, doSetLive, equal, findCollidableFlags, findPickableFlags, findTransformLevels, getBoundsAutoCompute, getCollidable, getCurrentLocalToVworld, getCurrentLocalToVworld, getCurrentLocalToVworld, getEffectiveBounds, getId, getLastLocalToVworld, getLastLocalToVworld, getLastLocalToVworld, getLocalBounds, getLocale, getLocalToVworld, getLocalToVworld, getLocalToVworld, getParent, getPickable, getVirtualUniverse, isStatic, merge, mergeTransform, notifySceneGraphChanged, processViewSpecificInfo, setAuxData, setBounds, setCollidable, setParent, setPickable, transformBounds, updateLocalToVworld
 
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained
clearLive, clearLive, clone, doSetLive, getSource, handleFrequencyChange, isInSetLive, markAsLive, setLive, setSource, traverse
 
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

sharedGroup

SharedGroupRetained sharedGroup
The SharedGroup component of the link node.


plus

static java.lang.String plus

visited

boolean visited
Constructor Detail

LinkRetained

LinkRetained()
Method Detail

setSharedGroup

void setSharedGroup(SharedGroup sharedGroup)
Sets the SharedGroup reference.

Parameters:
sharedGroup - the SharedGroup node

getSharedGroup

SharedGroup getSharedGroup()
Retrieves the SharedGroup reference.

Returns:
the SharedGroup node

computeCombineBounds

void computeCombineBounds(Bounds bounds)
Description copied from class: NodeRetained
ONLY needed for SHAPE, MORPH, and LINK node type. Compute the combine bounds of bounds and its localBounds.

Overrides:
computeCombineBounds in class NodeRetained

getBounds

Bounds getBounds()
Gets the bounding object of a node.

Overrides:
getBounds in class NodeRetained
Returns:
the node's bounding object

setLive

void setLive(SetLiveState s)
assign a name to this node when it is made live.

Overrides:
setLive in class NodeRetained

setNodeData

void setNodeData(SetLiveState s)
Overrides:
setNodeData in class NodeRetained

recombineAbove

void recombineAbove()
Overrides:
recombineAbove in class NodeRetained

clearLive

void clearLive(SetLiveState s)
assign a name to this node when it is made live.

Overrides:
clearLive in class NodeRetained

removeNodeData

void removeNodeData(SetLiveState s)
Description copied from class: NodeRetained
remove the localToVworld transform for this node.

Overrides:
removeNodeData in class NodeRetained

updatePickable

void updatePickable(HashKey[] keys,
                    boolean[] pick)
Overrides:
updatePickable in class NodeRetained

updateCollidable

void updateCollidable(HashKey[] keys,
                      boolean[] collide)
Overrides:
updateCollidable in class NodeRetained

setBoundsAutoCompute

void setBoundsAutoCompute(boolean autoCompute)
Description copied from class: NodeRetained
Sets the automatic calcuation of geometric bounds of a node.

Overrides:
setBoundsAutoCompute in class NodeRetained
Parameters:
autoCompute - is a boolean value indicating if automatic calcuation of bounds

setCompiled

void setCompiled()
Description copied from class: SceneGraphObjectRetained
This marks this object as compiled.

Overrides:
setCompiled in class SceneGraphObjectRetained

compile

void compile(CompileState compState)
Description copied from class: SceneGraphObjectRetained
This is the default compile() method, which just marks the sgo as compiled.

Overrides:
compile in class SceneGraphObjectRetained

getNewKeys

HashKey[] getNewKeys(java.lang.String localeNodeId,
                     HashKey[] oldKeys)

searchGeometryAtoms

void searchGeometryAtoms(UnorderList list)
Overrides:
searchGeometryAtoms in class NodeRetained


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.