SoView2DPosition¶
-
InventorModule¶ genre Interactionauthor MeVis Medical Solutions AGpackage MeVisLab/Standarddll SoView2Ddefinition view2d.def see also SoView2Dinherits from SoView2DExtensionkeywords cursor,mouse,draw,extension
Purpose¶
The module SoView2DPosition shows the last clicked position in a 2D viewer.
The position is shown as a cursor for which different models are available.
Parameter Fields¶
Field Index¶
Alt: Enum |
cursorShape: Enum |
Selection Tolerance: Float |
Axial: Color |
doubleClicked: Trigger |
Set to create mode: Bool |
Blending Off Slice: Float |
Draw editing rectangle: Bool |
setEventHandled: Bool |
Blending On Slice: Float |
Drawing On: Bool |
Shift: Enum |
Border Width: Float |
Editing On: Bool |
singleClicked: Trigger |
Button1: Enum |
First Slice World Position: Vector3 |
Size: Float |
Button2: Enum |
fixZOn: Bool |
Size Unit: Enum |
Button3: Enum |
ignoreHandledEvents: Bool |
Spacing: Float |
clipToSlice: Bool |
interactionProviderID: String |
Update On Motion: Bool |
Color: Color |
Line Width: Float |
Update On Press: Bool |
Color Axes: Bool |
linePattern: Integer |
Update On Release: Bool |
Color Border: Bool |
maskValid: Bool |
wantsAllEvents: Bool |
Control: Enum |
Model: Enum |
wantsKeyEvents: Bool |
Cooperative: Bool |
needsValidVoxel: Bool |
wantsMouseWheelEvents: Bool |
Coronal: Color |
renderOnSlab: Bool |
World Position: Vector3 |
Create: Trigger |
Sagittal: Color |
Visible Fields¶
Drawing On¶
-
name:drawingOn, type:Bool, default:TRUE¶ If checked, the module draws a position cursor.
see also SoView2DExtension.drawingOn
Editing On¶
-
name:editingOn, type:Bool, default:TRUE¶ If checked, the cursor can be interactively set.
see also SoView2DExtension.editingOn
Color¶
-
name:color, type:Color, default:1 1 1¶ Sets the color of the cursor.
see also SoView2DExtension.color
Selection Tolerance¶
-
name:selectionTolerance, type:Float, default:4, minimum:2, maximum:40, deprecated name:selectDistance¶ Sets a selection tolerance in pixels.
The selection tolerance determines how far away the mouse cursor needs to be from the position marker to update the position field.
World Position¶
-
name:worldPosition, type:Vector3, default:-1 -1 -1, deprecated name:currentWorldPos¶ Sets and shows the cursor position in world coordinates.
First Slice World Position¶
-
name:firstSliceWorldPosition, type:Vector3, persistent:no¶ Shows a position that is computed by converting the world position to voxel coordinates and converting this voxel position back to world coordinates relative to the first slice of the image.
Model¶
-
name:drawingModel, type:Enum, default:DRAWINGMODEL_CROSSHAIRS¶ Defines the rendered model of the cursor.
Values:
| Title | Name |
|---|---|
| Crosshairs | DRAWINGMODEL_CROSSHAIRS |
| Circle | DRAWINGMODEL_CIRCLE |
| Voxel Rect | DRAWINGMODEL_VOXEL_RECT |
| Ellipse | DRAWINGMODEL_ELLIPSE |
| Crosshairs With Circle | DRAWINGMODEL_CROSSHAIRS_WITH_CIRCLE |
Size Unit¶
-
name:drawingModelSizeUnit, type:Enum, default:SIZEUNIT_VOXEL¶
Values:
| Title | Name |
|---|---|
| Voxel | SIZEUNIT_VOXEL |
| World | SIZEUNIT_WORLD |
| Screen | SIZEUNIT_SCREEN |
Size¶
-
name:drawingModelSize, type:Float, default:-1, minimum:-1¶ Sets the size of the cursor in voxel.
If the cursor is a crosshair cursor and the size is set to -1, the cursor spans the entire slice.
Spacing¶
-
name:crossHairSpacing, type:Float, default:0, minimum:0¶ Sets the spacing of the crosshair cursor from the middle point.
Draw editing rectangle¶
-
name:drawEditingRect, type:Bool, default:TRUE¶ If checked, an editing rectangle is drawn in at the cursor position if in crosshair mode.
Blending On Slice¶
-
name:blendOnto, type:Float, default:1, minimum:0, maximum:1¶ Sets the transparency for position cursors that lie directly on the visible slice.
Blending Off Slice¶
-
name:blendOutside, type:Float, default:0, minimum:0, maximum:1¶ Sets the transparency for position cursors that do not lie directly on the visible slice.
Color Axes¶
-
name:colorAxes, type:Bool, default:FALSE¶ If checked, the axes of the crosshair cursor can be colored separately.
Coronal¶
-
name:coronalColor, type:Color, default:0.172549024224281 0.886274516582489 0.0117647061124444¶ Sets the color for the coronal axis.
Axial¶
-
name:axialColor, type:Color, default:0.00784313771873713 0.952941179275513 0.968627452850342¶ Sets the color for the axial axis.
Update On Press¶
-
name:updateOnPress, type:Bool, default:TRUE¶ If checked, the module updates the cursor position on pressing the defined mouse button.
Update On Motion¶
-
name:updateOnMotion, type:Bool, default:TRUE¶ If checked, the module updates the cursor position on moving the mouse with the defined mouse button held down.
Update On Release¶
-
name:updateOnRelease, type:Bool, default:FALSE¶ If checked, the module updates the cursor position on releasing the defined mouse button.
Cooperative¶
-
name:cooperative, type:Bool, default:FALSE¶ If checked, the module does not evaluate events marked by other modules as being handled.