VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkMergeColumns Class Reference

merge two columns into a single column More...

#include <vtkMergeColumns.h>

Inheritance diagram for vtkMergeColumns:
Inheritance graph
[legend]
Collaboration diagram for vtkMergeColumns:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkTableAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkMergeColumnsNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetMergedColumnName (const char *)
virtual char * GetMergedColumnName ()

Static Public Member Functions

static vtkMergeColumnsNew ()
static int IsTypeOf (const char *type)
static vtkMergeColumnsSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkMergeColumns ()
 ~vtkMergeColumns ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

char * MergedColumnName

Detailed Description

merge two columns into a single column

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_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.

Definition at line 47 of file vtkMergeColumns.h.


Member Typedef Documentation

Reimplemented from vtkTableAlgorithm.

Definition at line 51 of file vtkMergeColumns.h.


Constructor & Destructor Documentation


Member Function Documentation

static vtkMergeColumns* vtkMergeColumns::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

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 vtkTypeMacro 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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTableAlgorithm.

Reimplemented from vtkTableAlgorithm.

virtual vtkObjectBase* vtkMergeColumns::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkTableAlgorithm.

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.


Member Data Documentation

Definition at line 64 of file vtkMergeColumns.h.


The documentation for this class was generated from the following file: