|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.ding3d.SceneGraphObject
javax.media.ding3d.Node
javax.media.ding3d.Group
javax.media.ding3d.SharedGroup
public class SharedGroup
The SharedGroup provides the ability to manipulate an instanced scene graph. A SharedGroup node allows multiple Link leaf nodes to share its subgraph according to the following semantics:
An IllegalSharingException is thrown if any of the following leaf nodes appear in a shared subgraph:
IllegalSharingException| Field Summary | |
|---|---|
static int |
ALLOW_LINK_READ
Specifies that this SharedGroup node allows reading the list of links that refer to this node. |
| Fields inherited from class javax.media.ding3d.Group |
|---|
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE |
| Constructor Summary | |
|---|---|
SharedGroup()
Constructs and initializes a new SharedGroup node object. |
|
| Method Summary | |
|---|---|
Node |
cloneNode(boolean forceDuplicate)
Used to create a new instance of the node. |
void |
compile()
Compiles the source SharedGroup associated with this object and creates and caches a compiled scene graph. |
Link[] |
getLinks()
Returns the list of Link nodes that refer to this SharedGroup node. |
| Methods inherited from class javax.media.ding3d.Group |
|---|
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds |
| Methods inherited from class javax.media.ding3d.Node |
|---|
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.ding3d.SceneGraphObject |
|---|
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ALLOW_LINK_READ
| Constructor Detail |
|---|
public SharedGroup()
| Method Detail |
|---|
public Link[] getLinks()
public void compile()
SceneGraphCycleException - if there is a cycle in the
scene graph
RestrictedAccessException - if the method is called
when this object is part of a live scene graph.public Node cloneNode(boolean forceDuplicate)
cloneTree to duplicate the current node.
cloneNode in class GroupforceDuplicate - when set to true, causes the
duplicateOnCloneTree flag to be ignored. When
false, the value of each node's
duplicateOnCloneTree variable determines whether
NodeComponent data is duplicated or copied.Node.cloneTree(),
Node.cloneNode(boolean),
Node.duplicateNode(javax.media.ding3d.Node, boolean),
NodeComponent.setDuplicateOnCloneTree(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||