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

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

#include <vtkSparseArrayToTable.h>

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

List of all members.

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 vtkObjectBaseNewInstanceInternal () 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

Reimplemented from vtkTableAlgorithm.

Definition at line 53 of file vtkSparseArrayToTable.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 vtkSparseArrayToTable::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 vtkSparseArrayToTable::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* vtkSparseArrayToTable::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkTableAlgorithm.

Reimplemented from vtkTableAlgorithm.

void vtkSparseArrayToTable::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 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  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 vtkTableAlgorithm.

int vtkSparseArrayToTable::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 74 of file vtkSparseArrayToTable.h.


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