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 =========================================================================*/
72 #ifndef vtkAdaptiveSubdivisionFilter_h
73 #define vtkAdaptiveSubdivisionFilter_h
74 
75 #include "vtkFiltersModelingModule.h" // For export macro
76 #include "vtkPolyDataAlgorithm.h"
77 
79 
80 
81 class VTKFILTERSMODELING_EXPORT vtkAdaptiveSubdivisionFilter : public vtkPolyDataAlgorithm
82 {
83 public:
85 
90  void PrintSelf(ostream& os, vtkIndent indent) override;
92 
94 
99  vtkSetClampMacro(MaximumEdgeLength,double,0.000001,VTK_DOUBLE_MAX);
100  vtkGetMacro(MaximumEdgeLength,double);
102 
104 
110  vtkSetClampMacro(MaximumTriangleArea,double,0.000001,VTK_DOUBLE_MAX);
111  vtkGetMacro(MaximumTriangleArea,double);
113 
115 
122  vtkSetClampMacro(MaximumNumberOfTriangles,vtkIdType,1,VTK_ID_MAX);
123  vtkGetMacro(MaximumNumberOfTriangles,vtkIdType);
125 
127 
133  vtkSetClampMacro(MaximumNumberOfPasses,vtkIdType,1,VTK_ID_MAX);
134  vtkGetMacro(MaximumNumberOfPasses,vtkIdType);
136 
138 
143  void SetLocator(vtkIncrementalPointLocator *locator);
144  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
146 
148 
153  vtkSetMacro(OutputPointsPrecision, int);
154  vtkGetMacro(OutputPointsPrecision, int);
156 
161  void CreateDefaultLocator();
162 
166  vtkMTimeType GetMTime() override;
167 
168 protected:
170  ~vtkAdaptiveSubdivisionFilter() override;
171 
178 
180 
181 private:
183  void operator=(const vtkAdaptiveSubdivisionFilter&) = delete;
184 };
185 
186 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
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:347
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:351
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.