VTK
|
Creates a category array from a string array. More...
#include <vtkStringToCategory.h>
Inherits vtkDataObjectAlgorithm.
Public Types | |
typedef vtkDataObjectAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkStringToCategory * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetCategoryArrayName (const char *) |
virtual char * | GetCategoryArrayName () |
virtual int | ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
Static Public Member Functions | |
static vtkStringToCategory * | New () |
static int | IsTypeOf (const char *type) |
static vtkStringToCategory * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkStringToCategory () | |
~vtkStringToCategory () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | FillOutputPortInformation (int port, vtkInformation *info) |
virtual int | RequestDataObject (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
Protected Attributes | |
char * | CategoryArrayName |
Creates a category array from a string array.
vtkStringToCategory creates an integer array named "category" based on the values in a string array. You may use this filter to create an array that you may use to color points/cells by the values in a string array. Currently there is not support to color by a string array directly. The category values will range from zero to N-1, where N is the number of distinct strings in the string array. Set the string array to process with SetInputArrayToProcess(0,0,0,...). The array may be in the point, cell, or field data of the data object.
The list of unique strings, in the order they are mapped, can also be retrieved from output port 1. They are in a vtkTable, stored in the "Strings" column as a vtkStringArray.
Definition at line 50 of file vtkStringToCategory.h.
typedef vtkDataObjectAlgorithm vtkStringToCategory::Superclass |
Definition at line 54 of file vtkStringToCategory.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkStringToCategory* vtkStringToCategory::NewInstance | ( | ) | const |
void vtkStringToCategory::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
The name to give to the output vtkIntArray of category values.
|
virtual |
The name to give to the output vtkIntArray of category values.
|
virtual |
This is required to capture REQUEST_DATA_OBJECT requests.
|
protectedvirtual |
Creates the same output type as the input type.
|
protected |
|
protectedvirtual |
|
protected |
Definition at line 88 of file vtkStringToCategory.h.