VTK
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 
78 class VTKFILTERSMODELING_EXPORT vtkAdaptiveSubdivisionFilter : public vtkPolyDataAlgorithm
79 {
80 public:
82 
87  void PrintSelf(ostream& os, vtkIndent indent) override;
89 
91 
96  vtkSetClampMacro(MaximumEdgeLength,double,0.000001,VTK_DOUBLE_MAX);
97  vtkGetMacro(MaximumEdgeLength,double);
99 
101 
107  vtkSetClampMacro(MaximumTriangleArea,double,0.000001,VTK_DOUBLE_MAX);
108  vtkGetMacro(MaximumTriangleArea,double);
110 
112 
119  vtkSetClampMacro(MaximumNumberOfTriangles,vtkIdType,1,VTK_ID_MAX);
120  vtkGetMacro(MaximumNumberOfTriangles,vtkIdType);
122 
124 
130  vtkSetClampMacro(MaximumNumberOfPasses,vtkIdType,1,VTK_ID_MAX);
131  vtkGetMacro(MaximumNumberOfPasses,vtkIdType);
133 
135 
140  void SetLocator(vtkIncrementalPointLocator *locator);
141  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
143 
145 
150  vtkSetMacro(OutputPointsPrecision, int);
151  vtkGetMacro(OutputPointsPrecision, int);
153 
158  void CreateDefaultLocator();
159 
163  vtkMTimeType GetMTime() override;
164 
165 protected:
167  ~vtkAdaptiveSubdivisionFilter() override;
168 
175 
177 
178 private:
180  void operator=(const vtkAdaptiveSubdivisionFilter&) = delete;
181 };
182 
183 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:167
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
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:345
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:349
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.