|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.elements.Element
public abstract class Element
Represents an element in the global state
, such as the current 3D
coordinates or texture to be applied. The organization of the
global state into elements is one of the key mechanisms for
extendability of the library which was pioneered by Open Inventor.
Constructor Summary | |
---|---|
protected |
Element()
|
Method Summary | |
---|---|
int |
getDepth()
Returns the depth of this element in its stack, used to implement lazy state pushing. |
Element |
getNext()
Returns the next element in the linked list of elements which were modified since the last state push. |
Element |
getNextInStack()
Returns the next element in the stack. |
abstract StateIndex |
getStateIndex()
All concrete element subclasses must register themselves with the State in order to reserve a slot, or index, in the state. |
abstract Element |
newInstance()
Creates a new instance initialized to the default values for the state element. |
void |
pop(State state,
Element previousTopElement)
Pops the element, allowing for side effects to occur. |
void |
push(State state)
Pushes the element, allowing for side effects to occur. |
void |
setDepth(int depth)
Sets the depth of this element in its stack, used to implement lazy state pushing. |
void |
setNext(Element next)
Sets the next element in the linked list of elements which were modified since the last state push. |
void |
setNextInStack(Element nextInStack)
Sets the next element in the stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Element()
Method Detail |
---|
public abstract Element newInstance()
public Element getNextInStack()
public void setNextInStack(Element nextInStack)
public Element getNext()
public void setNext(Element next)
public int getDepth()
public void setDepth(int depth)
public void push(State state)
public void pop(State state, Element previousTopElement)
public abstract StateIndex getStateIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |