-
Method Summary
clone the graph of the rootnode and returns it
Gives an array of node types and number contained in the GraphObject
Return the graph manager of the GraphObject.
Gives the name if one exists
Return a node of the given name
Return the root node of the GraphObject, i.e. the root of the object loaded
void
If the GraphObject uses some modules defined in the project, reload forces
the modules in the GraphObject to be relinked after compilation
Resolves the real object if a reference is used
If the real object is used the function returns it self
void
Set the rootnode of a GraphObject object.
void
Opens the 2d view of the current graph
void
Opens the 3d view of the current graph
void
Override the file GraphObject in the project with its current version.
-
Method Details
-
getRootNode
Return the root node of the GraphObject, i.e. the root of the object loaded
- Returns:
- a Node
-
setRootNode
void setRootNode(Node root)
Set the rootnode of a GraphObject object.
- Parameters:
root
-
-
-
write
void write()
Override the file GraphObject in the project with its current version.
Required on GraphObject created in RGG to be saved
-
reload
void reload()
If the GraphObject uses some modules defined in the project, reload forces
the modules in the GraphObject to be relinked after compilation
-
describes
Gives an array of node types and number contained in the GraphObject
- Returns:
-
-
getNode
Return a node of the given name
- Parameters:
key
- : the name of the type of node
-
resolve
Resolves the real object if a reference is used
If the real object is used the function returns it self
- Returns:
-
view3d
Opens the 3d view of the current graph
- Parameters:
ctx
-
-
view2d
Opens the 2d view of the current graph
- Parameters:
ctx
-
-
getName
Gives the name if one exists
- Returns: