SoView2DExtensionSampler

InventorModule

genre

View2DExtended

author

MeVis Medical Solutions AG

package

MeVisLab/Standard

dll

SoView2D

definition

SoView2DShader.def

inherits from

SoView2DExtension

keywords

GLSL

Purpose

The SoView2DExtensionSampler module allows for rendering SoView2D extensions to an RGBA texture. This texture can be given a name and can be rendered/accessed by a SoView2DShaderOverlay. A typical use case would be to render a SoView2DScene to a texture using this module and to write a custom SoView2DShaderFunction which modifies the rendering depending on the content of the texture.

Parameter Fields

Field Index

alt: Enum

cursorShape: Enum

needsValidVoxel: Bool

Blend Mode: Enum

Drawing On: Bool

Overlay Name: String

button1: Enum

editingOn: Bool

Render On Slab: Bool

button2: Enum

Enable Multi Sampling: Bool

selectionTolerance: Float

button3: Enum

Filter Mode: Enum

setEventHandled: Bool

clipToSlice: Bool

fixZOn: Bool

shift: Enum

color: Color

ignoreHandledEvents: Bool

wantsAllEvents: Bool

control: Enum

interactionProviderID: String

wantsKeyEvents: Bool

createNewMode: Bool

maskValid: Bool

wantsMouseWheelEvents: Bool

createNewModeRequest: Trigger

Multi Sampling: Integer

Visible Fields

Drawing On

name: drawingOn, type: Bool, default: TRUE

Enables/Disables rendering of the scene below the module to the texture.

see also SoView2DExtension.drawingOn

Render On Slab

name: renderOnSlab, type: Bool, default: TRUE

If checked, the rendering on slab is enabled.

Overlay Name

name: overlayName, type: String, default: texture

Sets the overlay name for usage in SoView2DShaderOverlay.

Filter Mode

name: filterMode, type: Enum, default: FILTER_LINEAR_POSTCLASS

Defines the filter mode that is used when rendering the result texture (e.g. in the SoView2DShaderOverlay)

Values:

Title

Name

​Nearest

​FILTER_NEAREST

​Linear Postclass

​FILTER_LINEAR_POSTCLASS

Blend Mode

name: blendMode, type: Enum, default: BLEND_PREMULTIPLIED_BLEND

Defines the blend mode that is used when rendering the result texture (e.g. in the SoView2DShaderOverlay)

Values:

Title

Name

​Replace

​BLEND_REPLACE

​Add

​BLEND_ADD

​Screen

​BLEND_SCREEN

​Blend

​BLEND_BLEND

​Premultiplied Blend

​BLEND_PREMULTIPLIED_BLEND

​Maximum

​BLEND_MAXIMUM

​Minimum

​BLEND_MINIMUM

​Reverse Subtract

​BLEND_REVERSE_SUBTRACT

​Subtract

​BLEND_SUBTRACT

Enable Multi Sampling

name: enableMultiSampling, type: Bool, default: FALSE

Enabled multisampling (MSAA) using Multi Sampling number of samples. This can improve the rendering quality/anti-aliasing when using a SoView2DScene and normal Inventor rendering below this module.

Multi Sampling

name: multiSampling, type: Integer, default: 8

Number of samples to use if Enable Multi Sampling is enabled.

Hidden Fields

interactionProviderID

name: interactionProviderID, type: String

see SoView2DExtension.interactionProviderID

editingOn

name: editingOn, type: Bool, default: FALSE

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: FALSE

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: FALSE

wantsKeyEvents

name: wantsKeyEvents, type: Bool, default: FALSE

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: FALSE

cursorShape

name: cursorShape, type: Enum, default: UNDEFINED_CURSOR

see SoView2DExtension.cursorShape