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¶
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 |