VMTK
Loading...
Searching...
No Matches
vtkvmtkPolyDataBoundaryLabeler.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=========================================================================*/
87
88#ifndef __vtkvmtkPolyDataBoundaryLabeler_h
89#define __vtkvmtkPolyDataBoundaryLabeler_h
90
91#include "vtkPolyDataAlgorithm.h"
92#include "vtkDoubleArray.h"
93#include "vtkIdList.h"
94#include "vtkPoints.h"
95#include "vtkvmtkWin32Header.h"
96
97#include <vector>
98
99class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkPolyDataBoundaryLabeler : public vtkPolyDataAlgorithm
100{
101 public:
102 vtkTypeMacro(vtkvmtkPolyDataBoundaryLabeler,vtkPolyDataAlgorithm);
103 void PrintSelf(std::ostream& os, vtkIndent indent) override;
104
106
107 //BTX
108 enum
109 {
114 };
115 //ETX
116
118
122 vtkSetStringMacro(BoundaryLabelsArrayName);
123 vtkGetStringMacro(BoundaryLabelsArrayName);
125
127
132 vtkSetStringMacro(BoundaryPointOrderArrayName);
133 vtkGetStringMacro(BoundaryPointOrderArrayName);
135
137
141 vtkGetMacro(LabelingMode,int);
147
149
158 vtkSetMacro(CellEntityIdOffset,vtkIdType);
159 vtkGetMacro(CellEntityIdOffset,vtkIdType);
161
163
179 vtkSetMacro(Annular,bool);
180 vtkGetMacro(Annular,bool);
181 vtkBooleanMacro(Annular,bool);
183
185
192 vtkSetMacro(AnnularOuterBoundaryOffset,vtkIdType);
193 vtkGetMacro(AnnularOuterBoundaryOffset,vtkIdType);
195
197
201 vtkSetObjectMacro(PlaneOrigins,vtkPoints);
202 vtkGetObjectMacro(PlaneOrigins,vtkPoints);
204
206
210 vtkSetObjectMacro(PlaneNormals,vtkDoubleArray);
211 vtkGetObjectMacro(PlaneNormals,vtkDoubleArray);
213
215
223 vtkSetObjectMacro(PlaneLabels,vtkIdList);
224 vtkGetObjectMacro(PlaneLabels,vtkIdList);
226
228
233 vtkSetMacro(MaximumDistanceFromPlane,double);
234 vtkGetMacro(MaximumDistanceFromPlane,double);
236
238
248
252 vtkGetMacro(NumberOfBoundaries,vtkIdType);
253
259 vtkGetObjectMacro(BoundaryLabels,vtkIdList);
260
267 vtkGetObjectMacro(UnmatchedPlaneLabels,vtkIdList);
268
269 protected:
272
273 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
274
277 void LabelAnnularPairs(vtkPolyData* boundaries, std::vector<vtkIdType>& labels);
278
281
286
287 vtkPoints* PlaneOrigins;
288 vtkDoubleArray* PlaneNormals;
289 vtkIdList* PlaneLabels;
292
294 vtkIdList* BoundaryLabels;
296
297 private:
299 void operator=(const vtkvmtkPolyDataBoundaryLabeler&); // Not implemented.
300};
301
302#endif
void PrintSelf(std::ostream &os, vtkIndent indent) override
virtual void SetLabelingMode(int)
void LabelAnnularPairs(vtkPolyData *boundaries, std::vector< vtkIdType > &labels)
static vtkvmtkPolyDataBoundaryLabeler * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override