VTKOutputSelector¶
- MLModule¶
genre
author
MeVis Medical Solutions AG
package
dll
definition
see also
keywords
status,input,information,tree,hierarchical,CompositeDataSet,HierarchicalBoxDataSet,MultiBlockDataSet,MultiPieceDataSet,TemporalDataSet
Purpose¶
The module VTKOutputSelector provides the functionality to determine the number of objects in a connected input and to provide a selected object, as well as up to the first 15 objects at fixed outputs.
This can be used for getting access and select elements of composite VTK data structures, e.g., vtkCompositeDataSets, vtkHierarchicalBoxDataSets, vtkMultiBlockDataSets, vtkMultiPieceDataSet, or vtkTemporalDataSets.
Usage¶
Select the output in the field Output Selector.
The value -1 takes the connected object, and values >= 0 select the corresponding output of the connected input object (if there are any).
The objects in the selected output are connected to the outputs outputvtkObject0, …, outputvtkObject14, respectively (if available).
A user-selected output with Output Object Selector is connected to the output outputvtkObject0.
Details¶
The number of outputs is limited to 15. If the object connected to the input contains more objects, they are not accessible.
Windows¶
Default Panel¶
Input Fields¶
inputvtkObject¶
- name: inputvtkObject, type: VTKObjectWrapper(MLBase)¶
VTK classes derived from
vtkCompositeDataSetcan be handled at inputinputvtkObjectand their internal objects are passed to the outputs ifOutput SelectorandOutput Object Selectorare set appropriately.
Output Fields¶
outputvtkObject¶
- name: outputvtkObject, type: VTKObjectWrapper(MLBase)¶
The objects in the selected output of the input object are connected to the outputs
outputvtkObject0, …,outputvtkObject14, respectively (if available).Additionally, a user-selected output with index
Output Object Selectoris connected to the outputoutputvtkObject.
outputvtkObject0¶
- name: outputvtkObject0, type: VTKObjectWrapper(MLBase)¶
See
outputvtkObject.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Output Selector¶
- name: idx, type: Integer, default: -1, minimum: -1, maximum: :field:`numberOfOutputs`¶
Sets how to select an object.
If < 0, then the connected object itself is selected. If >= 0, then the output with index
Output Object Selectoris selected if available.
Output Object Selector¶
- name: outputObjectSelector, type: Integer, default: 0, minimum: 0, maximum: :field:`numberOfObjects`¶
Sets a selector for an object in the selected output of the input connector - if available (shown at
outputvtkObject).
Connected Object Class¶
- name: connectedObjectClass, type: String, persistent: no¶
Sets the name of the class connected to the input.
Selected Object Class¶
- name: selectedObjectClass, type: String, persistent: no¶
Sets the class name of the selected output (with
Output Object Selector) of the VTK object connected to the input.
Number Of Outputs¶
- name: numberOfOutputs, type: Integer, persistent: no¶
Shows the number of outputs or output ports in the case of sources and algorithms.
Data Object Type¶
- name: dataObjectType, type: String, persistent: no¶
Shows the type of selected data object at output ‘outputvtkObject’ or -1 if not available.
0 VTK_POLY_DATA
1 VTK_STRUCTURED_POINTS
2 VTK_STRUCTURED_GRID
3 VTK_RECTILINEAR_GRID
4 VTK_UNSTRUCTURED_GRID
5 VTK_PIECEWISE_FUNCTION
6 VTK_IMAGE_DATA
7 VTK_DATA_OBJECT
8 VTK_DATA_SET
9 VTK_POINT_SET
10 VTK_UNIFORM_GRID
11 VTK_COMPOSITE_DATA_SET
12 VTK_MULTIGROUP_DATA_SET
13 VTK_MULTIBLOCK_DATA_SET
14 VTK_HIERARCHICAL_DATA_SET
15 VTK_HIERARCHICAL_BOX_DATA_SET
16 VTK_GENERIC_DATA_SET
17 VTK_HYPER_OCTREE
18 VTK_TEMPORAL_DATA_SET
19 VTK_TABLE
20 VTK_GRAPH
21 VTK_TREE
22 VTK_SELECTION
23 VTK_DIRECTED_GRAPH
24 VTK_UNDIRECTED_GRAPH
25 VTK_MULTIPIECE_DATA_SET
26 VTK_DIRECTED_ACYCLIC_GRAPH
Number Of Objects¶
- name: numberOfObjects, type: Integer, persistent: no¶
Shows the number of objects in the selected output of the connected input.
Status¶
- name: status, type: String, persistent: no¶
Shows information about the connected input object and whether outputs or objects could be found in it.
Number of fixed outputs¶
- name: addvtkObjectOutputCounter, type: Integer, default: 1, minimum: 0, maximum: 15¶
Sets the number of visible output connectors (between 0 and 15 outputs). It only influences the visibility of the connector, but not their contents.