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

combine two tables More...

#include <vtkMergeTables.h>

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

List of all members.

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 vtkObjectBaseNewInstanceInternal () 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

Reimplemented from vtkTableAlgorithm.

Definition at line 51 of file vtkMergeTables.h.


Constructor & Destructor Documentation


Member Function Documentation

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

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

Reimplemented from vtkTableAlgorithm.

static int vtkMergeTables::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 vtkMergeTables::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* vtkMergeTables::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkTableAlgorithm.

Reimplemented from vtkTableAlgorithm.

void vtkMergeTables::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 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 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 90 of file vtkMergeTables.h.

Definition at line 91 of file vtkMergeTables.h.

Definition at line 92 of file vtkMergeTables.h.

Definition at line 93 of file vtkMergeTables.h.


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