SoMLTexture2

InventorModule
genre Visualization
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoUtils
definition utils.def
see also SoTexture2, SoMLSampler2D, SoMLSampler3D, SoShaderProgram

Purpose

The module SoMLTexture2 binds a connected ML image to a texture.

Usage

Connect the image to the modules input and the module itself to the scene using the texture.

Details

The module is derived from the SoTexture2 node and uses its SoSFImage-field to apply the read ML-image.

It can only process 8-bit data.

Windows

Default Panel

../../../Modules/Inventor/SoUtils/mhelp/Images/Screenshots/SoMLTexture2._default.png

Input Fields

mlImage

name: mlImage, type: Image

Output Fields

self

name: self, type: SoNode

Parameter Fields

Field Index

Blend Color: Color
filename: String
image: String
Model: Enum
Wrap S: Enum
Wrap T: Enum

Visible Fields

Wrap S

name: wrapS, type: Enum, default: REPEAT

Defines how the texture should be wrapped horizontally.

Values:

Title Name
Repeat REPEAT
Clamp CLAMP

Wrap T

name: wrapT, type: Enum, default: REPEAT

Defines how the texture should be wrapped vertically.

Values:

Title Name
Repeat REPEAT
Clamp CLAMP

Model

name: model, type: Enum, default: MODULATE

Defines how the texture is ‘merged’ with the polygon primitives it is applied to.

Values:

Title Name
Modulate MODULATE
Decal DECAL
Blend BLEND

Blend Color

name: blendColor, type: Color, default: 0 0 0

Sets a blend color.

Hidden Fields

filename

name: filename, type: String, persistent: no

image

name: image, type: String, persistent: no