-
Nested Class Summary
Nested Classes
-
-
Constructor Summary
Constructors
-
Method Summary
void
Apply a RGG function on the subgraph
void
Apply an XL Query on the SubGraph
void
removes all Nodes except the root
clone the graph of the rootnode and returns it
If the ref do not exist, one is created based on SubGraphResource & a file is
created (xeg by default)
Gives an array of node types and number contained in the subgraph
Return the graph manager of the subgraph.
create a new producer to initialize the Graph
Return a node of the given name
Returns the
Registry
which is linked with this instance.
Return the root node of the subgraph, i.e. the root of the object loaded
void
function triggered by the saving of the project
void
set the project graph to be teh current one
void
If the subgraph uses some modules defined in the project, reload forces
the modules in the subgraph to be relinked after compilation
void
defines if the subgraph is automatically recreated if the model is saved
void
set this graph to be the currently used one
void
Set the rootnode of a Subgraph object.
creates a Node holding a instanciation of teh SubGraph
creates a rendered Mesh of the subGraph
void
Override the file subgraph in the project with its current version.
-
-
Constructor Details
-
SubGraphRef
public SubGraphRef(String name)
-
Method Details
-
-
-
-
-
createItem
If the ref do not exist, one is created based on SubGraphResource & a file is
created (xeg by default)
- Overrides:
createItem
in class ItemReference<SubGraph>
-
setRootNode
public void setRootNode(Node n)
Set the rootnode of a Subgraph object.
- Specified by:
setRootNode
in interface GraphObject
-
getRootNode
public Node getRootNode()
Return the root node of the subgraph, i.e. the root of the object loaded
- Specified by:
getRootNode
in interface GraphObject
- Returns:
- a Node
-
-
write
public void write()
Override the file subgraph in the project with its current version.
Required on subgraph created in RGG to be saved
- Specified by:
write
in interface GraphObject
-
reload
public void reload()
If the subgraph uses some modules defined in the project, reload forces
the modules in the subgraph to be relinked after compilation
- Specified by:
reload
in interface GraphObject
-
clear
public void clear()
Description copied from interface: SubGraph
removes all Nodes except the root
- Specified by:
clear
in interface SubGraph
-
describes
Gives an array of node types and number contained in the subgraph
- Specified by:
describes
in interface GraphObject
- Returns:
-
getRegistry
Returns the
Registry
which is linked with this instance.
- Specified by:
getRegistry
in interface RegistryContext
- Returns:
- the registry linked with this instance
-
getGraph
Return the graph manager of the subgraph. It is different from the graph manager
of the project & workbench.
- Specified by:
getGraph
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
-
apply
public void apply(String name)
Description copied from interface: SubGraph
Apply a RGG function on the subgraph
- Specified by:
apply
in interface SubGraph
- Parameters:
name
- : name of the function
-
applyXL
public void applyXL(String name)
Description copied from interface: SubGraph
Apply an XL Query on the SubGraph
- Specified by:
applyXL
in interface SubGraph
- Parameters:
name
- : the XL query
-
toMesh
Description copied from interface: SubGraph
creates a rendered Mesh of the subGraph
- Specified by:
toMesh
in interface SubGraph
- Returns:
- the Node holding teh mesh
-
toInstance
Description copied from interface: SubGraph
creates a Node holding a instanciation of teh SubGraph
- Specified by:
toInstance
in interface SubGraph
- Returns:
- the Node
-
setAutoRecreate
public void setAutoRecreate(boolean b)
Description copied from interface: SubGraph
defines if the subgraph is automatically recreated if the model is saved
- Specified by:
setAutoRecreate
in interface SubGraph
- Parameters:
b
- sets if recreated or not
-
handleSaveEvent
public void handleSaveEvent()
Description copied from interface: SubGraph
function triggered by the saving of the project
- Specified by:
handleSaveEvent
in interface SubGraph
-
-
getInitalProducer
public Object getInitalProducer()
Description copied from interface: SubGraph
create a new producer to initialize the Graph
- Specified by:
getInitalProducer
in interface SubGraph
- Returns:
-
setCurrent
public void setCurrent()
Description copied from interface: SubGraph
set this graph to be the currently used one
- Specified by:
setCurrent
in interface SubGraph
-
releaseCurrent
public void releaseCurrent()
Description copied from interface: SubGraph
set the project graph to be teh current one
- Specified by:
releaseCurrent
in interface SubGraph