VTK  9.1.0
vtkSortFieldData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSortFieldData.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
44 #ifndef vtkSortFieldData_h
45 #define vtkSortFieldData_h
46 
47 #include "vtkCommonDataModelModule.h" // For export macro
48 #include "vtkSortDataArray.h"
49 
50 class vtkFieldData;
51 
52 class VTKCOMMONDATAMODEL_EXPORT vtkSortFieldData : public vtkSortDataArray
53 {
54 public:
56 
60  static vtkSortFieldData* New();
62  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
80  static vtkIdType* Sort(vtkFieldData* fd, const char* arrayName, int k, int returnIndices)
81  {
82  return vtkSortFieldData::Sort(fd, arrayName, k, returnIndices, 0);
83  }
84 
105  static vtkIdType* Sort(
106  vtkFieldData* fd, const char* arrayName, int k, int returnIndices, int dir);
107 
108 protected:
110  ~vtkSortFieldData() override;
111 
112 private:
113  vtkSortFieldData(const vtkSortFieldData&) = delete;
114  void operator=(const vtkSortFieldData&) = delete;
115 };
116 
117 #endif // vtkSortFieldData_h
represent and manipulate fields of data
Definition: vtkFieldData.h:55
a simple class to control print indentation
Definition: vtkIndent.h:34
provides several methods for sorting VTK arrays.
provides a method for sorting field data
~vtkSortFieldData() override
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...
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...
static vtkSortFieldData * New()
Standard VTK methods for instantiating, managing type, and printing information about this class.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods for instantiating, managing type, and printing information about this class.
@ dir
Definition: vtkX3D.h:330
int vtkIdType
Definition: vtkType.h:332