VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkMergeColumns Class Reference

merge two columns into a single column More...

#include <vtkMergeColumns.h>

Inherits vtkTableAlgorithm.

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 vtkObjectBase * NewInstanceInternal () 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

typedef vtkTableAlgorithm vtkMergeColumns::Superclass

Definition at line 51 of file vtkMergeColumns.h.

Constructor & Destructor Documentation

vtkMergeColumns::vtkMergeColumns ( )
protected
vtkMergeColumns::~vtkMergeColumns ( )
protected

Member Function Documentation

static vtkMergeColumns* vtkMergeColumns::New ( )
static
static int vtkMergeColumns::IsTypeOf ( const char *  type)
static
virtual int vtkMergeColumns::IsA ( const char *  type)
virtual
static vtkMergeColumns* vtkMergeColumns::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkMergeColumns::NewInstanceInternal ( ) const
protectedvirtual
vtkMergeColumns* vtkMergeColumns::NewInstance ( ) const
void vtkMergeColumns::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
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 *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

Member Data Documentation

char* vtkMergeColumns::MergedColumnName
protected

Definition at line 64 of file vtkMergeColumns.h.


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