VTK  9.3.20240328
vtkFeatureEdges.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
119 #ifndef vtkFeatureEdges_h
120 #define vtkFeatureEdges_h
121 
122 #include "vtkFiltersCoreModule.h" // For export macro
123 #include "vtkPolyDataAlgorithm.h"
124 
125 VTK_ABI_NAMESPACE_BEGIN
127 
128 class VTKFILTERSCORE_EXPORT vtkFeatureEdges : public vtkPolyDataAlgorithm
129 {
130 public:
132 
136  void PrintSelf(ostream& os, vtkIndent indent) override;
138 
143  static vtkFeatureEdges* New();
144 
146 
153 
155 
158  vtkSetMacro(BoundaryEdges, bool);
159  vtkGetMacro(BoundaryEdges, bool);
160  vtkBooleanMacro(BoundaryEdges, bool);
162 
164 
167  vtkSetMacro(FeatureEdges, bool);
168  vtkGetMacro(FeatureEdges, bool);
169  vtkBooleanMacro(FeatureEdges, bool);
171 
173 
176  vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
177  vtkGetMacro(FeatureAngle, double);
179 
181 
184  vtkSetMacro(NonManifoldEdges, bool);
185  vtkGetMacro(NonManifoldEdges, bool);
186  vtkBooleanMacro(NonManifoldEdges, bool);
188 
190 
194  vtkSetMacro(ManifoldEdges, bool);
195  vtkGetMacro(ManifoldEdges, bool);
196  vtkBooleanMacro(ManifoldEdges, bool);
198 
200 
206  vtkSetMacro(PassLines, bool);
207  vtkGetMacro(PassLines, bool);
208  vtkBooleanMacro(PassLines, bool);
210 
212 
215  vtkSetMacro(Coloring, bool);
216  vtkGetMacro(Coloring, bool);
217  vtkBooleanMacro(Coloring, bool);
219 
221 
231  vtkSetMacro(RemoveGhostInterfaces, bool);
232  vtkGetMacro(RemoveGhostInterfaces, bool);
233  vtkBooleanMacro(RemoveGhostInterfaces, bool);
235 
237 
242  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
244 
249 
253  vtkMTimeType GetMTime() override;
254 
256 
261  vtkSetMacro(OutputPointsPrecision, int);
262  vtkGetMacro(OutputPointsPrecision, int);
264 
265 protected:
267  ~vtkFeatureEdges() override;
268 
269  // Usual data generation method
272 
273  double FeatureAngle;
278  bool PassLines;
279  bool Coloring;
284 
285 private:
286  vtkFeatureEdges(const vtkFeatureEdges&) = delete;
287  void operator=(const vtkFeatureEdges&) = delete;
288 };
289 
290 VTK_ABI_NAMESPACE_END
291 #endif
extract interior, boundary, non-manifold, and/or sharp edges from polygonal data
static vtkFeatureEdges * New()
Construct an instance with feature angle = 30; all types of edges (except manifold edges) are extract...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void ExtractAllEdgeTypesOff()
Methods for turning the extraction of all types of edges on; and turning the extraction of all types ...
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
vtkMTimeType GetMTime() override
Return MTime also considering the locator.
~vtkFeatureEdges() override
void CreateDefaultLocator()
Create default locator.
void ExtractAllEdgeTypesOn()
Methods for turning the extraction of all types of edges on; and turning the extraction of all types ...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIncrementalPointLocator * Locator
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270