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

Transpose an input table. More...

#include <vtkTransposeTable.h>

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

List of all members.

Public Types

typedef vtkTableAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkTransposeTableNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual bool GetAddIdColumn ()
virtual void SetAddIdColumn (bool)
virtual void AddIdColumnOn ()
virtual void AddIdColumnOff ()
virtual bool GetUseIdColumn ()
virtual void SetUseIdColumn (bool)
virtual void UseIdColumnOn ()
virtual void UseIdColumnOff ()
virtual char * GetIdColumnName ()
virtual void SetIdColumnName (const char *)

Static Public Member Functions

static vtkTransposeTableNew ()
static int IsTypeOf (const char *type)
static vtkTransposeTableSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkTransposeTable ()
 ~vtkTransposeTable ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

bool AddIdColumn
bool UseIdColumn
char * IdColumnName

Detailed Description

Transpose an input table.

This algorithm allows to transpose a vtkTable as a matrix. Columns become rows and vice versa. A new column can be added to the result table at index 0 to collect the name of the initial columns (when AddIdColumn is true). Such a column can be used to name the columns of the result. Note that columns of the output table will have a variant type is the columns of the initial table are not consistant.

Tests:
vtkTransposeTable (Tests)

Definition at line 38 of file vtkTransposeTable.h.


Member Typedef Documentation

Reimplemented from vtkTableAlgorithm.

Definition at line 42 of file vtkTransposeTable.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkTableAlgorithm.

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

Reimplemented from vtkTableAlgorithm.

Reimplemented from vtkTableAlgorithm.

void vtkTransposeTable::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 bool vtkTransposeTable::GetAddIdColumn ( ) [virtual]

This flag indicates if a column must be inserted at index 0 with the names (ids) of the input columns. Default: true

virtual void vtkTransposeTable::SetAddIdColumn ( bool  ) [virtual]

This flag indicates if a column must be inserted at index 0 with the names (ids) of the input columns. Default: true

virtual void vtkTransposeTable::AddIdColumnOn ( ) [virtual]

This flag indicates if a column must be inserted at index 0 with the names (ids) of the input columns. Default: true

virtual void vtkTransposeTable::AddIdColumnOff ( ) [virtual]

This flag indicates if a column must be inserted at index 0 with the names (ids) of the input columns. Default: true

virtual bool vtkTransposeTable::GetUseIdColumn ( ) [virtual]

This flag indicates if the output column must be named using the names listed in the index 0 column. Default: false

virtual void vtkTransposeTable::SetUseIdColumn ( bool  ) [virtual]

This flag indicates if the output column must be named using the names listed in the index 0 column. Default: false

virtual void vtkTransposeTable::UseIdColumnOn ( ) [virtual]

This flag indicates if the output column must be named using the names listed in the index 0 column. Default: false

virtual void vtkTransposeTable::UseIdColumnOff ( ) [virtual]

This flag indicates if the output column must be named using the names listed in the index 0 column. Default: false

virtual char* vtkTransposeTable::GetIdColumnName ( ) [virtual]

Get/Set the name of the id column added by option AddIdColumn. Default: ColName

virtual void vtkTransposeTable::SetIdColumnName ( const char *  ) [virtual]

Get/Set the name of the id column added by option AddIdColumn. Default: ColName

int vtkTransposeTable::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 76 of file vtkTransposeTable.h.

Definition at line 77 of file vtkTransposeTable.h.

Definition at line 78 of file vtkTransposeTable.h.


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