Purpose

VTKOutputSelector provides a functionality to determine the number of objects inside of a connected input and to provide a specific selectable one as well as up to the first 15 ones at fixed outputs. This is useful to get access and select elements of composite vtk data structures, i.e. vtkCompositeDataSets, vtkHierarchicalBoxDataSets, vtkMultiBlockDataSets, vtkMultiPieceDataSet, and 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 inside the selected output are connected to the outputs outputvtkObject0, …, outputvtkObject14, respectively (if available). A specifically selected one with Output Object Selector is connected to 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

../../../Modules/ML/MLVTKAdapters/mhelp/Images/Screenshots/VTKOutputSelector._default.png

Input Fields

inputvtkObject

name: inputvtkObject, type: VTKObjectWrapper(MLBase)

Currently vtk classes derived from vtkCompositeDataSet can be handled at input inputvtkObject and their internal objects are passed to the outputs if Output Selector and Output Object Selector are selected appropriately.

Output Fields

outputvtkObject

name: outputvtkObject, type: VTKObjectWrapper(MLBase)

The objects inside the selected output of the input object are connected to the outputs outputvtkObject0, …, outputvtkObject14, respectively (if available), and a specifically selectable one with index Output Object Selector is connected to output outputvtkObject.

outputvtkObject0

name: outputvtkObject0, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject1 (hidden)

name: outputvtkObject1, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject2 (hidden)

name: outputvtkObject2, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject3 (hidden)

name: outputvtkObject3, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject4 (hidden)

name: outputvtkObject4, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject5 (hidden)

name: outputvtkObject5, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject6 (hidden)

name: outputvtkObject6, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject7 (hidden)

name: outputvtkObject7, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject8 (hidden)

name: outputvtkObject8, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject9 (hidden)

name: outputvtkObject9, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject10 (hidden)

name: outputvtkObject10, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject11 (hidden)

name: outputvtkObject11, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject12 (hidden)

name: outputvtkObject12, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject13 (hidden)

name: outputvtkObject13, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

outputvtkObject14 (hidden)

name: outputvtkObject14, type: VTKObjectWrapper(MLBase)

See outputvtkObject.

Parameter Fields

Field Index

Connected Object Class: String Status: String
Data Object Type: String  
Number of fixed outputs: Integer  
Number Of Objects: Integer  
Number Of Outputs: Integer  
Output Object Selector: Integer  
Output Selector: Integer  
Selected Object Class: String  

Visible Fields

Output Selector

name: idx, type: Integer, default: -1, minimum: -1, maximum: :field:`numberOfOutputs`

If < 0 then the connected object itself is selected. If > 0 then the output with index idx is selected if available.

Output Object Selector

name: outputObjectSelector, type: Integer, default: 0, minimum: 0, maximum: :field:`numberOfObjects`

Selector for an object inside the selected output of the input connector - if available (shown at outputvtkObject).

Connected Object Class

name: connectedObjectClass, type: String, persistent: no

Name of the class connected to the input.

Selected Object Class

name: selectedObjectClass, type: String, persistent: no

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

Number of outputs or output ports in case of sources and algorithms.

Data Object Type

name: dataObjectType, type: String, persistent: no

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

Number of objects inside the selected output of the connected input.

Status

name: status, type: String, persistent: no

Some 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

Controls the number of visible output connectors (currently between 0 and 15 outputs). It only influences the visibility of the connector, but not their contents.