InventorSceneChangeObserver

MacroModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition InventorSceneChangeObserver.def
keywords field, node, SoField, SoNode, count, counter, measure, profile, performance, optimize

Purpose

The InventorSceneChangeObserver module allows to observe and log field and scene changes in the connected scene graph. It can be used to detect undesired scene changes which lead to repaints of viewers, e.g. when the mouse is moved over a scene. Furthermore it can be used to trigger actions on changes of the scene graph topology.

Usage

Connect the scene graph to inNode. Configure to your needs.

Input Fields

inNode

name: inNode, type: SoNode

This input scene that is watched.

Parameter Fields

Field Index

Auto Update: Bool Log To Text View: Bool
Changed Fields/Nodes: String Node Changed: Trigger
Clear: Trigger Update: Trigger
Count: Integer  
Count Changes: Bool  
Field Changed: Trigger  
fieldValueMaxLength: Integer  
Log To Console: Bool  

Visible Fields

Log To Console

name: logToConsole, type: Bool, default: FALSE

Enables logging to the MeVisLab console.

Log To Text View

name: logToTextView, type: Bool, default: TRUE

If True, scene changes are logged to the text view in the module GUI.

Auto Update

name: autoUpdate, type: Bool, default: TRUE

Auto updates the log window.

Update

name: update, type: Trigger

Updates the log window manually.

Clear

name: clear, type: Trigger

Clears the log window and count.

Changed Fields/Nodes

name: logText, type: String, persistent: no

Shows the changed fields/nodes.

Count Changes

name: countChanges, type: Bool, default: TRUE

If true, observed changes are counted and output in the field count.

Count

name: count, type: Integer, persistent: no

Number of observed changes.

Field Changed

name: fieldChanged, type: Trigger

Output trigger indicating that a field in the input scene graph has changed.

Node Changed

name: nodeChanged, type: Trigger

Output trigger indicating that a node, but no field in the input scene graph has changed.

Hidden Fields

fieldValueMaxLength

name: fieldValueMaxLength, type: Integer, default: 80