java.lang.Object
de.grogra.imp3d.objects.SceneTree.Node
de.grogra.imp3d.objects.SceneTree.Leaf
- Direct Known Subclasses:
SceneTreeWithShader.Leaf
- Enclosing class:
- SceneTree
This represents a leaf in a
SceneTree
. A leaf contains
a reference to an object of the graph for which the method
SceneTree.acceptLeaf(Object, boolean)
has returned
true
. E.g., think of all nodes having a 3D shape.- Author:
- Ole Kniemeyer
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
Isobject
a node or an edge?final Object
The object of the original graph for which this leaf has been created.final long
Fields inherited from class de.grogra.imp3d.objects.SceneTree.Node
next
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
accept
(SceneTree.Visitor visitor) boolean
Returns the value of attributea
for theobject
of this leaf.byte
Returns the value of attributea
for theobject
of this leaf.char
Returns the value of attributea
for theobject
of this leaf.double
Returns the value of attributea
for theobject
of this leaf.float
Returns the value of attributea
for theobject
of this leaf.int
Returns the value of attributea
for theobject
of this leaf.long
Returns the value of attributea
for theobject
of this leaf.Returns the value of attributea
for theobject
of this leaf.getObject
(Object placeIn, ObjectAttribute a) Returns the value of attributea
for theobject
of this leaf.short
Returns the value of attributea
for theobject
of this leaf.toString()
-
Field Details
-
object
The object of the original graph for which this leaf has been created. -
asNode
public final boolean asNodeIsobject
a node or an edge? -
pathId
public final long pathId
-
-
Constructor Details
-
Leaf
-
-
Method Details
-
accept
- Specified by:
accept
in classSceneTree.Node
-
toString
-
getBoolean
Returns the value of attributea
for theobject
of this leaf.- Parameters:
a
- the attribute to read
-
getByte
Returns the value of attributea
for theobject
of this leaf.- Parameters:
a
- the attribute to read
-
getShort
Returns the value of attributea
for theobject
of this leaf.- Parameters:
a
- the attribute to read
-
getChar
Returns the value of attributea
for theobject
of this leaf.- Parameters:
a
- the attribute to read
-
getInt
Returns the value of attributea
for theobject
of this leaf.- Parameters:
a
- the attribute to read
-
getLong
Returns the value of attributea
for theobject
of this leaf.- Parameters:
a
- the attribute to read
-
getFloat
Returns the value of attributea
for theobject
of this leaf.- Parameters:
a
- the attribute to read
-
getDouble
Returns the value of attributea
for theobject
of this leaf.- Parameters:
a
- the attribute to read
-
getObject
Returns the value of attributea
for theobject
of this leaf.- Parameters:
a
- the attribute to read
-
getObject
Returns the value of attributea
for theobject
of this leaf.- Parameters:
placeIn
- an instance for the result may be provided by the callera
- the attribute to read
-