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¶
This module provides a manual editor for rigid registrations.
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 which allows to reset 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 anywhere 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
¶ Draw the widget when set.
see also SoView2DExtension.drawingOn
Editing On¶
-
name:
editingOn
, type:
Bool
, default:
TRUE
¶ Must be on to allow editing of the transformation.
see also SoView2DExtension.editingOn
Button1¶
-
name:
button1
, type:
Enum
, default:
PRESSED
¶ Set the default mouse button configuration.
see also SoView2DExtension.button1
Button2¶
-
name:
button2
, type:
Enum
, default:
IGNORED
¶ Set the default mouse button configuration.
see also SoView2DExtension.button2
Button3¶
-
name:
button3
, type:
Enum
, default:
IGNORED
¶ Set the default mouse button configuration.
see also SoView2DExtension.button3
Shift¶
-
name:
shift
, type:
Enum
, default:
IGNORED
¶ Set the default mouse button configuration.
see also SoView2DExtension.shift
Control¶
-
name:
control
, type:
Enum
, default:
IGNORED
¶ Set the default mouse button configuration.
see also SoView2DExtension.control
Alt¶
-
name:
alt
, type:
Enum
, default:
IGNORED
¶ Set the default mouse button configuration.
see also SoView2DExtension.alt
Matrix¶
-
name:
outputMatrix
, type:
Matrix
, persistent:
no
¶ The current transformation.
This matrix is transposed relative to the normal OpenInventor matrix representation, which is unusual. The used representation is in ML matrix format.
Default¶
Reset¶
-
name:
reset
, type:
Trigger
¶ Restore
Matrix
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
¶ If pressed, the rotation center of the rotation wheel is reset to the middle of the image.
Wheel¶
-
name:
resolvedWheelImageFile
, type:
String
, persistent:
no
¶ Set 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
¶ Set 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
¶ Give the radius of the region around the rotation center that will be used to drag the rotation center.
This size is relative to the size of
wheelImageFile
.
Wheel (minimum)¶
-
name:
minRelativeWheelRadius
, type:
Float
, default:
0.80000001
¶ Give the minimum radius of the region around the rotation center that will be used to rotate the transformation.
This size is relative to the size of
wheelImageFile
.
Wheel (maximum)¶
-
name:
maxRelativeWheelRadius
, type:
Float
, default:
1
¶ Give the maximum radius of the region around the rotation center that will be 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
¶ Gives the color of the wheel/center spot when not active.
Highlight¶
-
name:
highlightColor
, type:
Color
, default:
1 1 1
¶ Gives the active color of the wheel/center spot.
Shadow¶
-
name:
shadowColor
, type:
Color
, default:
0 0 0
¶ Gives 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
¶ Set the fraction of the viewer size the wheel should normally have.