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 =========================================================================*/
33 #ifndef __vtkSmoothErrorMetric_h
34 #define __vtkSmoothErrorMetric_h
35 
37 
38 class vtkGenericDataSet;
39 
41 {
42 public:
45  static vtkSmoothErrorMetric *New();
46 
48 
50  void PrintSelf(ostream& os, vtkIndent indent);
52 
55  double GetAngleTolerance();
56 
61  void SetAngleTolerance(double value);
62 
64 
77  int RequiresEdgeSubdivision(double *leftPoint, double *midPoint,
78  double *rightPoint, double alpha);
80 
82 
91  double GetError(double *leftPoint, double *midPoint, double *rightPoint,
92  double alpha);
94 
95 protected:
97  virtual ~vtkSmoothErrorMetric();
98 
100  double CosTolerance;
101 
102 private:
103  vtkSmoothErrorMetric(const vtkSmoothErrorMetric&); // Not implemented.
104  void operator=(const vtkSmoothErrorMetric&); // Not implemented.
105 };
106 
107 #endif
#define VTK_FILTERING_EXPORT
virtual int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
a simple class to control print indentation
Definition: vtkIndent.h:37
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
defines dataset interface
static vtkObject * New()
void PrintSelf(ostream &os, vtkIndent indent)