|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.scene.SceneGraphNode
public class SceneGraphNode
Base class for scene graph member nodes. Common features of all scene graph nodes are an optional name and a read-only flag.
This class handles the thread-safe access to the state using a collection of protected and private methods for locked read and write access.
Many subclasses support specific listeners which notify interested parties of any change in state of the node. See the specific subclasses for details.
Constructor Summary | |
---|---|
SceneGraphNode(java.lang.String name)
|
Method Summary | |
---|---|
void |
accept(SceneGraphVisitor v)
The accept method for a SceneGraphVisitor. |
java.lang.String |
getName()
|
java.lang.Object |
getOwner()
|
static boolean |
getThreadSafe()
|
boolean |
isReadOnly()
Returns the readOnly flag |
void |
setName(java.lang.String string)
|
void |
setOwner(java.lang.Object owner)
|
void |
setReadOnly(boolean newReadOnlyState)
Sets the readOnly flag |
static void |
setThreadSafe(boolean b)
Allow thread-unsafe access to all scene graph nodes, to optimize performance in case there are no threading issues. |
java.lang.String |
toString()
Return a string representation of the current state. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SceneGraphNode(java.lang.String name)
Method Detail |
---|
public boolean isReadOnly()
public void setReadOnly(boolean newReadOnlyState)
newReadOnlyState
- the desired readOnly flag valuepublic java.lang.String getName()
public void setName(java.lang.String string)
public java.lang.Object getOwner()
public void setOwner(java.lang.Object owner)
public void accept(SceneGraphVisitor v)
a
- visitor SceneGraphVisitor
public java.lang.String toString()
toString
in class java.lang.Object
public static void setThreadSafe(boolean b)
b
- public static boolean getThreadSafe()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |