|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.scene.Scene
public class Scene
A utility class providing static methods for applying a set of changes simultaneously to an element of the scene graph. It minimizes the amount of locking that is required to do this.
Method Summary | |
---|---|
static void |
executeReader(Collection toRead,
Runnable reader)
Not implemented yet. |
static void |
executeReader(SceneGraphNode toRead,
Runnable reader)
Perform a piece of code to query a SceneGraphNode in a read-locked
state of the node. |
static void |
executeWriter(Collection toRead,
Runnable writer)
Not implemented yet. |
static void |
executeWriter(SceneGraphNode toWriteIn,
Runnable writer)
Perform a piece of code to manipulate a SceneGraphNode in a
write-locked state of the node. |
static void |
updateFactories(AbstractGeometryFactory... factories)
not yet tested... |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void executeReader(SceneGraphNode toRead, Runnable reader)
SceneGraphNode
in a read-locked
state of the node. The code is encapsulated in a Runnable
and can
safely assume that different query methods on that node return valid values
representing the same unmodified state.
executeReader(Collection,Runnable)
public static void executeReader(Collection toRead, Runnable reader)
public static void executeWriter(SceneGraphNode toWriteIn, Runnable writer)
SceneGraphNode
in a
write-locked state of the node. The code is encapsulated in a
Runnable
and no other code can get a read-lock while it's
run
method is being executed. So no-one will
read an in-between state.
executeWriter(Collection,Runnable)
public static void executeWriter(Collection toRead, Runnable writer)
public static void updateFactories(AbstractGeometryFactory... factories)
factories
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |