VMTK
Loading...
Searching...
No Matches
vtkvmtkBoundaryLabels.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=========================================================================*/
77
78#ifndef __vtkvmtkBoundaryLabels_h
79#define __vtkvmtkBoundaryLabels_h
80
81#include "vtkObject.h"
82#include "vtkvmtkWin32Header.h"
83
84class vtkPolyData;
85class vtkIdList;
86
87class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkBoundaryLabels : public vtkObject
88{
89 public:
90 vtkTypeMacro(vtkvmtkBoundaryLabels,vtkObject);
91 void PrintSelf(std::ostream& os, vtkIndent indent) override;
92
94
98 static const char* GetDefaultBoundaryLabelsArrayName() { return "BoundaryLabels"; }
99
103 static const char* GetDefaultBoundaryPointOrderArrayName() { return "BoundaryPointOrder"; }
104
109 static vtkIdType GetInvalidBoundaryLabel() { return -1; }
110
115 static bool HasBoundaryLabels(vtkPolyData* surface, const char* boundaryLabelsArrayName, const char* boundaryPointOrderArrayName);
116
141 static bool GetBoundaries(vtkPolyData* surface, const char* boundaryLabelsArrayName, const char* boundaryPointOrderArrayName, vtkPolyData* boundaries, vtkIdList* boundaryLabels);
142
157 static bool GetOrExtractBoundaries(vtkPolyData* surface, const char* boundaryLabelsArrayName, const char* boundaryPointOrderArrayName, vtkPolyData* boundaries, vtkIdList* boundaryLabels, vtkObject* warningSource = nullptr);
158
159 protected:
162
163 private:
164 vtkvmtkBoundaryLabels(const vtkvmtkBoundaryLabels&); // Not implemented.
165 void operator=(const vtkvmtkBoundaryLabels&); // Not implemented.
166};
167
168#endif
Boundaries of a surface, stored in the surface's own point data.
static const char * GetDefaultBoundaryLabelsArrayName()
static const char * GetDefaultBoundaryPointOrderArrayName()
static vtkvmtkBoundaryLabels * New()
static vtkIdType GetInvalidBoundaryLabel()
void PrintSelf(std::ostream &os, vtkIndent indent) override