|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.imp3d.objects.SceneTree.Node
de.grogra.imp3d.objects.SceneTree.Leaf
public static class SceneTree.Leaf
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.
| Field Summary | |
|---|---|
boolean |
asNode
Is object a node or an edge? |
java.lang.Object |
object
The object of the original graph for which this leaf has been created. |
long |
pathId
|
| Fields inherited from class de.grogra.imp3d.objects.SceneTree.Node |
|---|
next |
| Constructor Summary | |
|---|---|
SceneTree.Leaf(java.lang.Object object,
boolean asNode,
long pathId)
|
|
| Method Summary | |
|---|---|
void |
accept(SceneTree.Visitor visitor)
|
boolean |
getBoolean(BooleanAttribute a)
Returns the value of attribute a for the
object of this leaf. |
byte |
getByte(ByteAttribute a)
Returns the value of attribute a for the
object of this leaf. |
char |
getChar(CharAttribute a)
Returns the value of attribute a for the
object of this leaf. |
double |
getDouble(DoubleAttribute a)
Returns the value of attribute a for the
object of this leaf. |
float |
getFloat(FloatAttribute a)
Returns the value of attribute a for the
object of this leaf. |
int |
getInt(IntAttribute a)
Returns the value of attribute a for the
object of this leaf. |
long |
getLong(LongAttribute a)
Returns the value of attribute a for the
object of this leaf. |
java.lang.Object |
getObject(ObjectAttribute a)
Returns the value of attribute a for the
object of this leaf. |
java.lang.Object |
getObject(java.lang.Object placeIn,
ObjectAttribute a)
Returns the value of attribute a for the
object of this leaf. |
short |
getShort(ShortAttribute a)
Returns the value of attribute a for the
object of this leaf. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final boolean asNode
object a node or an edge?
public final java.lang.Object object
public final long pathId
| Constructor Detail |
|---|
public SceneTree.Leaf(java.lang.Object object,
boolean asNode,
long pathId)
| Method Detail |
|---|
public final void accept(SceneTree.Visitor visitor)
accept in class SceneTree.Nodepublic boolean getBoolean(BooleanAttribute a)
a for the
object of this leaf.
a - the attribute to readpublic byte getByte(ByteAttribute a)
a for the
object of this leaf.
a - the attribute to readpublic char getChar(CharAttribute a)
a for the
object of this leaf.
a - the attribute to readpublic double getDouble(DoubleAttribute a)
a for the
object of this leaf.
a - the attribute to readpublic float getFloat(FloatAttribute a)
a for the
object of this leaf.
a - the attribute to readpublic int getInt(IntAttribute a)
a for the
object of this leaf.
a - the attribute to readpublic long getLong(LongAttribute a)
a for the
object of this leaf.
a - the attribute to readpublic java.lang.Object getObject(ObjectAttribute a)
a for the
object of this leaf.
a - the attribute to read
public java.lang.Object getObject(java.lang.Object placeIn,
ObjectAttribute a)
a for the
object of this leaf.
placeIn - an instance for the result may be provided by the callera - the attribute to readpublic short getShort(ShortAttribute a)
a for the
object of this leaf.
a - the attribute to readpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||