SoView2DRigidRegistrationEditor¶
-
InventorModule
¶ genre View2D
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoView2D
definition view2d.def inherits from SoView2DExtension
keywords manual
,rigid
,affine
,registration
,editor
,widget
Purpose¶
The module SoView2DRigidRegistrationEditor
provides a manual editor for a rigid registration.
Usage¶
The Matrix
field always contains the current transformation matrix to apply on the image to register and is updated on-the-fly when interacting.
There is a Reset
button that allows for resetting the transformation.
The Default
field contains the initial transformation, which is also applied when the Reset
button is pressed.
Details¶
This module uses Managed Interaction to handle mouse and keyboard inputs. This means that modules like SoInteractionInfo
or SoInteractionMapping
apply for this module.
Interaction¶
Click on the center spot to move the rotation center.
Click on the wheel around this spot to rotate the transformation and click anywhere else to translate the transformation.
Input Fields¶
inUndoContext¶
-
name:
inUndoContext
, type:
UndoContext(MLBase)
¶ Connect this input to the output of a
UndoManager
module to get undo handling.For accessing this object via scripting see the Scripting Reference:MLUndoContextWrapper
.
Output Fields¶
Parameter Fields¶
Field Index¶
Alt : Enum |
Drawing On : Bool |
Reset Rotation Wheel Center : Trigger |
Button1 : Enum |
Editing On : Bool |
rotationCenterWorld : Vector3 |
Button2 : Enum |
fixZOn : Bool |
selectionTolerance : Float |
Button3 : Enum |
Fraction of viewer size : Float |
setEventHandled : Bool |
Center (resolvedCenterImageFile) : String |
Global Alpha : Float |
Shadow : Color |
Center (rotationRelativeCenterRadius) : Float |
Highlight : Color |
Shift : Enum |
centerImageFile : String |
ignoreHandledEvents : Bool |
singleClicked : Trigger |
clipToSlice : Bool |
Inactive : Color |
wantsAllEvents : Bool |
color : Color |
interactionProviderID : String |
wantsKeyEvents : Bool |
Control : Enum |
maskValid : Bool |
wantsMouseWheelEvents : Bool |
createNewMode : Bool |
Matrix : Matrix |
Wheel : String |
createNewModeRequest : Trigger |
Maximum size in pixels : Float |
Wheel (maximum) : Float |
cursorShape : Enum |
Minimum size in pixels : Float |
Wheel (minimum) : Float |
Default : Matrix |
needsValidVoxel : Bool |
wheelImageFile : String |
doubleClicked : Trigger |
renderOnSlab : Bool |
|
Draw shadow : Bool |
Reset : Trigger |
Visible Fields¶
Drawing On¶
-
name:
drawingOn
, type:
Bool
, default:
TRUE
¶ If checked, the rendering of the widget is enabled.
see also SoView2DExtension.drawingOn
Editing On¶
-
name:
editingOn
, type:
Bool
, default:
TRUE
¶ If checked, the editing of the transformation is enabled.
see also SoView2DExtension.editingOn
Button1¶
-
name:
button1
, type:
Enum
, default:
PRESSED
¶ Defines the default mouse button configuration.
see also SoView2DExtension.button1
Button2¶
-
name:
button2
, type:
Enum
, default:
IGNORED
¶ Defines the default mouse button configuration.
see also SoView2DExtension.button2
Button3¶
-
name:
button3
, type:
Enum
, default:
IGNORED
¶ Defines the default mouse button configuration.
see also SoView2DExtension.button3
Shift¶
-
name:
shift
, type:
Enum
, default:
IGNORED
¶ Defines the default mouse button configuration.
see also SoView2DExtension.shift
Control¶
-
name:
control
, type:
Enum
, default:
IGNORED
¶ Defines the default mouse button configuration.
see also SoView2DExtension.control
Alt¶
-
name:
alt
, type:
Enum
, default:
IGNORED
¶ Defines the default mouse button configuration.
see also SoView2DExtension.alt
Matrix¶
-
name:
outputMatrix
, type:
Matrix
, persistent:
no
¶ Shows the current transformation.
This matrix is transposed relative to the normal Open Inventor matrix representation, which is unusual. The used representation is in ML matrix format.
Default¶
Reset¶
-
name:
reset
, type:
Trigger
¶ When pressed, the
Matrix
is restored to the value ofDefault
. Reset therotationCenterWorld
to the center of the image and clear the undo/redo stack.
Reset Rotation Wheel Center¶
-
name:
resetRotationWheelCenter
, type:
Trigger
¶ When pressed, the rotation center of the rotation wheel is reset to the middle of the image.
Wheel¶
-
name:
resolvedWheelImageFile
, type:
String
, persistent:
no
¶ Sets an image that will be used to display the rotation wheel.
Usually, one should not need to change this image. The image needs to have only one gray channel and one alpha channel.
Center (resolvedCenterImageFile)¶
-
name:
resolvedCenterImageFile
, type:
String
, persistent:
no
¶ Sets an image that will be used to display the rotation center.
Usually, one should not need to change this image. The image needs to have only one gray channel and one alpha channel. Note that the size of this image relative to
wheelImageFile
is retained in the display.
Center (rotationRelativeCenterRadius)¶
-
name:
rotationRelativeCenterRadius
, type:
Float
, default:
0.1
¶ Sets the radius of the region around the rotation center used to drag the rotation center.
This size is relative to the size of
wheelImageFile
.
Wheel (minimum)¶
-
name:
minRelativeWheelRadius
, type:
Float
, default:
0.80000001
¶ Sets the minimum radius of the region around the rotation center used to rotate the transformation.
This size is relative to the size of
wheelImageFile
.
Wheel (maximum)¶
-
name:
maxRelativeWheelRadius
, type:
Float
, default:
1
¶ Sets the maximum radius of the region around the rotation center used to rotate the transformation.
This size is relative to the size of
wheelImageFile
.
Inactive¶
-
name:
inactiveColor
, type:
Color
, default:
0.25 0.25 0.375
¶ Sets the color of the wheel/center spot when not active.
Highlight¶
-
name:
highlightColor
, type:
Color
, default:
1 1 1
¶ Sets the active color of the wheel/center spot.
Shadow¶
-
name:
shadowColor
, type:
Color
, default:
0 0 0
¶ Sets the color of the wheel’s/center spot’s shadow.
Draw shadow¶
Global Alpha¶
-
name:
alpha
, type:
Float
, default:
1
, minimum:
0
, maximum:
1
¶ Sets the global alpha value for all rendering (active and inactive, including shadow).
Fraction of viewer size¶
-
name:
sizeViewerPercentage
, type:
Float
, default:
0.69999999
¶ Sets the fraction of the viewer size the wheel should normally have.