VMTK
Loading...
Searching...
No Matches
vtkvmtkSimplifyVoronoiDiagram.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: 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=========================================================================*/
27
28#ifndef __vtkvmtkSimplifyVoronoiDiagram_h
29#define __vtkvmtkSimplifyVoronoiDiagram_h
30
31#include "vtkPolyDataAlgorithm.h"
32#include "vtkIdList.h"
33//#include "vtkvmtkComputationalGeometryWin32Header.h"
34#include "vtkvmtkWin32Header.h"
35
36#define VTK_VMTK_REMOVE_BOUNDARY_POINTS 0
37#define VTK_VMTK_REMOVE_BOUNDARY_CELLS 1
38
39class vtkCellArray;
40class vtkCellTypes;
41class vtkCellLinks;
42
43class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkSimplifyVoronoiDiagram : public vtkPolyDataAlgorithm
44{
45public:
47 vtkTypeMacro(vtkvmtkSimplifyVoronoiDiagram, vtkPolyDataAlgorithm);
48 void PrintSelf(std::ostream& os, vtkIndent indent) override;
49
51
57 vtkSetObjectMacro(UnremovablePointIds,vtkIdList);
58 vtkGetObjectMacro(UnremovablePointIds,vtkIdList);
60
62
66 vtkSetObjectMacro(UnremovableCellIds,vtkIdList);
67 vtkGetObjectMacro(UnremovableCellIds,vtkIdList);
69
71
74 vtkSetMacro(Simplification,int);
75 vtkGetMacro(Simplification,int);
80
81
83
88 vtkSetMacro(IncludeUnremovable,int);
89 vtkGetMacro(IncludeUnremovable,int);
90 vtkBooleanMacro(IncludeUnremovable,int);
92
94
98 vtkSetMacro(OnePassOnly,int);
99 vtkGetMacro(OnePassOnly,int);
100 vtkBooleanMacro(OnePassOnly,int);
102
103protected:
106
107 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
108 vtkIdType IsBoundaryEdge(vtkCellLinks* links, vtkIdType* edge);
109
112
116
117private:
119 void operator=(const vtkvmtkSimplifyVoronoiDiagram&) = delete;
120};
121
122#endif
void PrintSelf(std::ostream &os, vtkIndent indent) override
virtual void SetSimplification(int)
vtkIdType IsBoundaryEdge(vtkCellLinks *links, vtkIdType *edge)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static vtkvmtkSimplifyVoronoiDiagram * New()
#define VTK_VMTK_REMOVE_BOUNDARY_CELLS
#define VTK_VMTK_REMOVE_BOUNDARY_POINTS