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 | List of all members
vtkTableToArray Class Reference

converts a vtkTable to a matrix. More...

#include <vtkTableToArray.h>

Inherits vtkArrayDataAlgorithm.

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 vtkObjectBase * NewInstanceInternal () 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

typedef vtkArrayDataAlgorithm vtkTableToArray::Superclass

Definition at line 56 of file vtkTableToArray.h.

Constructor & Destructor Documentation

vtkTableToArray::vtkTableToArray ( )
protected
vtkTableToArray::~vtkTableToArray ( )
protected

Member Function Documentation

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

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.

void vtkTableToArray::AddColumn ( vtkIdType  index)

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

void vtkTableToArray::AddAllColumns ( )

Add every input table column to the output matrix.

int vtkTableToArray::FillInputPortInformation ( int  ,
vtkInformation *   
)
protected
int vtkTableToArray::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

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