User Tools

Site Tools


groimp-platform:graphexplorerstructure

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
groimp-platform:graphexplorerstructure [2024/11/25 17:19] – [GraphObject] timgroimp-platform:graphexplorerstructure [2024/11/26 13:00] (current) – [SecGraph] tim
Line 21: Line 21:
 ==== SecGraph ==== ==== SecGraph ====
  
-A SecGraph object extends the GraphObject to creates a fully functional secondary graph, that can be manipulated and is stored in the same XML format as the project graph. Besides the importing inhered from the GraphObject, a SecGraph can be created using a production similar to an instantiation rule: +A SecGraph object extends the GraphObject to creates a fully functional secondary graph, that can be manipulated and is stored in the same XML format as the project graph.  
-<code> +Similar to the ObjectGraph a SecGraph can be used through the SecGraphRef class, either by importing (through the SecGraphExplorer) or by creating in RGG.  
-SecGraphRef x = new SecGraphRef("hi"); +<code java> 
-==> F F A;+SecGraphRef sgr = new SecGraphRef("test") // a empty SecGraphReference 
 +sgr ==> F RL(30)F; // add a graph structure to the empty secGraph 
 + 
 +SecGraphRef sgr = new SecGraphRef("tmp",first((*RGGRoot*))); // a new SecGraphRef containing a clone of the subgraph below RGGRoot 
 + 
 +SecGraphRef sgr = new SecGraphRef("tmp",GraphObejctRef("myTree")); // a secGraph contaiing a clone of the GraphObject myTree 
 + 
 +</code> 
 + 
 +Additionally a SecGraph can also be an attribute of a Node (including the rgg classes). In this case the xml file containing the graph is automatically created using the EmbeddedSharedObject-conzept.  
 + 
 +<code java
 + 
 +module A (float len) { 
 +SecGraphImpl sg; 
 +
 + sg = new SecGraphImpl(workbench()); 
 + sg ==> F F RL F; 
 +
 +}==> sg; 
 </code> </code>
  
-To interact with the SecGraph object through RGG or XL, the function setCurrent and releaseCurrent are implemented. These functions change the currently used lock and RGGGraph in GroIMP, allowing to execute code on another graph. Additionally it is possible to push howl RGG function to a SecGraph. +To interact with the SecGraph object through RGG or XL, the function setCurrent and releaseCurrent are implemented. These functions change the currently used lock and RGGGraph in GroIMP, allowing to execute code on another graph. Additionally it is possible to apply entire RGG function on a SecGraph. 
  
 On the GUI level it is possible to edit the secondary graph on the 2d graph and the 3d view. On the GUI level it is possible to edit the secondary graph on the 2d graph and the 3d view.
groimp-platform/graphexplorerstructure.1732551560.txt.gz · Last modified: 2024/11/25 17:19 by tim