WEMToVTKPolyData

MLModule

genre

VTKAdapters

author

MeVis Medical Solutions AG

package

MeVisLab/VTK

dll

WEMVTKAdapters

definition

MLWEMVTKAdapters.def

see also

MLToVTKImage, VTKToMLImage, VTKView, SoVTK, VTKPolyDataToWEM, MLBaseToVTKPolyData, VTKInputInfos

keywords

WEM, VTK, polydata, winged, edge, mesh, convert, conversion, adapter, interface

Purpose

The WEMToVTKPolyData module converts a WEM to a vtkPolyData object.

It is an adapter module between the WEM package and VTK modules in MeVisLab.

Usage

The example network shows two viewers containing surface views of the Bone.tiff example data set. With the WEMImageData, additional scalar values from the image are assigned to the WEM, which are assigned as scalar attributes to the vtkPolyData object.

On the left hand side of the SoExaminerViewer, the vtkPolyData object is rendered as an Open Inventor object with a SoVTK. The right hand side shows the render result from the SoWEMRenderer. The VTKView displays the vtkPolyData object directly as a vtkObject.

Windows

Default Panel

../../../Modules/ML/MLWEMVTKAdapters/mhelp/Images/Screenshots/WEMToVTKPolyData._default.png

Input Fields

inWEM

name: inWEM, type: WEM(MLBase)

The input connector is a Base field for WEM objects (usually provides at outputs of many WEM modules).

For accessing this object via scripting, see the Scripting Reference: MLWEMWrapper.

Output Fields

outputPolyData

name: outputPolyData, type: VTKObjectWrapper(MLBase)

The output is a Base field for a vtkObjectTypeWrapper that passes a vtkPolyData object. It can be used to connect to VTK modules that expect vtkPolyData.

Parameter Fields

Field Index

Apply: Trigger

listenToFinishingNotifications: Bool

Auto Apply: Bool

listenToRepaintNotifications: Bool

autoClear: Bool

listenToSelectionChangedNotifications: Bool

autoUpdate: Bool

Mesh Type: Enum

Convert normals: Bool

PVL Name For Scalars: String

Convert scalars: Bool

Status: String

elapsedTime: Float

isProcessing: Bool

Visible Fields

Auto Apply

name: autoApply, type: Bool, default: TRUE

If checked, then all changes are immediately applied and the output is updated.

Otherwise, Apply must be pressed to activate the settings.

Apply

name: apply, type: Trigger

When pressed, changed parameters are applied and the output object updated.

Mesh Type

name: meshType, type: Enum, default: PolygonMesh

Defines the type of created vtkPolyData.

Values:

Title

Name

Description

Points

Points

The WEM is converted to a set of vtkPoints; surface information is not converted.

Polygon Mesh

PolygonMesh

The WEM is converted to a set of vtkPoint and vtkPolygon.

Convert normals

name: convertNormals, type: Bool, default: TRUE

If checked, then normals from the WEM object are copied to the corresponding vertices of the vtkPolyData object.

Convert scalars

name: convertScalars, type: Bool, default: TRUE

If checked, then for each vertex of the WEM, the first value of the corresponding Primitive Value List (PVL) is set as a scalar value of the corresponding point of the vtkPolyData object.

Since multiple PVLs might be available in the WEM, a specific one can be selected via its name that is given in PVL Name For Scalars. LUT is the default PVL available in a WEM. If the scalar value cannot be determined from the WEM for any reason, then 0 is used instead.

PVL Name For Scalars

name: pvlNameForScalars, type: String, default: LUT

Sets the name of the Primitive Value List (PVL) from which scalar values can be retrieved to be converted to scalar attributes in the vtkPolyData object if Convert scalars is enabled.

Multiple PVLs can be specified separated by commas. For each converted PVL, a vtkFloatArray is added to the pointData of the generated vtkPolyData object. Each vtkFloatArray contains the scalars for the corresponding vertices in the created vtkPolyData object.

Status

name: status, type: String, persistent: no

Shows information about the connected input object.

Hidden Fields

isProcessing

name: isProcessing, type: Bool, persistent: no

elapsedTime

name: elapsedTime, type: Float, persistent: no

autoUpdate

name: autoUpdate, type: Bool, default: TRUE

autoClear

name: autoClear, type: Bool, default: TRUE

listenToFinishingNotifications

name: listenToFinishingNotifications, type: Bool, default: TRUE

listenToRepaintNotifications

name: listenToRepaintNotifications, type: Bool, default: TRUE

listenToSelectionChangedNotifications

name: listenToSelectionChangedNotifications, type: Bool, default: TRUE