|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.SceneGraphObject org.j3d.aviatrix3d.BufferState
public abstract class BufferState
Representation of scene graph objects that control the drawing buffer state at the root of the scene graph.
Buffer state information can be shared between scenes, though it is expected to be unlikely.
Internationalisation Resource Names
Field Summary | |
---|---|
protected int |
lastParent
Index to the next place to add items in the nodeList |
protected int |
liveCount
Counter for how many times we've been marked as live so to know when to notify the children of a change of state. |
protected SceneGraphObject[] |
parentList
Listing of all the parents of this node |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
Constructor Summary | |
---|---|
protected |
BufferState()
Initialise a new instance of the component, setting up the internal state needed. |
Method Summary | |
---|---|
protected void |
addParent(SceneGraphObject p)
Specify this nodes parent, overridden to provide behaviour that appends the node to the list rather than replacing it. |
void |
getParents(Node[] parents)
Get the listing of the number of parents that this node currently has. |
int |
numParents()
Request the number of parents this node currently contains |
protected void |
removeParent(SceneGraphObject p)
Remove a parent from this shared group. |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
checkForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SceneGraphObject[] parentList
protected int lastParent
protected int liveCount
Constructor Detail |
---|
protected BufferState()
Method Detail |
---|
protected void addParent(SceneGraphObject p) throws AlreadyParentedException, InvalidNodeTypeException
p
- The new parent instance to add to the list
AlreadyParentedException
- There is a valid parent already set
InvalidNodeTypeException
- Not a group nodeprotected void removeParent(SceneGraphObject p)
p
- The new parent instance to remove from the listpublic int numParents()
public void getParents(Node[] parents)
parents
- An array to copy the parent listing into
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |