WEMToVTKPolyData¶
- MLModule¶
genre
author
MeVis Medical Solutions AG
package
dll
definition
see also
MLToVTKImage,VTKToMLImage,VTKView,SoVTK,VTKPolyDataToWEM,MLBaseToVTKPolyData,VTKInputInfoskeywords
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¶
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
vtkObjectTypeWrapperthat passes avtkPolyDataobject. It can be used to connect to VTK modules that expectvtkPolyData.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Auto Apply¶
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 |
Polygon Mesh |
PolygonMesh |
The WEM is converted to a set of |
Convert normals¶
- name: convertNormals, type: Bool, default: TRUE¶
If checked, then normals from the WEM object are copied to the corresponding vertices of the
vtkPolyDataobject.
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
vtkPolyDataobject.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
vtkPolyDataobject ifConvert scalarsis enabled.Multiple PVLs can be specified separated by commas. For each converted PVL, a
vtkFloatArrayis added to the pointData of the generatedvtkPolyDataobject. EachvtkFloatArraycontains the scalars for the corresponding vertices in the createdvtkPolyDataobject.
Status¶
- name: status, type: String, persistent: no¶
Shows information about the connected input object.