groimp-platform:graphexplorerstructure
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
groimp-platform:graphexplorerstructure [2024/11/25 16:55] – tim | groimp-platform:graphexplorerstructure [2024/11/26 13:00] (current) – [SecGraph] tim | ||
---|---|---|---|
Line 8: | Line 8: | ||
A GraphObject can be used to load graph structures from file into the GraphObeject explorer and use them as read only assets. The graph structure can either be cloned and then added to the graph or only an instance of it can be used in the graph. | A GraphObject can be used to load graph structures from file into the GraphObeject explorer and use them as read only assets. The graph structure can either be cloned and then added to the graph or only an instance of it can be used in the graph. | ||
+ | A GraphObject is stored in the original file format and can be viewed from the GraphObjectExplorer. To use it in RGG the class GraphObjectRef with the name if the object. | ||
+ | <code java> | ||
+ | GraphObjectRef gr = new GraphObjectRef(" | ||
+ | [ | ||
+ | A ==> gr.cloneGraph(); | ||
+ | B ==> gr; // replaces B with an instantiation of the graph | ||
+ | ] | ||
+ | </ | ||
==== 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. | + | 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. |
- | < | + | Similar to the ObjectGraph a SecGraph can be used through the SecGraphRef class, either by importing |
- | SecGraphRef x = new SecGraphRef(" | + | <code java> |
- | x ==> F F A; | + | SecGraphRef sgr = new SecGraphRef(" |
+ | sgr ==> F RL(30)F; // add a graph structure to the empty secGraph | ||
+ | |||
+ | SecGraphRef sgr = new SecGraphRef(" | ||
+ | |||
+ | SecGraphRef sgr = new SecGraphRef(" | ||
+ | |||
+ | </ | ||
+ | |||
+ | Additionally | ||
+ | |||
+ | < | ||
+ | |||
+ | module A (float len) { | ||
+ | SecGraphImpl sg; | ||
+ | { | ||
+ | | ||
+ | sg ==> F F RL F; | ||
+ | } | ||
+ | }==> sg; | ||
</ | </ | ||
- | 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 a howl RGG function | + | 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 a entire |
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.1732550139.txt.gz · Last modified: 2024/11/25 16:55 by tim