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);
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 
144  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
146 
148 
153  vtkSetMacro(OutputPointsPrecision, int);
154  vtkGetMacro(OutputPointsPrecision, int);
156 
162 
167 
168 protected:
171 
178 
180 
181 private:
183  void operator=(const vtkAdaptiveSubdivisionFilter&) VTK_DELETE_FUNCTION;
184 };
185 
186 #endif
subdivide triangles based on edge and/or area metrics
void CreateDefaultLocator()
Create a default locator.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
vtkIncrementalPointLocator * Locator
vtkMTimeType GetMTime()
Modified GetMTime because of the dependence on the locator.
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
#define VTK_ID_MAX
Definition: vtkType.h:291
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163