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
vtkMergeTables Class Reference

combine two tables More...

#include <vtkMergeTables.h>

Inherits vtkTableAlgorithm.

Public Types

typedef vtkTableAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkMergeTablesNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetFirstTablePrefix (const char *)
 
virtual char * GetFirstTablePrefix ()
 
virtual void SetSecondTablePrefix (const char *)
 
virtual char * GetSecondTablePrefix ()
 
virtual void SetMergeColumnsByName (bool)
 
virtual bool GetMergeColumnsByName ()
 
virtual void MergeColumnsByNameOn ()
 
virtual void MergeColumnsByNameOff ()
 
virtual void SetPrefixAllButMerged (bool)
 
virtual bool GetPrefixAllButMerged ()
 
virtual void PrefixAllButMergedOn ()
 
virtual void PrefixAllButMergedOff ()
 

Static Public Member Functions

static vtkMergeTablesNew ()
 
static int IsTypeOf (const char *type)
 
static vtkMergeTablesSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkMergeTables ()
 
 ~vtkMergeTables ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

bool MergeColumnsByName
 
bool PrefixAllButMerged
 
char * FirstTablePrefix
 
char * SecondTablePrefix
 

Detailed Description

combine two tables

Combines the columns of two tables into one larger table. The number of rows in the resulting table is the sum of the number of rows in each of the input tables. The number of columns in the output is generally the sum of the number of columns in each input table, except in the case where column names are duplicated in both tables. In this case, if MergeColumnsByName is on (the default), the two columns will be merged into a single column of the same name. If MergeColumnsByName is off, both columns will exist in the output. You may set the FirstTablePrefix and SecondTablePrefix to define how the columns named are modified. One of these prefixes may be the empty string, but they must be different.

Tests:
vtkMergeTables (Tests)

Definition at line 47 of file vtkMergeTables.h.

Member Typedef Documentation

typedef vtkTableAlgorithm vtkMergeTables::Superclass

Definition at line 51 of file vtkMergeTables.h.

Constructor & Destructor Documentation

vtkMergeTables::vtkMergeTables ( )
protected
vtkMergeTables::~vtkMergeTables ( )
protected

Member Function Documentation

static vtkMergeTables* vtkMergeTables::New ( )
static
static int vtkMergeTables::IsTypeOf ( const char *  type)
static
virtual int vtkMergeTables::IsA ( const char *  type)
virtual
static vtkMergeTables* vtkMergeTables::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkMergeTables::NewInstanceInternal ( ) const
protectedvirtual
vtkMergeTables* vtkMergeTables::NewInstance ( ) const
void vtkMergeTables::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkMergeTables::SetFirstTablePrefix ( const char *  )
virtual

The prefix to give to same-named fields from the first table. Default is "Table1.".

virtual char* vtkMergeTables::GetFirstTablePrefix ( )
virtual

The prefix to give to same-named fields from the first table. Default is "Table1.".

virtual void vtkMergeTables::SetSecondTablePrefix ( const char *  )
virtual

The prefix to give to same-named fields from the second table. Default is "Table2.".

virtual char* vtkMergeTables::GetSecondTablePrefix ( )
virtual

The prefix to give to same-named fields from the second table. Default is "Table2.".

virtual void vtkMergeTables::SetMergeColumnsByName ( bool  )
virtual

If on, merges columns with the same name. If off, keeps both columns, but calls one FirstTablePrefix + name, and the other SecondTablePrefix + name. Default is on.

virtual bool vtkMergeTables::GetMergeColumnsByName ( )
virtual

If on, merges columns with the same name. If off, keeps both columns, but calls one FirstTablePrefix + name, and the other SecondTablePrefix + name. Default is on.

virtual void vtkMergeTables::MergeColumnsByNameOn ( )
virtual

If on, merges columns with the same name. If off, keeps both columns, but calls one FirstTablePrefix + name, and the other SecondTablePrefix + name. Default is on.

virtual void vtkMergeTables::MergeColumnsByNameOff ( )
virtual

If on, merges columns with the same name. If off, keeps both columns, but calls one FirstTablePrefix + name, and the other SecondTablePrefix + name. Default is on.

virtual void vtkMergeTables::SetPrefixAllButMerged ( bool  )
virtual

If on, all columns will have prefixes except merged columns. If off, only unmerged columns with the same name will have prefixes. Default is off.

virtual bool vtkMergeTables::GetPrefixAllButMerged ( )
virtual

If on, all columns will have prefixes except merged columns. If off, only unmerged columns with the same name will have prefixes. Default is off.

virtual void vtkMergeTables::PrefixAllButMergedOn ( )
virtual

If on, all columns will have prefixes except merged columns. If off, only unmerged columns with the same name will have prefixes. Default is off.

virtual void vtkMergeTables::PrefixAllButMergedOff ( )
virtual

If on, all columns will have prefixes except merged columns. If off, only unmerged columns with the same name will have prefixes. Default is off.

int vtkMergeTables::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

Member Data Documentation

bool vtkMergeTables::MergeColumnsByName
protected

Definition at line 90 of file vtkMergeTables.h.

bool vtkMergeTables::PrefixAllButMerged
protected

Definition at line 91 of file vtkMergeTables.h.

char* vtkMergeTables::FirstTablePrefix
protected

Definition at line 92 of file vtkMergeTables.h.

char* vtkMergeTables::SecondTablePrefix
protected

Definition at line 93 of file vtkMergeTables.h.


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