VTK  9.3.1
vtkSortFieldData.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
35 #ifndef vtkSortFieldData_h
36 #define vtkSortFieldData_h
37 
38 #include "vtkCommonDataModelModule.h" // For export macro
39 #include "vtkSortDataArray.h"
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class vtkFieldData;
43 
44 class VTKCOMMONDATAMODEL_EXPORT vtkSortFieldData : public vtkSortDataArray
45 {
46 public:
48 
52  static vtkSortFieldData* New();
54  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
72  static vtkIdType* Sort(vtkFieldData* fd, const char* arrayName, int k, int returnIndices)
73  {
74  return vtkSortFieldData::Sort(fd, arrayName, k, returnIndices, 0);
75  }
76 
97  static vtkIdType* Sort(
98  vtkFieldData* fd, const char* arrayName, int k, int returnIndices, int dir);
99 
100 protected:
102  ~vtkSortFieldData() override;
103 
104 private:
105  vtkSortFieldData(const vtkSortFieldData&) = delete;
106  void operator=(const vtkSortFieldData&) = delete;
107 };
108 
109 VTK_ABI_NAMESPACE_END
110 #endif // vtkSortFieldData_h
int vtkIdType
Definition: vtkType.h:315
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods for instantiating, managing type, and printing information about this class...
a simple class to control print indentation
Definition: vtkIndent.h:28
static void Sort(vtkIdList *keys)
Sorts the given array in ascending order.
provides a method for sorting field data
static vtkSortDataArray * New()
Standard VTK methods for instantiating, managing type, and printing information about this class...
provides several methods for sorting VTK arrays.
static vtkIdType * Sort(vtkFieldData *fd, const char *arrayName, int k, int returnIndices)
Given field data (and derived classes such as point data and cell data), sort all the arrays in the f...
represent and manipulate fields of data
Definition: vtkFieldData.h:51