VTK  9.2.6
vtkAdaptiveSubdivisionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAdaptiveSubdivisionFilter.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 =========================================================================*/
72 #ifndef vtkAdaptiveSubdivisionFilter_h
73 #define vtkAdaptiveSubdivisionFilter_h
74 
75 #include "vtkFiltersModelingModule.h" // For export macro
76 #include "vtkPolyDataAlgorithm.h"
77 
79 
80 class VTKFILTERSMODELING_EXPORT vtkAdaptiveSubdivisionFilter : public vtkPolyDataAlgorithm
81 {
82 public:
84 
89  void PrintSelf(ostream& os, vtkIndent indent) override;
91 
93 
98  vtkSetClampMacro(MaximumEdgeLength, double, 0.000001, VTK_DOUBLE_MAX);
99  vtkGetMacro(MaximumEdgeLength, double);
101 
103 
109  vtkSetClampMacro(MaximumTriangleArea, double, 0.000001, VTK_DOUBLE_MAX);
110  vtkGetMacro(MaximumTriangleArea, double);
112 
114 
121  vtkSetClampMacro(MaximumNumberOfTriangles, vtkIdType, 1, VTK_ID_MAX);
122  vtkGetMacro(MaximumNumberOfTriangles, vtkIdType);
124 
126 
132  vtkSetClampMacro(MaximumNumberOfPasses, vtkIdType, 1, VTK_ID_MAX);
133  vtkGetMacro(MaximumNumberOfPasses, vtkIdType);
135 
137 
142  void SetLocator(vtkIncrementalPointLocator* locator);
143  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
145 
147 
152  vtkSetMacro(OutputPointsPrecision, int);
153  vtkGetMacro(OutputPointsPrecision, int);
155 
160  void CreateDefaultLocator();
161 
165  vtkMTimeType GetMTime() override;
166 
167 protected:
169  ~vtkAdaptiveSubdivisionFilter() override;
170 
177 
179 
180 private:
182  void operator=(const vtkAdaptiveSubdivisionFilter&) = delete;
183 };
184 
185 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:332
subdivide triangles based on edge and/or area metrics
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
#define VTK_ID_MAX
Definition: vtkType.h:336
Store zero or more vtkInformation instances.
vtkIncrementalPointLocator * Locator
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.