SoView2DOverlay¶
-
InventorModule
¶ genre View2D
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoView2D
definition view2d.def see also SoView2D
inherits from SoView2DExtension
keywords extension
Purpose¶
The module SoView2DOverlay
blends an 2D image over another one in a 2D viewer.
Note that this module is not intended to work with OrthoView2D
; in this case, use a GVROrthoOverlay
.
Parameter Fields¶
Field Index¶
Alpha Factor : Float |
cursorShape : Enum |
Overlay Name : String |
alt : Enum |
Draw checker tiles : Bool |
Overwrite Current Time Point : Bool |
Apply LUT : Bool |
Drawing On : Bool |
Render On Slab : Bool |
Base Color : Color |
editingOn : Bool |
selectionTolerance : Float |
Blend Mode : Enum |
Filter Mode : Enum |
setEventHandled : Bool |
button1 : Enum |
fixZOn : Bool |
shift : Enum |
button2 : Enum |
ignoreHandledEvents : Bool |
Tile Size : Integer |
button3 : Enum |
Inherit filter mode from SoView2D : Bool |
Timepoint : Integer |
Cache Textures : Bool |
interactionProviderID : String |
Use world coordinates : Bool |
clipToSlice : Bool |
Invert tiles : Bool |
wantsAllEvents : Bool |
color : Color |
Lut Precision : Enum |
wantsKeyEvents : Bool |
control : Enum |
maskValid : Bool |
wantsMouseWheelEvents : Bool |
createNewMode : Bool |
maxTimePoint : Integer |
|
createNewModeRequest : Trigger |
needsValidVoxel : Bool |
Visible Fields¶
Drawing On¶
-
name:
drawingOn
, type:
Bool
, default:
TRUE
¶ If checked, the module renders its input image over another one.
see also SoView2DExtension.drawingOn
Render On Slab¶
-
name:
renderOnSlab
, type:
Bool
, default:
TRUE
¶ If checked, the module can render the overlay correctly if the viewer is in slab mode (displaying multiple sequential slices). The overlay is then rendered separately on each slice within the slab. This happens before all View2D Extensions with
Render On Slab
set to FALSE are rendered.
Overlay Name¶
-
name:
overlayName
, type:
String
¶ If a name is given to the overlay, it will be used by a
SoView2DShaderOverlay
module that is located to the right of this overlay. If a name is given, but noSoView2DShaderOverlay
follows in the scene graph, the overlays is rendered normally.
Cache Textures¶
-
name:
cacheTextures
, type:
Bool
, default:
TRUE
¶ If checked, the module caches the textures that are used to build the overlay rendering.
Blend Mode¶
-
name:
blendMode
, type:
Enum
, default:
BLEND_ADD
¶ Defines the blend mode for the overlay rendering.
Values:
Title | Name |
---|---|
Replace | BLEND_REPLACE |
Add | BLEND_ADD |
Blend | BLEND_BLEND |
Maximum | BLEND_MAXIMUM |
Minimum | BLEND_MINIMUM |
Reverse Subtract | BLEND_REVERSE_SUBTRACT |
Subtract | BLEND_SUBTRACT |
Premultiplied Blend | BLEND_PREMULTIPLIED_BLEND |
Screen | BLEND_SCREEN |
Overwrite Current Time Point¶
Timepoint¶
-
name:
timePoint
, type:
Integer
, default:
0
, minimum:
0
, maximum:
:field:`maxTimePoint`
¶ Sets the time point explicitly if
Overwrite Current Time Point
is checked.
Filter Mode¶
-
name:
filterMode
, type:
Enum
, default:
FILTER_LINEAR
¶ Defines the filter mode (interpolation mode) of the module for fitting the voxels onto screen pixels.
Values:
Title | Name |
---|---|
Nearest | FILTER_NEAREST |
Linear | FILTER_LINEAR |
Linear Postclass | FILTER_LINEAR_POSTCLASS |
Cubic Postclass | FILTER_CUBIC_POSTCLASS |
Inherit filter mode from SoView2D¶
-
name:
inheritFilterMode
, type:
Bool
, default:
TRUE
¶ If checked, the filter mode (interpolation mode) of the module is inherited from the according parameter in the SoView2D.
Lut Precision¶
-
name:
lutPrecision
, type:
Enum
, default:
VIEW2D_LUT_AUTO
¶ Sets the precision of the LUT.
Values:
Title | Name | Description |
---|---|---|
Auto | VIEW2D_LUT_AUTO | The LUT precision is calculated using the input dataset’s min and max values. The maximum supported LUT precision is 16 bits. If the input dataset is a floating point type, the LUT uses 12 bit. |
8bit | VIEW2D_LUT_8BIT | The LUT precision is 8 bit, regardless of the input data type. |
12bit | VIEW2D_LUT_12BIT | The LUT precision is 12 bit, regardless of the input data type. |
16bit | VIEW2D_LUT_16BIT | The LUT precision is 16 bit, regardless of the input data type. |
Alpha Factor¶
-
name:
alphaFactor
, type:
Float
, default:
1
, minimum:
0
, maximum:
1
¶ Sets the alpha factor for the overlay rendering.
Base Color¶
-
name:
baseColor
, type:
Color
, default:
1 1 1
¶ Sets the base color for the overlay rendering.
Use world coordinates¶
-
name:
useWorldCoords
, type:
Bool
, default:
TRUE
¶ If checked, the overlay image is drawn at world coordinates.
Apply LUT¶
-
name:
applyLut
, type:
Bool
, default:
TRUE
¶ Apply the LUT (lookup table) currently set with
SoMLLUT
in the scene graph on the input image.If no LUT is set on the Inventor scene yet, an internal ramp LUT is used that goes from fully transparent for the minimum voxel value to the alpha value given in
Alpha Factor
for the maximum voxel value, and uses the givenBase Color
.If this flag is off, no LUT is applied. Note that an image with only one channel has no alpha channel, thus the base image will be completely obscured with a
Blend Mode
like BLEND_BLEND.
Draw checker tiles¶
-
name:
isCheckerTiling
, type:
Bool
, default:
FALSE
¶ If checked, checkerboard tilings of the current image are drawn.