VTK
vtkGeometricErrorMetric.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeometricErrorMetric.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 =========================================================================*/
30 #ifndef __vtkGeometricErrorMetric_h
31 #define __vtkGeometricErrorMetric_h
32 
34 
35 class vtkGenericDataSet;
36 
38 {
39 public:
42  static vtkGeometricErrorMetric *New();
43 
45 
47  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
54  vtkGetMacro(AbsoluteGeometricTolerance, double);
56 
63  void SetAbsoluteGeometricTolerance(double value);
64 
66 
70  void SetRelativeGeometricTolerance(double value,
71  vtkGenericDataSet *ds);
73 
75 
88  int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint,
89  double alpha);
91 
93 
102  double GetError(double *leftPoint, double *midPoint,
103  double *rightPoint, double alpha);
105 
107  int GetRelative();
108 
109 protected:
111  virtual ~vtkGeometricErrorMetric();
112 
114 
117  double Distance2LinePoint(double x[3],
118  double y[3],
119  double z[3]);
121 
123  double SmallestSize;
124  int Relative; // Control the type of output of GetError()
125 
126 private:
127  vtkGeometricErrorMetric(const vtkGeometricErrorMetric&); // Not implemented.
128  void operator=(const vtkGeometricErrorMetric&); // Not implemented.
129 };
130 
131 #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 error during cell tessellation.
virtual double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
defines dataset interface
static vtkObject * New()
Objects that compute geometry-based error during cell tessellation.
void PrintSelf(ostream &os, vtkIndent indent)