49 #ifndef vtkSortDataArray_h
50 #define vtkSortDataArray_h
52 #include "vtkCommonCoreModule.h"
56 VTK_ABI_NAMESPACE_BEGIN
162 static
void GenerateSortIndices(
167 int vtkNotUsed(numComp),
vtkAbstractArray* arr,
void* vtkNotUsed(dataIn),
int dir)
171 static void ShuffleIdList(
183 static
void GenerateSort1Indices(
int dataType,
void* dataIn,
vtkIdType numKeys,
vtkIdType* idx);
200 VTK_ABI_NAMESPACE_END
201 #endif // vtkSortDataArray_h
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, values may have number of components >= 1).
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Abstract superclass for all arrays.
static void Sort(vtkAbstractArray *keys, vtkIdList *values)
static void SortArrayByComponent(vtkAbstractArray *arr, int k)
Sorts the given data array using the specified component as a key.
void Sort(RandomIt bitr, RandomIt eitr, BackToFront< T > &me)
a simple class to control print indentation
list of point or cell ids
static void ShuffleArray(vtkAbstractArray *arr, vtkIdType *idx, int dir)
The following are general functions which can be used to produce an ordering, and/or sort various typ...
static void Sort(vtkAbstractArray *keys)
static void Shuffle1Array(vtkAbstractArray *arr, vtkIdType *idx, int dir)
static void Sort(vtkIdList *keys)
Sorts the given array in ascending order.
provides several methods for sorting VTK arrays.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
#define VTK_DEPRECATED_IN_9_7_0(reason)