vtkbone
vtkboneReorderDataArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright 2010-2016, Numerics88 Solutions Ltd.
4  http://www.numerics88.com/
5 
6  Copyright (c) Eric Nodwell and Steven K. Boyd
7  See Copyright.txt for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 =========================================================================*/
13 
36 #ifndef __vtkboneReorderDataArray_h
37 #define __vtkboneReorderDataArray_h
38 
39 #include "vtkObject.h"
40 #include "vtkboneWin32Header.h"
41 #include "vtkSetGet.h"
42 
43 // Forward declarations
44 class vtkDataArray;
45 class vtkIdList;
46 
48 {
49 public:
50  static vtkboneReorderDataArray* New();
51  vtkTypeMacro(vtkboneReorderDataArray, vtkObject);
52 
56  static int Reorder(vtkDataArray* A, vtkIdList* permutation);
57 
59 
62  static int GenerateClosedLoopsList(vtkIdList* closedLoopList,
63  vtkIdList* permutation);
65 
67 
71  static int Reorder(vtkDataArray* A,
72  vtkIdList* permutation,
73  vtkIdList* closedLoopList);
75 
76 protected:
79 
80 private:
81  vtkboneReorderDataArray(const vtkboneReorderDataArray&); // Not implemented.
82  void operator=(const vtkboneReorderDataArray&); // Not implemented.
83 };
84 
85 #endif
provides methods for reordering an array in place.
#define VTKBONE_EXPORT
static vtkObject * New()
void operator=(const vtkObjectBase &)