VTK  9.3.20240425
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
41VTK_ABI_NAMESPACE_BEGIN
42class vtkFieldData;
43
44class VTKCOMMONDATAMODEL_EXPORT vtkSortFieldData : public vtkSortDataArray
45{
46public:
48
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
100protected:
103
104private:
105 vtkSortFieldData(const vtkSortFieldData&) = delete;
106 void operator=(const vtkSortFieldData&) = delete;
107};
108
109VTK_ABI_NAMESPACE_END
110#endif // vtkSortFieldData_h
represent and manipulate fields of data
a simple class to control print indentation
Definition vtkIndent.h:108
provides several methods for sorting VTK arrays.
provides a method for sorting field data
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...
~vtkSortFieldData() override
static vtkSortFieldData * New()
Standard VTK methods for instantiating, managing type, and printing information about this class.
static vtkIdType * Sort(vtkFieldData *fd, const char *arrayName, int k, int returnIndices, int dir)
Given field data (and derived classes such as point data and cell data), sort all the arrays in the f...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods for instantiating, managing type, and printing information about this class.
int vtkIdType
Definition vtkType.h:315