|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.imp3d.gl20.GL20Node
public class GL20Node
Constructor Summary | |
---|---|
GL20Node(long nodeID)
|
Method Summary | |
---|---|
GL20Resource |
createResource(int resourceClassType)
create a GL20Resource resource for this GL20Node
if no resource exists until now. if a GL20Resource exists it
will be returned |
void |
destroy()
destroy this GL20Node |
static void |
enterNode(long nodeID)
enter the GL20Node that is identified with given
nodeID . |
static GL20Node |
getCurrentNode()
|
long |
getID()
get the node ID of this GL20Node |
GL20Resource |
getResource()
get the GL20Resource of this GL20Node |
int |
getSelectionState()
|
int |
getStamp()
get the last modification stamp of this GL20Node |
boolean |
isUpToDate(int stamp)
check if this GL20Node incl. its resources are up to date |
static java.util.ArrayList<GL20Node> |
leaveNode()
Should be called when a node will be leaved. |
void |
setSelectionState(int selectionState)
|
void |
setStamp(int stamp)
set the modification stamp of this GL20Node |
static void |
startNewVisit(GL20Node rootNode)
start a new traveling over the graph |
void |
update(int stamp)
signal the end of an update of this GL20Node
after updating this GL20Node and its resource
the internal modification stamp will set to the given one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GL20Node(long nodeID)
Method Detail |
---|
public final GL20Resource createResource(int resourceClassType)
GL20Resource
resource for this GL20Node
if no resource exists until now. if a GL20Resource
exists it
will be returned
resourceClassType
- the class and the type of the GL20Resource
that should be created
GL20Resource
of this GL20Node
getResource()
public final void destroy()
GL20Node
public static void enterNode(long nodeID)
GL20Node
that is identified with given
nodeID
. If such a node doesn't exists, it will created
and added to the graph structure.
nodeID
- the ID of the node that should be enteredpublic static GL20Node getCurrentNode()
public final long getID()
GL20Node
public final GL20Resource getResource()
GL20Resource
of this GL20Node
null
- no GL20Resource
exists to this
GL20Node
; otherwise - the GL20Resource
of this
GL20Node
public final int getSelectionState()
public final int getStamp()
GL20Node
public final boolean isUpToDate(int stamp)
GL20Node
incl. its resources are up to date
stamp
- the modification stamp of the associated
true
- this GL20Node
and the
resources are up to datepublic static java.util.ArrayList<GL20Node> leaveNode()
GL20Node
s wasn't visited in this run.
GL20Node
s that wasn't visited in this run OR
null
when all GL20Node
s was visit.public final void setSelectionState(int selectionState)
public final void setStamp(int stamp)
GL20Node
stamp
- the modification stamppublic static void startNewVisit(GL20Node rootNode)
rootNode
- the root GL20Node
of the graphpublic final void update(int stamp)
GL20Node
after updating this GL20Node
and its resource
the internal modification stamp will set to the given one.
stamp
- the current modification stamp
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |