User Tools

Site Tools


groimp-platform:visit-resolution

Differences

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

Link to this comparison view

Next revision
Previous revision
groimp-platform:visit-resolution [2024/11/06 17:38] – created gaetangroimp-platform:visit-resolution [2024/11/06 17:46] (current) – [Resolution index] gaetan
Line 1: Line 1:
 ====== Display visitor resolution ====== ====== Display visitor resolution ======
  
-To display a scene (2d or 3d) the graph is visited by a **DisplayVisitor**. The display visitor visit all Nodes that are connected through **Branch** and **Successor** edges to the root (see more on the [[groimp-platform:3d:visualization|3d display visitor]]).+To display a scene (2d or 3d) the graph is visited by a **DisplayVisitor**. The display visitor visit all Nodes that are connected through **Branch** and/or **Successor** edges to the root (see more on the [[groimp-platform:3d:visualization|3d display visitor]]).
  
-The DisplayVisitor is used at every display update: highlight, picking, graph update, navigation in the scene, ... So in complex graph it can be useful to: limit the number of visitations (e.g. by disabling highlight) or, simplify the visitation (e.g. using resolution index).+The DisplayVisitor is used at every display update: highlight, picking, graph update, navigation in the scene, ... So in complex graph it can be useful to: limit the number of visits (e.g. by disabling highlight) or, simplify the visits (e.g. using resolution index).
  
 ===== Resolution index ===== ===== Resolution index =====
Line 15: Line 15:
 When a visitor visits a node there are three possible event: When a visitor visits a node there are three possible event:
   * The Visitor has a strictly //higher// resolution index than the node.  If the node is ResolutionSensitive, its State is set to NORMAL (which is the default value). Then, the visitor continue.   * The Visitor has a strictly //higher// resolution index than the node.  If the node is ResolutionSensitive, its State is set to NORMAL (which is the default value). Then, the visitor continue.
-  * The Visitor has the +  * The Visitor and the Node have the same resolution index. The Node State is set to PASSED. Then, the visitor continue. 
 +  * The Visitor has a strictly //lower// resolution index than the node. The Node State is set to STOPPED. The node is visited, but it stops the visitor from visiting its children Nodes. The Visitor will still continue to visit the rest of the graph. 
 + 
 +The resolution indexes of Node can be set with the Attribute editor, or with the method //setResolution(int)//
 + 
 +The resolution of the DisplayVisitor can be set in the options. 
groimp-platform/visit-resolution.1730911136.txt.gz · Last modified: 2024/11/06 17:38 by gaetan