VTK
|
#include <vtkGenerateIndexArray.h>
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.
Reimplemented from vtkDataObjectAlgorithm.
Definition at line 55 of file vtkGenerateIndexArray.h.
anonymous enum |
Definition at line 84 of file vtkGenerateIndexArray.h.
vtkGenerateIndexArray::vtkGenerateIndexArray | ( | ) | [protected] |
vtkGenerateIndexArray::~vtkGenerateIndexArray | ( | ) | [protected] |
static vtkGenerateIndexArray* vtkGenerateIndexArray::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkDataObjectAlgorithm.
static int vtkGenerateIndexArray::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 vtkDataObjectAlgorithm.
virtual int vtkGenerateIndexArray::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 vtkDataObjectAlgorithm.
static vtkGenerateIndexArray* vtkGenerateIndexArray::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkDataObjectAlgorithm.
virtual vtkObjectBase* vtkGenerateIndexArray::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkDataObjectAlgorithm.
Reimplemented from vtkDataObjectAlgorithm.
void vtkGenerateIndexArray::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 vtkDataObjectAlgorithm.
virtual void vtkGenerateIndexArray::SetArrayName | ( | const char * | ) | [virtual] |
Control the output index array name. Default: "index".
virtual char* vtkGenerateIndexArray::GetArrayName | ( | ) | [virtual] |
Control the output index array name. Default: "index".
virtual void vtkGenerateIndexArray::SetFieldType | ( | int | ) | [virtual] |
Control the location where the index array will be stored.
virtual int vtkGenerateIndexArray::GetFieldType | ( | ) | [virtual] |
Control the location where the index array will be stored.
virtual void vtkGenerateIndexArray::SetReferenceArrayName | ( | const char * | ) | [virtual] |
Specifies an optional reference array for index-generation.
virtual char* vtkGenerateIndexArray::GetReferenceArrayName | ( | ) | [virtual] |
Specifies an optional reference array for index-generation.
virtual void vtkGenerateIndexArray::SetPedigreeID | ( | int | ) | [virtual] |
Specifies whether the index array should be marked as pedigree ids. Default: false.
virtual int vtkGenerateIndexArray::GetPedigreeID | ( | ) | [virtual] |
Specifies whether the index array should be marked as pedigree ids. Default: false.
virtual int vtkGenerateIndexArray::ProcessRequest | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
see vtkAlgorithm for details
Reimplemented from vtkDataObjectAlgorithm.
virtual int vtkGenerateIndexArray::RequestDataObject | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkDataObjectAlgorithm.
int vtkGenerateIndexArray::RequestData | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
Reimplemented from vtkDataObjectAlgorithm.
char* vtkGenerateIndexArray::ArrayName [protected] |
Definition at line 113 of file vtkGenerateIndexArray.h.
int vtkGenerateIndexArray::FieldType [protected] |
Definition at line 114 of file vtkGenerateIndexArray.h.
char* vtkGenerateIndexArray::ReferenceArrayName [protected] |
Definition at line 115 of file vtkGenerateIndexArray.h.
int vtkGenerateIndexArray::PedigreeID [protected] |
Definition at line 116 of file vtkGenerateIndexArray.h.