VTK  9.0.1
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 =========================================================================*/
69 #ifndef vtkAdaptiveSubdivisionFilter_h
70 #define vtkAdaptiveSubdivisionFilter_h
71 
72 #include "vtkFiltersModelingModule.h" // For export macro
73 #include "vtkPolyDataAlgorithm.h"
74 
76 
77 class VTKFILTERSMODELING_EXPORT vtkAdaptiveSubdivisionFilter : public vtkPolyDataAlgorithm
78 {
79 public:
81 
86  void PrintSelf(ostream& os, vtkIndent indent) override;
88 
90 
95  vtkSetClampMacro(MaximumEdgeLength, double, 0.000001, VTK_DOUBLE_MAX);
96  vtkGetMacro(MaximumEdgeLength, double);
98 
100 
106  vtkSetClampMacro(MaximumTriangleArea, double, 0.000001, VTK_DOUBLE_MAX);
107  vtkGetMacro(MaximumTriangleArea, double);
109 
111 
118  vtkSetClampMacro(MaximumNumberOfTriangles, vtkIdType, 1, VTK_ID_MAX);
119  vtkGetMacro(MaximumNumberOfTriangles, vtkIdType);
121 
123 
129  vtkSetClampMacro(MaximumNumberOfPasses, vtkIdType, 1, VTK_ID_MAX);
130  vtkGetMacro(MaximumNumberOfPasses, vtkIdType);
132 
134 
139  void SetLocator(vtkIncrementalPointLocator* locator);
140  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
142 
144 
149  vtkSetMacro(OutputPointsPrecision, int);
150  vtkGetMacro(OutputPointsPrecision, int);
152 
157  void CreateDefaultLocator();
158 
162  vtkMTimeType GetMTime() override;
163 
164 protected:
166  ~vtkAdaptiveSubdivisionFilter() override;
167 
174 
176 
177 private:
179  void operator=(const vtkAdaptiveSubdivisionFilter&) = delete;
180 };
181 
182 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
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:338
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:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
#define VTK_ID_MAX
Definition: vtkType.h:342
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.