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 to render SoView2D extensions to a 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 createNewModeRequest: Trigger needsValidVoxel: Bool
Blend Mode: Enum cursorShape: Enum Overlay Name: String
button1: Enum Drawing On: Bool Render On Slab: Bool
button2: Enum editingOn: 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

Visible Fields

Drawing On

name: drawingOn, type: Bool, default: TRUE

see SoView2DExtension.drawingOn

Render On Slab

name: renderOnSlab, type: Bool, default: TRUE

Selects if rendering on slab is turned on.

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

Selects the filter mode.

Values:

Title Name
Nearest FILTER_NEAREST
Linear Postclass FILTER_LINEAR_POSTCLASS

Blend Mode

name: blendMode, type: Enum, default: BLEND_PREMULTIPLIED_BLEND

Selects the blend mode.

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

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