-
Nested Class Summary
Nested Classes
-
-
Constructor Summary
Constructors
-
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.
Return a node of the given name
Returns the
Registry
which is linked with this instance.
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.
-
-
Constructor Details
-
GraphObjectRef
public GraphObjectRef(String name)
-
GraphObjectRef
public GraphObjectRef()
-
Method Details
-
resolve
Resolves the real object if a reference is used
If the real object is used the function returns it self
- Specified by:
resolve
in interface GraphObject
- Returns:
-
-
getRootNode
public Node getRootNode()
Return the root node of the GraphObject, i.e. the root of the object loaded
- Specified by:
getRootNode
in interface GraphObject
- Returns:
- a Node
-
setRootNode
public void setRootNode(Node root)
Set the rootnode of a GraphObject object.
- Specified by:
setRootNode
in interface GraphObject
-
-
write
public void write()
Override the file GraphObject in the project with its current version.
Required on GraphObject created in RGG to be saved
- Specified by:
write
in interface GraphObject
-
reload
public void reload()
If the GraphObject uses some modules defined in the project, reload forces
the modules in the GraphObject to be relinked after compilation
- Specified by:
reload
in interface GraphObject
-
describes
Gives an array of node types and number contained in the GraphObject
- Specified by:
describes
in interface GraphObject
- Returns:
-
-
getNode
Return a node of the given name
- Specified by:
getNode
in interface GraphObject
- Parameters:
key
- : the name of the type of node
-
getRegistry
Returns the
Registry
which is linked with this instance.
- Specified by:
getRegistry
in interface RegistryContext
- Returns:
- the registry linked with this instance
-
-
view3d
Opens the 3d view of the current graph
- Specified by:
view3d
in interface GraphObject
-
view2d
Opens the 2d view of the current graph
- Specified by:
view2d
in interface GraphObject