VTK  9.2.6
vtkFeatureEdges.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFeatureEdges.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
51 #ifndef vtkFeatureEdges_h
52 #define vtkFeatureEdges_h
53 
54 #include "vtkFiltersCoreModule.h" // For export macro
55 #include "vtkPolyDataAlgorithm.h"
56 
58 
59 class VTKFILTERSCORE_EXPORT vtkFeatureEdges : public vtkPolyDataAlgorithm
60 {
61 public:
63 
67  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
74  static vtkFeatureEdges* New();
75 
77 
84 
86 
89  vtkSetMacro(BoundaryEdges, bool);
90  vtkGetMacro(BoundaryEdges, bool);
91  vtkBooleanMacro(BoundaryEdges, bool);
93 
95 
98  vtkSetMacro(FeatureEdges, bool);
99  vtkGetMacro(FeatureEdges, bool);
100  vtkBooleanMacro(FeatureEdges, bool);
102 
104 
107  vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
108  vtkGetMacro(FeatureAngle, double);
110 
112 
115  vtkSetMacro(NonManifoldEdges, bool);
116  vtkGetMacro(NonManifoldEdges, bool);
117  vtkBooleanMacro(NonManifoldEdges, bool);
119 
121 
125  vtkSetMacro(ManifoldEdges, bool);
126  vtkGetMacro(ManifoldEdges, bool);
127  vtkBooleanMacro(ManifoldEdges, bool);
129 
131 
137  vtkSetMacro(PassLines, bool);
138  vtkGetMacro(PassLines, bool);
139  vtkBooleanMacro(PassLines, bool);
141 
143 
146  vtkSetMacro(Coloring, bool);
147  vtkGetMacro(Coloring, bool);
148  vtkBooleanMacro(Coloring, bool);
150 
152 
162  vtkSetMacro(RemoveGhostInterfaces, bool);
163  vtkGetMacro(RemoveGhostInterfaces, bool);
164  vtkBooleanMacro(RemoveGhostInterfaces, bool);
166 
168 
173  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
175 
180 
184  vtkMTimeType GetMTime() override;
185 
187 
192  vtkSetMacro(OutputPointsPrecision, int);
193  vtkGetMacro(OutputPointsPrecision, int);
195 
196 protected:
198  ~vtkFeatureEdges() override;
199 
200  // Usual data generation method
203 
204  double FeatureAngle;
209  bool PassLines;
210  bool Coloring;
215 
216 private:
217  vtkFeatureEdges(const vtkFeatureEdges&) = delete;
218  void operator=(const vtkFeatureEdges&) = delete;
219 };
220 
221 #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:49
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:287