|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.utils.TreeCloner
public class TreeCloner
Clones a Subtree of the scenegraph.
| Constructor Summary | |
|---|---|
TreeCloner()
|
|
| Method Summary | ||
|---|---|---|
protected void |
add(Node node)
|
|
|
cloneTree(GroupNodeExtension root)
|
|
boolean |
traversalCheckGroup(BranchGroup bg)
This method is called for each group in the traversal. |
|
boolean |
traversalCheckGroup(Group group)
This method is called for each group in the traversal. |
|
boolean |
traversalCheckGroup(OrderedGroup og)
This method is called for each group in the traversal. |
|
boolean |
traversalCheckGroup(Switch sw)
This method is called for each group in the traversal. |
|
boolean |
traversalCheckGroup(TransformGroup tg)
This method is called for each group in the traversal. |
|
boolean |
traversalCheckGroupCommon(GroupNode group)
This method is (certainly) called for each group in the traversal. |
|
boolean |
traversalOperation(BranchGroup bg)
This method is called for each BranchGroup in the traversed Group. |
|
boolean |
traversalOperation(Fog fog)
This method is called for each Light node in the traversed Group. |
|
boolean |
traversalOperation(Group group)
This method is called for each Group in the traversed Group. |
|
boolean |
traversalOperation(Light light)
This method is called for each Light node in the traversed Group. |
|
boolean |
traversalOperation(Node node)
This method is called for each Node in the traversed Group. |
|
boolean |
traversalOperation(OrderedGroup og)
This method is called for each OrderedGroup in the traversed Group. |
|
boolean |
traversalOperation(Shape3D shape)
This method is called for each Node in the traversed Group. |
|
boolean |
traversalOperation(Sound sound)
This method is called for each Sound node in the traversed Group. |
|
boolean |
traversalOperation(Switch sw)
This method is called for each Node in the traversed Group. |
|
boolean |
traversalOperation(TransformGroup tg)
This method is called for each TransformGroup in the traversed Group. |
|
boolean |
traversalOperationAfter(BranchGroup bg)
This method is called for each BranchGroup in the traversed Group after the Node has been worked on. |
|
boolean |
traversalOperationAfter(Fog fog)
This method is called for each Light node in the traversed Group after the Node has been worked on. |
|
boolean |
traversalOperationAfter(Group group)
This method is called for each Group in the traversed Group after the Node has been worked on. |
|
boolean |
traversalOperationAfter(Light light)
This method is called for each Light node in the traversed Group after the Node has been worked on. |
|
boolean |
traversalOperationAfter(Node node)
This method is called for each Node in the traversed Group after the Node has been worked on. |
|
boolean |
traversalOperationAfter(OrderedGroup og)
This method is called for each OrderedGroup in the traversed Group after the Node has been worked on. |
|
boolean |
traversalOperationAfter(Shape3D shape)
This method is called for each Node in the traversed Group after the Node has been worked on. |
|
boolean |
traversalOperationAfter(Sound sound)
This method is called for each Sound node in the traversed Group after the Node has been worked on. |
|
boolean |
traversalOperationAfter(Switch sw)
This method is called for each Node in the traversed Group after the Node has been worked on. |
|
boolean |
traversalOperationAfter(TransformGroup tg)
This method is called for each TransformGroup in the traversed Group after the Node has been worked on. |
|
boolean |
traversalOperationCommon(GroupNode node)
This method is (certainly) called for each Node in the traversed Group, which is a group itself. |
|
boolean |
traversalOperationCommon(Node node)
This method is (certainly) called for each Node in the traversed Group, which is not a group itself. |
|
boolean |
traversalOperationCommonAfter(GroupNode group)
This method is (certainly) called for each Group in the traversed Node, which is a Group itself after the Node has been worked on. |
|
boolean |
traversalOperationCommonAfter(Node node)
This method is (certainly) called for each Node in the traversed Node, which is not a Group itself after the Node has been worked on. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeCloner()
| Method Detail |
|---|
protected final void add(Node node)
public boolean traversalOperationCommon(Node node)
traversalOperationCommon in interface DetailedTraversalCallbacknode - the current Node in the traversal
public boolean traversalOperationCommon(GroupNode node)
traversalOperationCommon in interface DetailedTraversalCallbacknode - the current Node in the traversal
public boolean traversalCheckGroupCommon(GroupNode group)
traversalCheckGroupCommon in interface DetailedTraversalCallbackgroup - the Group to be checked
public boolean traversalCheckGroup(BranchGroup bg)
traversalCheckGroup in interface DetailedTraversalCallbackbg - the BranchGroup to be checked
public boolean traversalCheckGroup(Group group)
traversalCheckGroup in interface DetailedTraversalCallbackgroup - the Group to be checked
public boolean traversalCheckGroup(Switch sw)
traversalCheckGroup in interface DetailedTraversalCallbacksw - the Switch group to be checked
public boolean traversalCheckGroup(TransformGroup tg)
traversalCheckGroup in interface DetailedTraversalCallbacktg - the TransformGroup to be checked
public boolean traversalCheckGroup(OrderedGroup og)
traversalCheckGroup in interface DetailedTraversalCallbackog - the OrderedGroup to be checked
public boolean traversalOperation(Node node)
traversalOperation in interface DetailedTraversalCallbacknode - the current Node in the traversal
public boolean traversalOperation(BranchGroup bg)
traversalOperation in interface DetailedTraversalCallbackbg - the current BranchGroup in the traversal
public boolean traversalOperation(Group group)
traversalOperation in interface DetailedTraversalCallbackgroup - the current Group in the traversal
public boolean traversalOperation(TransformGroup tg)
traversalOperation in interface DetailedTraversalCallbacktg - the current TransformGroup in the traversal
public boolean traversalOperation(OrderedGroup og)
traversalOperation in interface DetailedTraversalCallbackog - the current OrderedGroup in the traversal
public boolean traversalOperation(Switch sw)
traversalOperation in interface DetailedTraversalCallbacksw - the current Switch node in the traversal
public boolean traversalOperation(Shape3D shape)
traversalOperation in interface DetailedTraversalCallbackshape - the current Shape3D in the traversal
public boolean traversalOperation(Light light)
traversalOperation in interface DetailedTraversalCallbacklight - the current Light in the traversal
public boolean traversalOperation(Fog fog)
traversalOperation in interface DetailedTraversalCallbackfog - the current Fog in the traversal
public boolean traversalOperation(Sound sound)
traversalOperation in interface DetailedTraversalCallbacksound - the current Sound node in the traversal
public boolean traversalOperationCommonAfter(Node node)
traversalOperationCommonAfter in interface DetailedTraversalCallbacknode - the current node in the traversal
public boolean traversalOperationCommonAfter(GroupNode group)
traversalOperationCommonAfter in interface DetailedTraversalCallbackgroup - the current GroupNode in the traversal
public boolean traversalOperationAfter(BranchGroup bg)
traversalOperationAfter in interface DetailedTraversalCallbackbg - the current BranchGroup in the traversal
public boolean traversalOperationAfter(Group group)
traversalOperationAfter in interface DetailedTraversalCallbackgroup - the current Group in the traversal
public boolean traversalOperationAfter(TransformGroup tg)
traversalOperationAfter in interface DetailedTraversalCallbacktg - the current TransformGroup in the traversal
public boolean traversalOperationAfter(OrderedGroup og)
traversalOperationAfter in interface DetailedTraversalCallbackog - the current OrderedGroup in the traversal
public boolean traversalOperationAfter(Node node)
traversalOperationAfter in interface DetailedTraversalCallbacknode - the current Node in the traversal
public boolean traversalOperationAfter(Switch sw)
traversalOperationAfter in interface DetailedTraversalCallbacksw - the current Switch node in the traversal
public boolean traversalOperationAfter(Shape3D shape)
traversalOperationAfter in interface DetailedTraversalCallbackshape - the current Shape3D in the traversal
public boolean traversalOperationAfter(Light light)
traversalOperationAfter in interface DetailedTraversalCallbacklight - the current Light in the traversal
public boolean traversalOperationAfter(Fog fog)
traversalOperationAfter in interface DetailedTraversalCallbackfog - the current Fog in the traversal
public boolean traversalOperationAfter(Sound sound)
traversalOperationAfter in interface DetailedTraversalCallbacksound - the current Sound node in the traversal
public <GroupNodeExtension extends GroupNode> GroupNodeExtension cloneTree(GroupNodeExtension root)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||