VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkTableToArray Class Reference

converts a vtkTable to a matrix. More...

#include <vtkTableToArray.h>

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

List of all members.

Public Types

typedef vtkArrayDataAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkTableToArrayNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void ClearColumns ()
void AddColumn (const char *name)
void AddColumn (vtkIdType index)
void AddAllColumns ()

Static Public Member Functions

static vtkTableToArrayNew ()
static int IsTypeOf (const char *type)
static vtkTableToArraySafeDownCast (vtkObjectBase *o)

Protected Member Functions

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

Detailed Description

converts a vtkTable to a matrix.

Converts a vtkTable into a dense matrix. Use AddColumn() to designate one-to-many table columns that will become columns in the output matrix.a

Using AddColumn() it is possible to duplicate / reorder columns in arbitrary ways.

Warning:
Only produces vtkDenseArray<double>, regardless of the input table column types.
Thanks:
Developed by Timothy M. Shead (tshea.nosp@m.d@sa.nosp@m.ndia..nosp@m.gov) at Sandia National Laboratories.
Examples:
vtkTableToArray (Examples)
Tests:
vtkTableToArray (Tests)

Definition at line 52 of file vtkTableToArray.h.


Member Typedef Documentation

Reimplemented from vtkArrayDataAlgorithm.

Definition at line 56 of file vtkTableToArray.h.


Constructor & Destructor Documentation


Member Function Documentation

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

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

Reimplemented from vtkArrayDataAlgorithm.

static int vtkTableToArray::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 vtkArrayDataAlgorithm.

virtual int vtkTableToArray::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 vtkArrayDataAlgorithm.

Reimplemented from vtkArrayDataAlgorithm.

virtual vtkObjectBase* vtkTableToArray::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkArrayDataAlgorithm.

Reimplemented from vtkArrayDataAlgorithm.

void vtkTableToArray::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 vtkArrayDataAlgorithm.

Reset the list of input table columns that will be mapped to columns in the output matrix.

void vtkTableToArray::AddColumn ( const char *  name)

Add a column by name to the list of input table columns that will be mapped to columns in the output matrix.

Add a column by index to the list of input table columns that will be mapped to columns in the output matrix.

Add every input table column to the output matrix.

int vtkTableToArray::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkArrayDataAlgorithm.

int vtkTableToArray::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkArrayDataAlgorithm.


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