vtkMergeColumns Class Reference

#include <vtkMergeColumns.h>

Inheritance diagram for vtkMergeColumns:

Inheritance graph
[legend]
Collaboration diagram for vtkMergeColumns:

Collaboration graph
[legend]

List of all members.


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 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 vtkMergeColumnsNew ()
static int IsTypeOf (const char *type)
static vtkMergeColumnsSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkMergeColumns ()
 ~vtkMergeColumns ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

char * MergedColumnName

Member Typedef Documentation

Reimplemented from vtkTableAlgorithm.

Definition at line 50 of file vtkMergeColumns.h.


Constructor & Destructor Documentation

vtkMergeColumns::vtkMergeColumns (  )  [protected]

vtkMergeColumns::~vtkMergeColumns (  )  [protected]


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.

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

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.


Member Data Documentation

Definition at line 63 of file vtkMergeColumns.h.


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

Generated on Mon Sep 27 18:33:58 2010 for VTK by  doxygen 1.5.6