SoView2DMarkerExample

InventorModule
author MeVis Medical Solutions AG
package MeVisLab/Examples
dll SoView2DMarkerExample
definition SoView2DMarkerExample.def
inherits from SoView2DExtension

Purpose

The module SoView2DMarkerExample shows how to use the ManagedInteractions by implementing a simple editor for XMarkers.

Interaction

Click on an existing marker to select it. Drag the marker to move it on the image slice.

Click anywhere else onto the image to create a new marker. Leave the mouse button pressed and move the mouse to drag the newly created markers.

Press DEL or BACKSPACE to remove the selected marker.

Press ESC to deselect any selected marker.

Windows

Default Panel

../../../Modules/Inventor/SoView2DMarkerExample/mhelp/Images/Screenshots/SoView2DMarkerExample._default.png

Input Fields

inMarkerList

name: inMarkerList, type: MLBase

Output Fields

self

name: self, type: SoNode

Parameter Fields

Visible Fields

Drawing On

name: drawingOn, type: Bool, default: TRUE

If checked, the module draws all attached markers.

see also SoView2DExtension.drawingOn

Editing On

name: editingOn, type: Bool, default: TRUE

If checked, the module allows to create new marker, and to move or remove existing markers.

see also SoView2DExtension.editingOn

Selection Tolerance

name: selectionTolerance, type: Float, default: 4, minimum: 1

Sets the selection distance in pixel.

Button1

name: button1, type: Enum, default: PRESSED

Defines whether to react on mouse button 1.

see also SoView2DExtension.button1

Button2

name: button2, type: Enum, default: IGNORED

Defines whether to react on mouse button 2.

see also SoView2DExtension.button2

Button3

name: button3, type: Enum, default: IGNORED

Defines whether to react on mouse button 3.

see also SoView2DExtension.button3

Shift

name: shift, type: Enum, default: IGNORED

Defines whether to react on modifier key SHIFT.

see also SoView2DExtension.shift

Control

name: control, type: Enum, default: IGNORED

Defines whether to react on modifier key CONTROL.

see also SoView2DExtension.control

Alt

name: alt, type: Enum, default: IGNORED

Defines whether to react on modifier key ALT.

see also SoView2DExtension.alt

Marker Size

name: markerSize, type: Integer, default: 4, minimum: 1

Sets the size of the rendered markers in pixel.

Marker Color

name: markerColor, type: Color, default: 1 1 1

Sets the color of the rendered, non-selected markers.

Selected Marker Color

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

Sets the color of the rendered, selected markers.

Hidden Fields

interactionProviderID

name: interactionProviderID, type: String

see SoView2DExtension.interactionProviderID

maskValid

name: maskValid, type: Bool, persistent: no

fixZOn

name: fixZOn, type: Bool, default: TRUE

color

name: color, type: Color, default: 1 1 1

see SoView2DExtension.color

needsValidVoxel

name: needsValidVoxel, type: Bool, default: TRUE

see SoView2DExtension.needsValidVoxel

wantsAllEvents

name: wantsAllEvents, type: Bool, default: FALSE

wantsKeyEvents

name: wantsKeyEvents, type: Bool, default: FALSE

wantsMouseWheelEvents

name: wantsMouseWheelEvents, type: Bool, default: FALSE

setEventHandled

name: setEventHandled, type: Bool, default: FALSE

see SoView2DExtension.setEventHandled

ignoreHandledEvents

name: ignoreHandledEvents, type: Bool, default: FALSE

see SoView2DExtension.ignoreHandledEvents

createNewMode

name: createNewMode, type: Bool, default: FALSE

see SoView2DExtension.createNewMode

createNewModeRequest

name: createNewModeRequest, type: Trigger

see SoView2DExtension.createNewModeRequest

renderOnSlab

name: renderOnSlab, type: Bool, default: FALSE

clipToSlice

name: clipToSlice, type: Bool, default: FALSE

cursorShape

name: cursorShape, type: Enum, default: UNDEFINED_CURSOR

see SoView2DExtension.cursorShape