VTK
|
Converts a sparse array to a vtkTable. More...
#include <vtkSparseArrayToTable.h>
Public Types | |
typedef vtkTableAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkSparseArrayToTable * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual char * | GetValueColumn () |
virtual void | SetValueColumn (const char *) |
Static Public Member Functions | |
static vtkSparseArrayToTable * | New () |
static int | IsTypeOf (const char *type) |
static vtkSparseArrayToTable * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkSparseArrayToTable () | |
~vtkSparseArrayToTable () | |
int | FillInputPortInformation (int, vtkInformation *) |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
char * | ValueColumn |
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().
Definition at line 49 of file vtkSparseArrayToTable.h.
Reimplemented from vtkTableAlgorithm.
Definition at line 53 of file vtkSparseArrayToTable.h.
vtkSparseArrayToTable::vtkSparseArrayToTable | ( | ) | [protected] |
vtkSparseArrayToTable::~vtkSparseArrayToTable | ( | ) | [protected] |
static vtkSparseArrayToTable* vtkSparseArrayToTable::New | ( | ) | [static] |
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.
static vtkSparseArrayToTable* vtkSparseArrayToTable::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
char* vtkSparseArrayToTable::ValueColumn [protected] |
Definition at line 74 of file vtkSparseArrayToTable.h.