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.

Windows

Default Panel

../../../Modules/Inventor/SoView2D/mhelp/Images/Screenshots/SoView2DOverlay._default.png

Input Fields

image

name: image, type: Image

Output Fields

self

name: self, type: SoNode

Parameter Fields

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 no SoView2DShaderOverlay 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

name: overwriteCurrentTimePoint, type: Bool, default: FALSE

If checked, the current time point is not taken from the viewer but from the field Timepoint.

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 given Base 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.

Tile Size

name: checkerTileSize, type: Integer, default: 2, minimum: 2

Sets the size of the individual checker tiles.

Invert tiles

name: areCheckerTilesInverted, type: Bool, default: FALSE

If checked, the drawing of the checker tiles is inverted.

Hidden Fields

interactionProviderID

name: interactionProviderID, type: String

see SoView2DExtension.interactionProviderID

editingOn

name: editingOn, type: Bool, default: TRUE

see SoView2DExtension.editingOn

maskValid

name: maskValid, type: Bool, persistent: no

fixZOn

name: fixZOn, type: Bool, default: TRUE

color

name: color, type: Color, default: 1 1 1

see SoView2DExtension.color

selectionTolerance

name: selectionTolerance, type: Float, default: 4

needsValidVoxel

name: needsValidVoxel, type: Bool, default: TRUE

see SoView2DExtension.needsValidVoxel

button1

name: button1, type: Enum, default: IGNORED

see SoView2DExtension.button1

button2

name: button2, type: Enum, default: IGNORED

see SoView2DExtension.button2

button3

name: button3, type: Enum, default: IGNORED

see SoView2DExtension.button3

shift

name: shift, type: Enum, default: IGNORED

see SoView2DExtension.shift

control

name: control, type: Enum, default: IGNORED

see SoView2DExtension.control

alt

name: alt, type: Enum, default: IGNORED

see SoView2DExtension.alt

wantsAllEvents

name: wantsAllEvents, type: Bool, default: TRUE

wantsKeyEvents

name: wantsKeyEvents, type: Bool, default: TRUE

wantsMouseWheelEvents

name: wantsMouseWheelEvents, type: Bool, default: FALSE

setEventHandled

name: setEventHandled, type: Bool, default: FALSE

see SoView2DExtension.setEventHandled

ignoreHandledEvents

name: ignoreHandledEvents, type: Bool, default: FALSE

see SoView2DExtension.ignoreHandledEvents

createNewMode

name: createNewMode, type: Bool, default: FALSE

see SoView2DExtension.createNewMode

createNewModeRequest

name: createNewModeRequest, type: Trigger

see SoView2DExtension.createNewModeRequest

clipToSlice

name: clipToSlice, type: Bool, default: TRUE

cursorShape

name: cursorShape, type: Enum, default: UNDEFINED_CURSOR

see SoView2DExtension.cursorShape

maxTimePoint

name: maxTimePoint, type: Integer, default: 0