SoWEMInteract

InventorModule
genre WEMInteraction
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoWEM
definition SoWEM.def
see also SoView2DWEMContour, WEMInteract
keywords surface, interaction

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.

Interaction

Use a SoExaminerViewer to draw a contour. Every new interaction creates a new contour and adjusts the tagging of the input WEM.

Tips

Connect a toggle button from SoKeyGrabber to the Tag Nodes field to interactively allow for tag/untagging of the input WEM as can be seen in the example network.

The projection works incorrectly with a perspective camera, you should use an orthographic camera instead.

Windows

Default Panel

../../../Modules/Inventor/SoWEM/mhelp/Images/Screenshots/SoWEMInteract._default.png

Input Fields

inWEM

name: inWEM, type: WEM(MLBase)

The input WEM.

For accessing this object via scripting see the Scripting Reference: MLWEMWrapper.

Output Fields

outputInnerWEM

name: outputInnerWEM, type: WEM(MLBase)

The WEM inside the drawn contour.

For accessing this object via scripting see the Scripting Reference: MLWEMWrapper.

outputOuterWEM

name: outputOuterWEM, type: WEM(MLBase)

The WEM outside the drawn contour.

For accessing this object via scripting see the Scripting Reference: MLWEMWrapper.

self

name: self, type: SoNode

Open Inventor scene.

Parameter Fields

Field Index

Apply: Trigger pickCulling: Enum
Auto Apply: Bool renderCaching: Enum
Auto Update: Bool renderCulling: Enum
autoClear: Bool status: String
boundingBoxCaching: Enum Tag Nodes: Bool
clear: Trigger  
Generate Edges: Bool  
Hit Points: Vector2List  

Visible Fields

Auto Apply

name: autoApply, type: Bool, default: TRUE

If checked, the module computes on changing any parameter value.

Auto Update

name: autoUpdate, type: Bool, default: TRUE

If checked, the module computes anew on each input change.

Apply

name: apply, type: Trigger

If pressed, the module computes its output anew.

Hit Points

name: hitPoints, type: Vector2List, default: 0 0

A number of x y pairs in screen coordinates can be given for the splitting contour.

Tag Nodes

name: tagNodes, type: Bool, default: TRUE

Sets if the nodes of the WEM that lie inside the drawn contour are being tagged or not.

Generate Edges

name: generateEdges, type: Bool, default: TRUE

If checked, the output WEMs will have edges even though no edge information existed in the input WEM.

Hidden Fields

renderCaching

name: renderCaching, type: Enum, default: OFF

Values:

Title Name
On ON
Off OFF
Auto AUTO

boundingBoxCaching

name: boundingBoxCaching, type: Enum, default: OFF

Values:

Title Name
On ON
Off OFF
Auto AUTO

renderCulling

name: renderCulling, type: Enum, default: AUTO

Values:

Title Name
On ON
Off OFF
Auto AUTO

pickCulling

name: pickCulling, type: Enum, default: OFF

Values:

Title Name
On ON
Off OFF
Auto AUTO

autoClear

name: autoClear, type: Bool, default: TRUE

status

name: status, type: String

clear

name: clear, type: Trigger