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
44class vtkDataArray;
45class vtkIdList;
46
47class VTKBONE_EXPORT vtkboneReorderDataArray : public vtkObject
48{
49public:
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
76protected:
79
80private:
81 vtkboneReorderDataArray(const vtkboneReorderDataArray&); // Not implemented.
82 void operator=(const vtkboneReorderDataArray&); // Not implemented.
83};
84
85#endif
void operator=(const vtkObjectBase &)
provides methods for reordering an array in place.
static int Reorder(vtkDataArray *A, vtkIdList *permutation, vtkIdList *closedLoopList)
static int Reorder(vtkDataArray *A, vtkIdList *permutation)
static int GenerateClosedLoopsList(vtkIdList *closedLoopList, vtkIdList *permutation)
static vtkboneReorderDataArray * New()