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 | Protected Attributes | List of all members
vtkSparseArrayToTable Class Reference

Converts a sparse array to a vtkTable. More...

#include <vtkSparseArrayToTable.h>

Inherits vtkTableAlgorithm.

Public Types

typedef vtkTableAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkSparseArrayToTableNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual char * GetValueColumn ()
 
virtual void SetValueColumn (const char *)
 

Static Public Member Functions

static vtkSparseArrayToTableNew ()
 
static int IsTypeOf (const char *type)
 
static vtkSparseArrayToTableSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkSparseArrayToTable ()
 
 ~vtkSparseArrayToTable ()
 
int FillInputPortInformation (int, vtkInformation *)
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

char * ValueColumn
 

Detailed Description

Converts a sparse array to a vtkTable.

Converts any sparse array to a vtkTable containing one row for each value stored in the array. The table will contain one column of coordinates for each dimension in the source array, plus one column of array values. A common use-case for vtkSparseArrayToTable would be converting a sparse array into a table suitable for use as an input to vtkTableToGraph.

The coordinate columns in the output table will be named using the dimension labels from the source array, The value column name can be explicitly set using SetValueColumn().

Thanks:
Developed by Timothy M. Shead (tshea.nosp@m.d@sa.nosp@m.ndia..nosp@m.gov) at Sandia National Laboratories.
Tests:
vtkSparseArrayToTable (Tests)

Definition at line 49 of file vtkSparseArrayToTable.h.

Member Typedef Documentation

typedef vtkTableAlgorithm vtkSparseArrayToTable::Superclass

Definition at line 53 of file vtkSparseArrayToTable.h.

Constructor & Destructor Documentation

vtkSparseArrayToTable::vtkSparseArrayToTable ( )
protected
vtkSparseArrayToTable::~vtkSparseArrayToTable ( )
protected

Member Function Documentation

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

Specify the name of the output table column that contains array values. Default: "value"

virtual void vtkSparseArrayToTable::SetValueColumn ( const char *  )
virtual

Specify the name of the output table column that contains array values. Default: "value"

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

Member Data Documentation

char* vtkSparseArrayToTable::ValueColumn
protected

Definition at line 74 of file vtkSparseArrayToTable.h.


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