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 
143  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
145 
147 
152  vtkSetMacro(OutputPointsPrecision, int);
153  vtkGetMacro(OutputPointsPrecision, int);
155 
161 
165  vtkMTimeType GetMTime() override;
166 
167 protected:
170 
177 
179 
180 private:
182  void operator=(const vtkAdaptiveSubdivisionFilter&) = delete;
183 };
184 
185 #endif
subdivide triangles based on edge and/or area metrics
void CreateDefaultLocator()
Create a default locator.
~vtkAdaptiveSubdivisionFilter() override
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type info, and printing.
vtkMTimeType GetMTime() override
Modified GetMTime because of the dependence on the locator.
vtkIncrementalPointLocator * Locator
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkAdaptiveSubdivisionFilter * New()
Standard methods for instantiation, type info, and printing.
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
int vtkIdType
Definition: vtkType.h:332
#define VTK_ID_MAX
Definition: vtkType.h:336
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165