VTK
|
combine two tables More...
#include <vtkMergeTables.h>
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.
Definition at line 47 of file vtkMergeTables.h.
Reimplemented from vtkTableAlgorithm.
Definition at line 51 of file vtkMergeTables.h.
vtkMergeTables::vtkMergeTables | ( | ) | [protected] |
vtkMergeTables::~vtkMergeTables | ( | ) | [protected] |
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.
static vtkMergeTables* vtkMergeTables::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkTableAlgorithm.
virtual vtkObjectBase* vtkMergeTables::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkTableAlgorithm.
vtkMergeTables* vtkMergeTables::NewInstance | ( | ) | const |
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.
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.