VMTK
vtkvmtkCapPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkCapPolyData.h,v $
5 Language: C++
6 
7  Copyright (c) Luca Antiga, David Steinman. All rights reserved.
8  See LICENSE file for details.
9 
10  Portions of this code are covered under the VTK copyright.
11  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
12  for details.
13 
14  This software is distributed WITHOUT ANY WARRANTY; without even
15  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  PURPOSE. See the above copyright notices for more information.
17 
18 =========================================================================*/
28 #ifndef __vtkvmtkCapPolyData_h
29 #define __vtkvmtkCapPolyData_h
30 
31 #include "vtkPolyDataAlgorithm.h"
32 #include "vtkPolyData.h"
33 #include "vtkPoints.h"
34 #include "vtkIdList.h"
35 //#include "vtkvmtkComputationalGeometryWin32Header.h"
36 #include "vtkvmtkWin32Header.h"
37 
38 class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkCapPolyData : public vtkPolyDataAlgorithm
39 {
40  public:
41  vtkTypeMacro(vtkvmtkCapPolyData,vtkPolyDataAlgorithm);
42  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43 
44  static vtkvmtkCapPolyData *New();
45 
47 
48  vtkSetObjectMacro(BoundaryIds,vtkIdList);
49  vtkGetObjectMacro(BoundaryIds,vtkIdList);
51 
52  vtkSetStringMacro(CellEntityIdsArrayName);
53  vtkGetStringMacro(CellEntityIdsArrayName);
54 
55  vtkSetMacro(CellEntityIdOffset,int);
56  vtkGetMacro(CellEntityIdOffset,int);
57 
59 
61  vtkSetMacro(Displacement,double);
62  vtkGetMacro(Displacement,double);
64 
66 
68  vtkSetMacro(InPlaneDisplacement,double);
69  vtkGetMacro(InPlaneDisplacement,double);
71 
73 
74  vtkGetObjectMacro(CapCenterIds,vtkIdList);
76 
77  protected:
80 
81  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
82 
83  vtkIdList* BoundaryIds;
86 
87  double Displacement;
89  vtkIdList* CapCenterIds;
90 
91  private:
92  vtkvmtkCapPolyData(const vtkvmtkCapPolyData&); // Not implemented.
93  void operator=(const vtkvmtkCapPolyData&); // Not implemented.
94 };
95 
96 #endif
Close holes in a surface surface by creating a cap made of triangles sharing a common vertex at the b...