#include <vtkMergeColumns.h>
vtkMergeColumns replaces two columns in a table with a single column containing data in both columns. The columns are set using
SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_NONE, "col1")
and
SetInputArrayToProcess(1, 0, 0, vtkDataObject::FIELD_ASSOCIATION_NONE, "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.
Definition at line 46 of file vtkMergeColumns.h.
Public Types | |
typedef vtkTableAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetMergedColumnName (const char *) |
virtual char * | GetMergedColumnName () |
Static Public Member Functions | |
static vtkMergeColumns * | New () |
static int | IsTypeOf (const char *type) |
static vtkMergeColumns * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkMergeColumns () | |
~vtkMergeColumns () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
char * | MergedColumnName |
vtkMergeColumns::vtkMergeColumns | ( | ) | [protected] |
vtkMergeColumns::~vtkMergeColumns | ( | ) | [protected] |
static vtkMergeColumns* vtkMergeColumns::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTableAlgorithm.
virtual const char* vtkMergeColumns::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkTableAlgorithm.
static int vtkMergeColumns::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkTableAlgorithm.
virtual int vtkMergeColumns::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkTableAlgorithm.
static vtkMergeColumns* vtkMergeColumns::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkTableAlgorithm.
void vtkMergeColumns::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkTableAlgorithm.
virtual void vtkMergeColumns::SetMergedColumnName | ( | const char * | ) | [virtual] |
The name to give the merged column created by this filter.
virtual char* vtkMergeColumns::GetMergedColumnName | ( | ) | [virtual] |
The name to give the merged column created by this filter.
int vtkMergeColumns::RequestData | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkTableAlgorithm.
char* vtkMergeColumns::MergedColumnName [protected] |
Definition at line 63 of file vtkMergeColumns.h.