tutorials:import-object-in-groimp
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorials:import-object-in-groimp [2025/11/01 08:00] – [Importing though RGG code] Tim | tutorials:import-object-in-groimp [2025/11/01 08:24] (current) – [Importing though RGG code] Tim | ||
|---|---|---|---|
| Line 103: | Line 103: | ||
| With the same parameters as above we can also use the loadNodeFromFile and loadeNodeFromStream functions. | With the same parameters as above we can also use the loadNodeFromFile and loadeNodeFromStream functions. | ||
| - | These functions return the root of the imported structure and therefore allow us to place it at any position in our graph: | + | These functions return the root of the imported structure and therefore allow us to place it at any position in our graph. For example lats place the dtd tree twice in the graph once at 0,0,0 and once at 2, |
| <code java loadNodeFromFile.rgg> | <code java loadNodeFromFile.rgg> | ||
| - | + | protected void init()[ | |
| + | Axiom==> | ||
| + | loadNodeFromFile(getPathToHomeDirectory()+" | ||
| + | [ | ||
| + | | ||
| + | | ||
| + | ]; | ||
| + | ] | ||
| </ | </ | ||
| - | loadNodeFromFile(" | ||
| - | |||
| - | loadNodeFromFile(Stream," | ||
| - | |||
| - | e.g. | ||
| - | |||
| - | A ==> loadNodeFromFile(" | ||
| ==== Using the Object explorer ==== | ==== Using the Object explorer ==== | ||
tutorials/import-object-in-groimp.1761980416.txt.gz · Last modified: 2025/11/01 08:00 by Tim
