01_user_documentation:06_graph:06_extent:02_index
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 01_user_documentation:06_graph:06_extent:02_index [2025/10/13 09:41] – created gaetan | 01_user_documentation:06_graph:06_extent:02_index [2025/10/13 10:18] (current) – gaetan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Index ====== | ====== Index ====== | ||
| + | An extent collects its nodes not by a single list, but by a number of (doubly linked) lists. Currently, 16 lists are used, but this can easily be changed. This feature is used to partition the extents. The 16 lists are called the extent indexes. | ||
| - | An extent collects its nodes not by a single list, but by a number of (doubly linked) lists. Currently, eight lists are used, but this can easily be changed. This feature is used to partition | + | Extents are used by the [[: |
| + | * 0 to 6: Default visibility - used by default in queries. Only these indexes | ||
| + | * 7: Meta data index. | ||
| + | * 8: [[: | ||
| + | * 9 to 15: Unused | ||
| - | The extent indexes are defined from 0 to 7. By default most nodes added to the graph are added with the index 0. There are two exceptions (by default. You can manually set index of Node): | + | **Note:** the index visibility is not used for the display. Thus, nodes on a " |
| - | - //meta objects//: Nodes of the meta graph. Added at index 7. | + | |
| - | - //GUI inserted objects//: Nodes inserted from the GUI. Added at index 6 (since GroIMP 2.1.5, they where added to index 7 before). | + | |
| - | The most common example of extent index is the // | ||
| - | **Note**: before GroIMP version 2.1.5, all objects added through the GUI> | + | ===== Default usage ===== |
| - | An index is visible, if it is included in the queries. A Node can be added in the scene with a geometrical representation, | + | The extent indexes are defined from 0 to 15. By default most nodes added to the graph are added with the index 0. There are three exceptions: |
| + | - The roots of the graphs | ||
| + | - //meta objects//: Nodes of the [[: | ||
| + | - //GUI inserted objects//: Nodes inserted from the GUI. Added at index 6 (since GroIMP 2.1.5, they where added to index 7 before) (only the first node is added at index 6. The following ones are added at index 0). | ||
| - | It is possible to change the index visibility in a project with the method: '' | ||
| - | === Example === | + | The most common example of extent index is the // |
| - | For instance, let's consider the following method in an empty project. Notice that we set the visible extent value to 1: | + | **Note**: before GroIMP version 2.1.5, all objects added through the GUI> |
| - | + | ||
| - | <code java> | + | |
| - | public void run(){ | + | |
| - | de.grogra.rgg.model.Runtime.INSTANCE.currentGraph().setVisibleExtents(1); | + | |
| - | println((*Node*)); | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | The method output: | + | |
| - | < | + | |
| - | de.grogra.rgg.RGGRoot[id=99]@2e86af42 | + | |
| - | de.grogra.rgg.Axiom[id=100]@59f1c976 | + | |
| - | </ | + | |
| - | + | ||
| - | Only the " | + | |
| - | + | ||
| - | Let's change the visible extent value to **255**. Now the method output: | + | |
| - | < | + | |
| - | de.grogra.graph.impl.Node[id=0]@5add4889 | + | |
| - | de.grogra.graph.impl.Node[id=1]@4f690d55 | + | |
| - | de.grogra.rgg.RGGRoot[id=103]@621de1a6 | + | |
| - | Model[id=101]@331e288e | + | |
| - | parameters[id=102]@cd97a89 | + | |
| - | de.grogra.rgg.Axiom[id=104]@4cface1f | + | |
| - | </ | + | |
| - | + | ||
| - | Some additional nodes are now visible: | + | |
| - | * the roots (id 0 and 1). id 0 is the root of the main graph. id 1 is the root of the meta graph. | + | |
| - | * the nodes from the meta graph: the compiled version of the files: Model, and parameters. | + | |
| - | + | ||
| - | Notice that: | + | |
| - | * Once the setVisibleExtents is called. The value remains until a new value is set. | + | |
| - | * setVisibleExtents use as parameter the decimal value of a binary number of 8 values where each 1 mean that the index is visible, the 0 to 7 index visibility are defined from left to right. E.g. to have all indexes visible, we use 11111111 (eight 1), which is equal in decimal | + | |
01_user_documentation/06_graph/06_extent/02_index.1760341301.txt.gz · Last modified: 2025/10/13 09:41 by gaetan
