InteractiveRampLUT¶
-
MacroModule
¶ genre View2D
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition viewers.def see also SoView2D
,View2DExtensions
,RampLUT
,SoMouseGrabber
keywords ramp
,lut
,interactive
,mouse
Purpose¶
The module InteractiveRampLUT
combines a RampLUT
module with mouse interaction (performed with SoMouseGrabber
) to achieve an interactively modifiable ramp LUT.
Usage¶
Add this module to your Open Inventor scene before the object where the LUT should be applied to. If required, adapt the mouse button configuration.
Input Fields¶
Output Fields¶
nodeOut¶
-
name:
nodeOut
, type:
SoNode
¶ Connect this to your Open Inventor scene to get the interaction on the LUT and to apply the LUT in one go.
Parameter Fields¶
Field Index¶
alphaCenterRescaled : Double |
centerRescaled : Double |
Shift : Enum |
alphaFactor : Double |
colorFactor : Color |
startColor : Color |
alphaWidthRescaled : Double |
Compute LUT Anew : Trigger |
Synchronize Gray and Alpha : Bool |
Alt : Enum |
Compute LUT on each image change : Bool |
Use Managed Interaction : Bool |
Apply : Bool |
Control : Enum |
Use relative LUT if no input image : Bool |
Button1 : Enum |
Enable : Bool |
Width (width) : Double |
Button2 : Enum |
endColor : Color |
Width (alphaWidth) : Double |
Button3 : Enum |
Max Value : Double |
widthRescaled : Double |
Center (center) : Double |
Min Value : Double |
|
Center (alphaCenter) : Double |
Relative : Bool |
Visible Fields¶
Compute LUT Anew¶
-
name:
computeLUTAnew
, type:
Trigger
¶ When pressed, the LUT is computed anew based on the input image’s DICOM tags.
The DICOM tags used to compute the LUT are: WindowCenter, WindowWidth, SlopeIntercept, and SlopeRescale.
Relative¶
-
name:
relative
, type:
Bool
, default:
TRUE
¶ If checked, the generated LUT is relative, i.e., the index value interval [0..1] is rescaled to the true image value range before applying the LUT. If the LUT is absolute, the image values are used as index values directly without rescaling.
Synchronize Gray and Alpha¶
-
name:
alphaSync
, type:
Bool
, default:
TRUE
¶ If checked, the values for the alpha value ramp always follow the values for the gray value ramp.
Min Value¶
-
name:
imageMinValue
, type:
Double
, persistent:
no
¶ Shows the input image’s minimum value (or 0 if no image is attached).
Max Value¶
-
name:
imageMaxValue
, type:
Double
, persistent:
no
¶ Shows the input image’s maximum value (or 1 if no image is attached).
Center (center)¶
-
name:
center
, type:
Double
, default:
0.5
¶ Sets the center index value of the ramp, either as an absolute image value or relative to [0..1].
Width (width)¶
-
name:
width
, type:
Double
, default:
0.5
¶ Sets the width value of the ramp, either as an absolute image value range or relative to [0..1].
Center (alphaCenter)¶
-
name:
alphaCenter
, type:
Double
, default:
0.5
¶ Sets the center index value of the ramp, either as an absolute image value or relative to [0..1].
Width (alphaWidth)¶
-
name:
alphaWidth
, type:
Double
, default:
0.5
¶ Sets the width value of the ramp, either as an absolute image value range or relative to [0..1].
Enable¶
-
name:
mouseOn
, type:
Bool
, default:
TRUE
¶ If checked, the interactive changing of the ramp LUT by dragging the mouse is enabled.
Button1¶
-
name:
mouseButton1
, type:
Enum
, default:
IGNORED
¶ Defines whether mouse button 1 (left mouse button) must be pressed for dragging.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Button2¶
-
name:
mouseButton2
, type:
Enum
, default:
IGNORED
¶ Defines whether mouse button 2 (middle mouse button) must be pressed for dragging.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Button3¶
-
name:
mouseButton3
, type:
Enum
, default:
PRESSED
¶ Defines whether mouse button 3 (right mouse button) must be pressed for dragging.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Shift¶
-
name:
mouseShift
, type:
Enum
, default:
RELEASED
¶ Defines whether the Shift key must be pressed for dragging.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Control¶
-
name:
mouseCtrl
, type:
Enum
, default:
RELEASED
¶ Defines whether the Control key must be pressed for dragging.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Alt¶
-
name:
mouseAlt
, type:
Enum
, default:
RELEASED
¶ Defines whether the Alt key must be pressed for dragging.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Compute LUT on each image change¶
-
name:
shouldComputeLUTOnEachImageChange
, type:
Bool
, default:
FALSE
¶ If checked, the module computes a default LUT on each update of the input image.
Use relative LUT if no input image¶
-
name:
useRelativeIfNoInputImage
, type:
Bool
, default:
TRUE
¶ If checked, the module uses a relative LUT in the range [0..1] if no input image is attached.
If an input image was attached and the module used an absolute LUT, and the image is detached while this flag is checked, the module uses the same LUT as before, but with relative bounds.
Use Managed Interaction¶
-
name:
useManagedInteraction
, type:
Bool
, default:
FALSE
¶ If checked,
Managed Interaction
is used for the mouse interaction.This is useful if the rest of the interaction in the scene also uses Managed Interaction, since otherwise, there might overlapping interactions.