VTK  9.3.0
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
30 #ifndef vtkFeatureEdges_h
31 #define vtkFeatureEdges_h
32 
33 #include "vtkFiltersCoreModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
36 VTK_ABI_NAMESPACE_BEGIN
38 
39 class VTKFILTERSCORE_EXPORT vtkFeatureEdges : public vtkPolyDataAlgorithm
40 {
41 public:
43 
47  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
54  static vtkFeatureEdges* New();
55 
57 
64 
66 
69  vtkSetMacro(BoundaryEdges, bool);
70  vtkGetMacro(BoundaryEdges, bool);
71  vtkBooleanMacro(BoundaryEdges, bool);
73 
75 
78  vtkSetMacro(FeatureEdges, bool);
79  vtkGetMacro(FeatureEdges, bool);
80  vtkBooleanMacro(FeatureEdges, bool);
82 
84 
87  vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
88  vtkGetMacro(FeatureAngle, double);
90 
92 
95  vtkSetMacro(NonManifoldEdges, bool);
96  vtkGetMacro(NonManifoldEdges, bool);
97  vtkBooleanMacro(NonManifoldEdges, bool);
99 
101 
105  vtkSetMacro(ManifoldEdges, bool);
106  vtkGetMacro(ManifoldEdges, bool);
107  vtkBooleanMacro(ManifoldEdges, bool);
109 
111 
117  vtkSetMacro(PassLines, bool);
118  vtkGetMacro(PassLines, bool);
119  vtkBooleanMacro(PassLines, bool);
121 
123 
126  vtkSetMacro(Coloring, bool);
127  vtkGetMacro(Coloring, bool);
128  vtkBooleanMacro(Coloring, bool);
130 
132 
142  vtkSetMacro(RemoveGhostInterfaces, bool);
143  vtkGetMacro(RemoveGhostInterfaces, bool);
144  vtkBooleanMacro(RemoveGhostInterfaces, bool);
146 
148 
153  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
155 
160 
164  vtkMTimeType GetMTime() override;
165 
167 
172  vtkSetMacro(OutputPointsPrecision, int);
173  vtkGetMacro(OutputPointsPrecision, int);
175 
176 protected:
178  ~vtkFeatureEdges() override;
179 
180  // Usual data generation method
183 
184  double FeatureAngle;
189  bool PassLines;
190  bool Coloring;
195 
196 private:
197  vtkFeatureEdges(const vtkFeatureEdges&) = delete;
198  void operator=(const vtkFeatureEdges&) = delete;
199 };
200 
201 VTK_ABI_NAMESPACE_END
202 #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:29
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