Go to the documentation of this file.
69 #ifndef vtkSortDataArray_h
70 #define vtkSortDataArray_h
72 #include "vtkCommonCoreModule.h"
179 void *dataIn,
int dir);
190 static
void GenerateSort1Indices(
int dataType,
void *dataIn,
vtkIdType numKeys,
203 #endif //vtkSortDataArray_h
static void ShuffleArray(vtkIdType *idx, int dataType, vtkIdType numKeys, int numComp, vtkAbstractArray *arr, void *dataIn, int dir)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
provides several methods for sorting VTK arrays.
static void Sort(vtkIdList *keys)
Sorts the given array in ascending order.
static void Sort(vtkAbstractArray *keys, int dir)
static vtkIdType * InitializeSortIndices(vtkIdType numKeys)
The following are general functions which can be used to produce an ordering, and/or sort various typ...
static void GenerateSortIndices(int dataType, void *dataIn, vtkIdType numKeys, int numComp, int k, vtkIdType *idx)
abstract base class for most VTK objects
static vtkSortDataArray * New()
Standard VTK methods for instantiating, managing type, and printing information about this class.
static void Sort(vtkAbstractArray *keys, vtkAbstractArray *values, int dir)
Sorts the given key/value pairs based on the keys (the keys are expected to be 1-tuples,...
static void Sort(vtkAbstractArray *keys)
static void Sort(vtkIdList *keys, int dir)
Sorts the given array in either ascending (dir=0) or descending (dir!=0) order.
static void Sort(vtkAbstractArray *keys, vtkAbstractArray *values)
Sorts the given key/value pairs based on the keys (the keys are expected to be 1-tuples,...
static void SortArrayByComponent(vtkAbstractArray *arr, int k, int dir)
Sorts the given data array using the specified component as a key.
~vtkSortDataArray() override
a simple class to control print indentation
static void Sort(vtkAbstractArray *keys, vtkIdList *values, int dir)
static void Sort(vtkAbstractArray *keys, vtkIdList *values)
list of point or cell ids
static void ShuffleIdList(vtkIdType *idx, vtkIdType sze, vtkIdList *arrayIn, vtkIdType *dataIn, int dir)
static void SortArrayByComponent(vtkAbstractArray *arr, int k)
Sorts the given data array using the specified component as a key.
Abstract superclass for all arrays.