SoWEMRendererNormals

InventorModule
genre WEMRendering
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoWEM
definition SoWEM.def
see also SoWEMRenderer
keywords visualization, surface

Purpose

The module SoWEMRendererNormals renders node or face normals of a WEM.

Usage

Attach this module to the extension input of a SoWEMRenderer module.

Windows

Default Panel

../../../Modules/Inventor/SoWEM/mhelp/Images/Screenshots/SoWEMRendererNormals._default.png

Input Fields

inLUT

name: inLUT, type: LUTFunction(MLBase)

Output Fields

self

name: self, type: SoNode

Parameter Fields

Field Index

Color Mode: Enum Normal Mode: Enum
Enable Picking: Bool Normal Scale: Float
Enable Rendering: Bool Override Selected PVL: String
General Alpha: Float Use Lighting Mode: Bool
General Color: Color  
Global Alpha: Float  
Lighting Mode: Enum  
Line Width: Float  

Visible Fields

Enable Rendering

name: enableRendering, type: Bool, default: TRUE

If checked, the module renders normals.

Enable Picking

name: enablePicking, type: Bool, default: TRUE

If checked, the primitives rendered by this extensions are pickable.

Color Mode

name: colorMode, type: Enum, default: WEM_COLOR_GENERAL

Defines the color mode.

Values:

Title Name
General WEM_COLOR_GENERAL
Node Colors WEM_COLOR_NODE_COLORS
Lut Values WEM_COLOR_LUT_VALUES
Lut Values Integer WEM_COLOR_LUT_VALUES_INTEGER

Global Alpha

name: globalAlpha, type: Float, default: 1, minimum: 0, maximum: 1

Sets a global alpha value that is multiplied to all existing alpha values.

General Color

name: generalColor, type: Color, default: 1 1 1

Sets a general color for the general color mode.

General Alpha

name: generalAlpha, type: Float, default: 1, minimum: 0, maximum: 1

Sets a general alpha value for the general color mode.

Use Lighting Mode

name: useLightingMode, type: Bool, default: FALSE

If checked, the Lighting Mode is applied.

Lighting Mode

name: lightingMode, type: Enum, default: SoShaderPipelineDefinition::LIGHTING_PER_VERTEX

Defines which lighting mode is applied. See SoShaderPipeline for more information.

Values:

Title Name
OFF SoShaderPipelineDefinition::LIGHTING_OFF
PER FRAGMENT SoShaderPipelineDefinition::LIGHTING_PER_FRAGMENT
PER VERTEX SoShaderPipelineDefinition::LIGHTING_PER_VERTEX

Override Selected PVL

name: overrideSelectedPVL, type: String

Allows to override the used PVL. The module supports per-node PVLs.

Normal Scale

name: normalScale, type: Float, default: 1

Sets a scale value for the length of all normals.

Line Width

name: lineWidth, type: Float, default: 1, minimum: 1

Sets the line width in pixel.

Normal Mode

name: normalMode, type: Enum, default: NODE_NORMALS

Defines the rendering mode for normals.

Values:

Title Name Description
Face Normals FACE_NORMALS

Renders the face normals.

If the color is not ‘General’ the color of the face normal is the average color of the adjacent nodes. Same is true for the alpha value.

Node Normals NODE_NORMALS Renders the node normals.