- All Superinterfaces:
GraphObject
,RegistryContext
- All Known Implementing Classes:
SubGraphImpl
,SubGraphRef
defines what a graph object stored in the subgraph explorer should be able to do
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Apply a RGG function on the subgraphvoid
Apply an XL Query on the SubGraphvoid
clear()
removes all Nodes except the rootcreate a new producer to initialize the Graphvoid
function triggered by the saving of the projectvoid
set the project graph to be teh current onevoid
setAutoRecreate
(boolean b) defines if the subgraph is automatically recreated if the model is savedvoid
set this graph to be the currently used onecreates a Node holding a instanciation of teh SubGraphtoMesh()
creates a rendered Mesh of the subGraphMethods inherited from interface de.grogra.graph.object.GraphObject
cloneGraph, describes, getGraph, getNode, getRootNode, reload, setRootNode, write
Methods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
-
Method Details
-
clear
void clear()removes all Nodes except the root -
apply
Apply a RGG function on the subgraph- Parameters:
name
- : name of the function
-
applyXL
Apply an XL Query on the SubGraph- Parameters:
query
- : the XL query
-
toMesh
Node toMesh()creates a rendered Mesh of the subGraph- Returns:
- the Node holding teh mesh
-
toInstance
Node toInstance()creates a Node holding a instanciation of teh SubGraph- Returns:
- the Node
-
handleSaveEvent
void handleSaveEvent()function triggered by the saving of the project -
setAutoRecreate
void setAutoRecreate(boolean b) defines if the subgraph is automatically recreated if the model is saved- Parameters:
b
- sets if recreated or not
-
getInitalProducer
Object getInitalProducer()create a new producer to initialize the Graph- Returns:
-
setCurrent
void setCurrent()set this graph to be the currently used one -
releaseCurrent
void releaseCurrent()set the project graph to be teh current one
-