MLToVTKArray¶
- MLModule¶
genre
author
MeVis Medical Solutions AG
package
dll
definition
see also
ImageLoad,LocalImage,SoVTK,MLToVTKImage,VTKToMLImage,VTKView,WEMToVTKPolyData,VTKPolyDataToWEM,MLBaseToVTKPolyDatakeywords
convert,loader,memory,source,input,translate,transfer,reformat,cross,interface,adapter
Purpose¶
The module MLToVTKArray offers a simple way to create VTK arrays just by specifying a number of values in a field or by connecting an ML Base object containing point-, vector-, or scalar-like structures.
The number of tuples in the created array results from Element Component Size and from the number of specified values. If the number of specified values is not divisible by Element Component Size, then only the number of tuples is created that can be filled completely with values.
Details¶
The example network shows a MLToVTKArray module creating a vtkDoubleArray from the connected XMarkerListContainer. The array properties can be seen in the array subpanel of the VTKInputInfos module. You can switch the Use input toggle to specify the array with values from Values field alternatively.
Tips¶
With field connections, the field Values can simply be filled with points, vectors, or other numeric values from other modules.
Windows¶
Default Panel¶
Input Fields¶
inputList¶
Output Fields¶
outputArray¶
- name: outputArray, type: VTKObjectWrapper(MLBase), deprecated name: outputAbstractArray¶
The module presents the created
vtkArrayobject as Base object at its output 0, or a NULL Base pointer if the array could not be created successfully (which then is also mentioned with a comment in the status field).
outputDataObject¶
- name: outputDataObject, type: VTKObjectWrapper(MLBase)¶
At output 1, a
vtkDataObjectis provided that contains the generatedvtkArray.It is useful, because many VTK filters expect a
vtkDataObjectcontaining avtkArrayinstead of avtkArrayitself.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
Visible Fields¶
Array Type¶
- name: arrayType, type: Enum, default: Bit¶
Defines the type of array to be set at the output.
All selections but the last one define numeric array types, which also can be composed in tuples.
The last selection, StringLineList, disables the option for input connector usage and for numeric tuple selection - then only the
String Line Valuescan be used for value inputs. All unused input fields are made insensitive in this case.
Values:
Title |
Name |
|---|---|
Bit |
Bit |
Char |
Char |
Double |
Double |
Float |
Float |
Id Type |
IdType |
Int |
Int |
Long |
Long |
Short |
Short |
Signed Char |
SignedChar |
Type Float32 |
TypeFloat32 |
Type Float64 |
TypeFloat64 |
Type Int16 |
TypeInt16 |
Type Int32 |
TypeInt32 |
Type Int64 |
TypeInt64 |
Type Int8 |
TypeInt8 |
Type UInt16 |
TypeUInt16 |
Type UInt32 |
TypeUInt32 |
Type UInt8 |
TypeUInt8 |
Unsigned Char |
UnsignedChar |
Unsigned Int |
UnsignedInt |
Unsigned Long |
UnsignedLong |
Unsigned Short |
UnsignedShort |
String Line List |
StringLineList |
Element Component Size¶
- name: elementComponentSize, type: Integer, default: 1, minimum: 1, maximum: 10¶
Number of components in each tuple.
Values¶
- name: values, type: String¶
All values to be stored in array
Element Component Sizeelements define one tuple.Default is an empty string; this way, no values are specified.
The number of specified values divided by
Element Component Sizeimplicitly specifies the number of tuples in the created array. The division result is rounded down if necessary.
String Line Values¶
- name: stringLineValues, type: String¶
Sets the string values.
Each line defines a string that is inserted as one entry in a
vtkStringArrayif StringLineList is selected in the fieldArray Type.
Use input¶
- name: useInput, type: Bool, default: FALSE¶
If checked, the values to be used for the array are retrieved from the input connector.
Supported are
PointList,VectorList,XMarkerList, andXMarkerListContainervalues; default is off. The number of values retrieved from the list divided byElement Component Sizeimplicitly specifies the number of tuples in the created array. The division result is rounded down if necessary.
Status¶
- name: status, type: String, persistent: no¶
Shows the state of the array at the output, and also problems if the module’s output could not be set correctly.