|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.imp3d.objects.SceneTree de.grogra.imp3d.objects.SceneTreeWithShader de.grogra.imp3d.ray.Tree
public class Tree
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.grogra.imp3d.objects.SceneTreeWithShader |
---|
SceneTreeWithShader.Leaf |
Nested classes/interfaces inherited from class de.grogra.imp3d.objects.SceneTree |
---|
SceneTree.InnerNode, SceneTree.Node, SceneTree.Visitor |
Field Summary |
---|
Fields inherited from class de.grogra.imp3d.objects.SceneTree |
---|
state |
Fields inherited from interface de.grogra.graph.Visitor |
---|
STOP |
Constructor Summary | |
---|---|
Tree(View3D scene)
|
Method Summary | |
---|---|
protected boolean |
acceptLeaf(java.lang.Object object,
boolean asNode)
This method defines for which objects of the graph a SceneTree.Leaf node shall be created. |
protected SceneTree.InnerNode |
createInnerNode()
This factory method is used by SceneTree.createTree(boolean) to create
an inner node. |
protected SceneTree.Leaf |
createLeaf(java.lang.Object object,
boolean asNode,
long id)
This factory method is used by SceneTree.createTree(boolean) to create a leaf. |
Methods inherited from class de.grogra.imp3d.objects.SceneTreeWithShader |
---|
getCurrentInterior, getCurrentShader, init, resolveShader, visitLeave |
Methods inherited from class de.grogra.imp3d.objects.SceneTree |
---|
accept, addTreeModelListener, createTree, createTree, getChild, getChildCount, getGraphState, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged, visitEnter, visitInstanceEnter, visitInstanceLeave |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tree(View3D scene)
Method Detail |
---|
protected boolean acceptLeaf(java.lang.Object object, boolean asNode)
SceneTree
SceneTree.Leaf
node shall be created.
acceptLeaf
in class SceneTree
object
- an object of the graphasNode
- is object a node or an edge?
true
iff a leaf shall be created for the objectprotected SceneTree.InnerNode createInnerNode()
SceneTree
SceneTree.createTree(boolean)
to create
an inner node.
createInnerNode
in class SceneTree
protected SceneTree.Leaf createLeaf(java.lang.Object object, boolean asNode, long id)
SceneTree
SceneTree.createTree(boolean)
to create a leaf.
Note that the implementation has to invoke SceneTree.init(Leaf)
on the
created leaf.
createLeaf
in class SceneTree
object
- object of leafasNode
- represents leaf a node or an edge?id
- id to pass to the leaf constructor
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |