WEMInteract

MacroModule
genre WEMInteraction
status stable
author Bart De Dobbelaer
package MeVisLab/Standard
definition WEMInteract.def
keywords Interact

Purpose

The WEMInteract module allows to draw a contour onto the screen. The portion of the input WEM that falls into this contour is tagged. The input WEM is then split into two halves.

Usage

Add the Inventor output to a SoExaminerViewer and draw a contour.

Details

The contour is drawn in screen coordinates. The input WEM is projected onto the screen. All nodes that fall inside the contour are tagged. Afterwards the WEM is divided in two halves based on this tagging.

Windows

Default Panel

../../../Modules/Macros/WEMInteract/mhelp/Images/Screenshots/WEMInteract._default.png

Input Fields

inWEM

name: inWEM, type: MLBase

The input WEM.

Output Fields

innerWEM

name: innerWEM, type: MLBase

The part of the input WEM inside the drawn contour.

outerWEM

name: outerWEM, type: MLBase

The part of the input WEM outside the drawn contour.

self

name: self, type: SoNode

OpenInventor scene for the interaction draw events.

Parameter Fields

Field Index

Apply: Trigger
Auto Apply: Bool
Auto Update: Bool
Clear: Trigger
Generate Edges: Bool
Line Color: Color
status: String
Tag Nodes: Bool

Visible Fields

Apply

name: apply, type: Trigger

If pressed, the module generates a new output.

Auto Apply

name: autoApply, type: Bool, default: TRUE

If checked, the module generates a new output on every parameter change.

Auto Update

name: autoUpdate, type: Bool, default: TRUE

If checked, the module generates a new output of each input change.

Clear

name: clear, type: Trigger

If pressed, the output WEMs of this module are cleared.

Generate Edges

name: generateEdges, type: Bool, default: TRUE

If checked, the module generates edges for the output WEM even if the input WEM does not yield edges.

Line Color

name: lineColor, type: Color, default: 1 0 0

Sets the color of the interactively drawn contour line.

Tag Nodes

name: tagNodes, type: Bool, default: TRUE

If checked, the nodes inside the drawn contour are being tagged, otherwise they are untagged.

Hidden Fields

status

name: status, type: String, default: All is well.