Section: Visualization Toolkit Infovis Classes
SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_ROWS, "col1")
and
SetInputArrayToProcess(1, 0, 0, vtkDataObject::FIELD_ASSOCIATION_ROWS, "col2")
where "col1" and "col2" are the names of the columns to merge. The user may also specify the name of the merged column. The arrays must be of the same type. If the arrays are numeric, the values are summed in the merged column. If the arrays are strings, the values are concatenated. The strings are separated by a space if they are both nonempty.
To create an instance of class vtkMergeColumns, simply invoke its constructor as follows
obj = vtkMergeColumns
obj
is an instance of the vtkMergeColumns class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkMergeColumns = obj.NewInstance ()
vtkMergeColumns = obj.SafeDownCast (vtkObject o)
obj.SetMergedColumnName (string )
- The name to give the merged column created by this filter.
string = obj.GetMergedColumnName ()
- The name to give the merged column created by this filter.