VTK
|
#include <vtkGenerateIndexArray.h>
Inherits vtkDataObjectAlgorithm.
Public Types | |
enum | { ROW_DATA = 0, POINT_DATA = 1, CELL_DATA = 2, VERTEX_DATA = 3, EDGE_DATA = 4 } |
typedef vtkDataObjectAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkGenerateIndexArray * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetArrayName (const char *) |
virtual char * | GetArrayName () |
virtual void | SetFieldType (int) |
virtual int | GetFieldType () |
virtual void | SetReferenceArrayName (const char *) |
virtual char * | GetReferenceArrayName () |
virtual void | SetPedigreeID (int) |
virtual int | GetPedigreeID () |
Static Public Member Functions | |
static vtkGenerateIndexArray * | New () |
static int | IsTypeOf (const char *type) |
static vtkGenerateIndexArray * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkGenerateIndexArray () | |
~vtkGenerateIndexArray () | |
virtual int | ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual int | RequestDataObject (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
char * | ArrayName |
int | FieldType |
char * | ReferenceArrayName |
int | PedigreeID |
Generates a new vtkIdTypeArray containing zero-base indices.
vtkGenerateIndexArray operates in one of two distinct "modes". By default, it simply generates an index array containing monotonically-increasing integers in the range [0, N), where N is appropriately sized for the field type that will store the results. This mode is useful for generating a unique ID field for datasets that have none.
The second "mode" uses an existing array from the input data object as a "reference". Distinct values from the reference array are sorted in ascending order, and an integer index in the range [0, N) is assigned to each. The resulting map is used to populate the output index array, mapping each value in the reference array to its corresponding index and storing the result in the output array. This mode is especially useful when generating tensors, since it allows us to "map" from an array with arbitrary contents to an index that can be used as tensor coordinates.
Definition at line 50 of file vtkGenerateIndexArray.h.
typedef vtkDataObjectAlgorithm vtkGenerateIndexArray::Superclass |
Definition at line 55 of file vtkGenerateIndexArray.h.
anonymous enum |
Enumerator | |
---|---|
ROW_DATA | |
POINT_DATA | |
CELL_DATA | |
VERTEX_DATA | |
EDGE_DATA |
Definition at line 84 of file vtkGenerateIndexArray.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkGenerateIndexArray* vtkGenerateIndexArray::NewInstance | ( | ) | const |
void vtkGenerateIndexArray::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Control the output index array name. Default: "index".
|
virtual |
Control the output index array name. Default: "index".
|
virtual |
Control the location where the index array will be stored.
|
virtual |
Control the location where the index array will be stored.
|
virtual |
Specifies an optional reference array for index-generation.
|
virtual |
Specifies an optional reference array for index-generation.
|
virtual |
Specifies whether the index array should be marked as pedigree ids. Default: false.
|
virtual |
Specifies whether the index array should be marked as pedigree ids. Default: false.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
Definition at line 113 of file vtkGenerateIndexArray.h.
|
protected |
Definition at line 114 of file vtkGenerateIndexArray.h.
|
protected |
Definition at line 115 of file vtkGenerateIndexArray.h.
|
protected |
Definition at line 116 of file vtkGenerateIndexArray.h.