Chapter 3. Secondary Graphs

Table of Contents

3.1. Explorer
3.1.1. Multi-file import
3.2. Usage in RGG
3.2.1. Initialization
3.2.2. Current RGGGraph
3.2.3. run RGG/XL functions
3.2.4. Auto-recreate

The SecGraph object extends the GraphObject, by adding the ability to apply XL queries and RGG functions on the graph and save them. Yet therefore a SecGraph is always saved as an XML file and the original file is not included in the Project.

A SecGraph can either be a referencable resource or a variable, this difference is shown by two classes that both extend the SecGraph interface: SecGraphRef and SecGraphImpl.

SecGraphRef works similarly to GraphObjectRef only that with the saving of the project the current graph structure is written down in the referenced file. A SecGraphImpl creates a variable, that is saved in a hidden file if it is a attribute of an node, so that the node can be recreated if the project is reopened. If a SecGraph is added as an attribute to a Node, this SecGraph can be selected though the attribute editor of the node. (A button with the name of the secGraph variable).

3.1. Explorer

Using the explorer files can be imported with the menu and SecGraphs can be deleted by select and delete. Moreover by selecting on a item the represented SecGraph can be opened in the 2d graph view or the 3d view. Using teh 3d view it is also possible to export the secondary graph to any file supported by GroIMP.

3.1.1. Multi-file import

It is possible to import multiple files at once But only if they are all of the same type/format!