VTKOutputSelector

MLModule

genre

VTKAdapters

author

MeVis Medical Solutions AG

package

MeVisLab/VTK

dll

MLVTKAdapters

definition

MLVTKAdapters.def

see also

Info, VTKInputInfos, Switch

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

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

Input Fields

inputvtkObject

name: inputvtkObject, type: VTKObjectWrapper(MLBase)

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 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 Selector is connected to the 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`

Sets how to select an object.

If < 0, then the connected object itself is selected. If >= 0, then the output with index Output Object Selector is 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.