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.
Parameter Fields¶
Field Index¶
Alt : Enum |
cursorShape : Enum |
needsValidVoxel : Bool |
Button1 : Enum |
Drawing On : Bool |
renderOnSlab : Bool |
Button2 : Enum |
Editing On : Bool |
Selected Marker Color : Color |
Button3 : Enum |
fixZOn : Bool |
Selection Tolerance : Float |
clipToSlice : Bool |
ignoreHandledEvents : Bool |
setEventHandled : Bool |
color : Color |
interactionProviderID : String |
Shift : Enum |
Control : Enum |
Marker Color : Color |
wantsAllEvents : Bool |
createNewMode : Bool |
Marker Size : Integer |
wantsKeyEvents : Bool |
createNewModeRequest : Trigger |
maskValid : Bool |
wantsMouseWheelEvents : Bool |
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.