SoMLSampler2D

InventorModule
genre Shader
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoShader
definition SoShader.def
keywords vertex, fragment, geometry, shader

Purpose

Reads a 2D subimage for a ML image dataset and provides it as a OpenGL shading language sampler (sampler2D). Also writes the SoMLImageElement Open Inventor traversal state element.

Input Fields

image

name: image, type: Image

Output Fields

self

name: self, type: SoNode

Parameter Fields

Field Index

Border Color: Vector4 Start Z: Integer
Enable Border: Bool Use 16Bit Floats: Bool
Mag Filter: Enum Wrap S: Enum
Min Filter: Enum Wrap T: Enum
Name: String  
needsTextureCoordinates: Bool  
Start T: Integer  
Start U: Integer  

Visible Fields

Name

name: name, type: String

Enable Border

name: enableBorder, type: Bool, default: FALSE

Border Color

name: borderColor, type: Vector4, default: 0 0 0 0

Min Filter

name: minFilter, type: Enum, default: LINEAR

Values:

Title Name
Nearest NEAREST
Linear LINEAR
Nearest Mipmap Nearest NEAREST_MIPMAP_NEAREST
Nearest Mipmap Linear NEAREST_MIPMAP_LINEAR
Linear Mipmap Nearest LINEAR_MIPMAP_NEAREST
Linear Mipmap Linear LINEAR_MIPMAP_LINEAR

Mag Filter

name: magFilter, type: Enum, default: LINEAR

Values:

Title Name
Nearest NEAREST
Linear LINEAR
Nearest Mipmap Nearest NEAREST_MIPMAP_NEAREST
Nearest Mipmap Linear NEAREST_MIPMAP_LINEAR
Linear Mipmap Nearest LINEAR_MIPMAP_NEAREST
Linear Mipmap Linear LINEAR_MIPMAP_LINEAR

Wrap S

name: wrapS, type: Enum, default: REPEAT

Values:

Title Name
Repeat REPEAT
Clamp CLAMP
Clamp To Edge CLAMP_TO_EDGE
Clamp To Border CLAMP_TO_BORDER
Mirrored Repeat MIRRORED_REPEAT

Use 16Bit Floats

name: use16BitFloat, type: Bool, default: TRUE

Start T

name: startT, type: Integer, default: 0

Start U

name: startU, type: Integer, default: 0

Wrap T

name: wrapT, type: Enum, default: REPEAT

Values:

Title Name
Repeat REPEAT
Clamp CLAMP
Clamp To Edge CLAMP_TO_EDGE
Clamp To Border CLAMP_TO_BORDER
Mirrored Repeat MIRRORED_REPEAT

Start Z

name: startZ, type: Integer, default: 0

Hidden Fields

needsTextureCoordinates

name: needsTextureCoordinates, type: Bool, default: TRUE