VTK
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
47#ifndef vtkSortFieldData_h
48#define vtkSortFieldData_h
49
50#include "vtkCommonDataModelModule.h" // For export macro
51#include "vtkSortDataArray.h"
52
53class vtkFieldData;
54
55
56class VTKCOMMONDATAMODEL_EXPORT vtkSortFieldData : public vtkSortDataArray
57{
58public:
60
66 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
68
84 static vtkIdType* Sort( vtkFieldData *fd, const char *arrayName,
85 int k, int returnIndices)
86 {return vtkSortFieldData::Sort(fd,arrayName,k,returnIndices,0);}
87
108 static vtkIdType* Sort( vtkFieldData *fd, const char *arrayName,
109 int k, int returnIndices, int dir);
110
111protected:
113 ~vtkSortFieldData() VTK_OVERRIDE;
114
115private:
116 vtkSortFieldData(const vtkSortFieldData &) VTK_DELETE_FUNCTION;
117 void operator=(const vtkSortFieldData &) VTK_DELETE_FUNCTION;
118};
119
120#endif //vtkSortFieldData_h
represent and manipulate fields of data
Definition: vtkFieldData.h:57
a simple class to control print indentation
Definition: vtkIndent.h:40
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
Methods invoked by print to print information about the object including superclasses.
@ dir
Definition: vtkX3D.h:324
int vtkIdType
Definition: vtkType.h:287