VMTK
Loading...
Searching...
No Matches
vtkvmtkNeighborhood.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
34
35#ifndef __vtkvmtkNeighborhood_h
36#define __vtkvmtkNeighborhood_h
37
38#include "vtkObject.h"
39#include "vtkvmtkDataSetItem.h"
40//#include "vtkvmtkDifferentialGeometryWin32Header.h"
41#include "vtkvmtkWin32Header.h"
42
43class VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT vtkvmtkNeighborhood : public vtkvmtkDataSetItem
44{
45public:
46
48
54 vtkGetMacro(IsBoundary,bool);
55
60 vtkIdType GetNumberOfPoints() {return this->NPoints;};
61
65 vtkIdType GetPointId(vtkIdType i) {return this->PointIds[i];};
66
71 vtkIdType *GetPointer(vtkIdType i) {return this->PointIds+i;};
72
76 virtual void Build() override = 0;
77
81 virtual void DeepCopy(vtkvmtkItem *src) override;
82
83protected:
86
87 void ResizePointList(vtkIdType ptId, int size);
88
89 vtkIdType NPoints;
90 vtkIdType* PointIds;
92
93private:
94 vtkvmtkNeighborhood(const vtkvmtkNeighborhood&); // Not implemented.
95 void operator=(const vtkvmtkNeighborhood&); // Not implemented.
96};
97
98#endif
99
virtual void DeepCopy(vtkvmtkItem *src) override
vtkIdType * GetPointer(vtkIdType i)
vtkIdType GetPointId(vtkIdType i)
virtual void Build() override=0
void ResizePointList(vtkIdType ptId, int size)