SoView2DPosition¶
- InventorModule¶
genre
author
package
dll
definition
see also
inherits from
keywords
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.
Windows¶
Default Panel¶
Output Fields¶
self¶
- name: self, type: SoNode¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
Shift¶
- name: shift, type: Enum, default: IGNORED¶
Control¶
- name: control, type: Enum, default: IGNORED¶
Alt¶
- name: alt, type: Enum, default: IGNORED¶
Create mode¶
- name: createNewMode, type: Bool, default: FALSE¶
Request Create¶
- name: createNewModeRequest, type: Trigger¶
When pressed, the module sets a new
World Positionat the current mouse position once the button mask condition is fulfilled.Note that this button must be pressed if multiple
SoView2DPositionmodules are present, or if aSoView2DRectangleorSoView2DMarkerEditoris also used in the same 2D viewer, to determine which module receives the event when clicking on empty space.
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.
Line Width¶
- name: lineWidth, type: Float, default: 1, minimum: 1¶
Sets the line width.
Color Axes¶
- name: colorAxes, type: Bool, default: FALSE¶
If checked, the axes of the crosshair cursor can be colored separately.
Sagittal¶
- name: sagittalColor, type: Color, default: 1 0 0¶
Sets the color for the sagittal axis.
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.
Color Border¶
- name: colorBorder, type: Bool, default: FALSE¶
If checked, a border in the color according to the viewing direction is drawn around the viewer.
Border Width¶
- name: colorBorderWidth, type: Float, default: 2, minimum: 1¶
Sets the width of the border.