VTK
vtkSmoothErrorMetric.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSmoothErrorMetric.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 =========================================================================*/
34 #ifndef vtkSmoothErrorMetric_h
35 #define vtkSmoothErrorMetric_h
36 
37 #include "vtkCommonDataModelModule.h" // For export macro
39 
40 class vtkGenericDataSet;
41 
42 class VTKCOMMONDATAMODEL_EXPORT vtkSmoothErrorMetric : public vtkGenericSubdivisionErrorMetric
43 {
44 public:
49  static vtkSmoothErrorMetric *New();
50 
52 
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
63  double GetAngleTolerance();
64 
71  void SetAngleTolerance(double value);
72 
91  int RequiresEdgeSubdivision(double *leftPoint, double *midPoint,
92  double *rightPoint, double alpha) override;
93 
107  double GetError(double *leftPoint, double *midPoint, double *rightPoint,
108  double alpha) override;
109 
110 protected:
112  ~vtkSmoothErrorMetric() override;
113 
115  double CosTolerance;
116 
117 private:
119  void operator=(const vtkSmoothErrorMetric&) = delete;
120 };
121 
122 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK type and error macros.
virtual int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
Does the edge need to be subdivided according to the implemented computation? The edge is defined by ...
a simple class to control print indentation
Definition: vtkIndent.h:39
Objects that compute geometry-based error during cell tessellation according to some max angle...
Objects that compute error during cell tessellation.
virtual double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
Return the error at the mid-point.
defines dataset interface
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...