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 =========================================================================*/
31 #ifndef vtkGeometricErrorMetric_h
32 #define vtkGeometricErrorMetric_h
33 
34 #include "vtkCommonDataModelModule.h" // For export macro
36 
37 class vtkGenericDataSet;
38 
39 class VTKCOMMONDATAMODEL_EXPORT vtkGeometricErrorMetric : public vtkGenericSubdivisionErrorMetric
40 {
41 public:
47 
49 
53  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
55 
57 
62  vtkGetMacro(AbsoluteGeometricTolerance, double);
64 
74 
83  vtkGenericDataSet *ds);
84 
103  int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint,
104  double alpha) VTK_OVERRIDE;
105 
119  double GetError(double *leftPoint, double *midPoint,
120  double *rightPoint, double alpha) VTK_OVERRIDE;
121 
125  int GetRelative();
126 
127 protected:
129  ~vtkGeometricErrorMetric() VTK_OVERRIDE;
130 
136  double Distance2LinePoint(double x[3],
137  double y[3],
138  double z[3]);
139 
140  double AbsoluteGeometricTolerance;
141  double SmallestSize;
142  int Relative; // Control the type of output of GetError()
143 
144 private:
145  vtkGeometricErrorMetric(const vtkGeometricErrorMetric&) VTK_DELETE_FUNCTION;
146  void operator=(const vtkGeometricErrorMetric&) VTK_DELETE_FUNCTION;
147 };
148 
149 #endif
defines dataset interface
Objects that compute error during cell tessellation.
Objects that compute geometry-based error during cell tessellation.
void SetRelativeGeometricTolerance(double value, vtkGenericDataSet *ds)
Set the geometric accuracy with a value relative to the length of the bounding box of the dataset.
int GetRelative()
Return the type of output of GetError()
~vtkGeometricErrorMetric() override
static vtkGeometricErrorMetric * New()
Construct the error metric with a default squared absolute geometric accuracy equal to 1.
void SetAbsoluteGeometricTolerance(double value)
Set the geometric accuracy with a squared absolute value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Does the edge need to be subdivided according to the distance between the line passing through its en...
double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Return the error at the mid-point.
a simple class to control print indentation
Definition: vtkIndent.h:40
@ value
Definition: vtkX3D.h:220
@ alpha
Definition: vtkX3D.h:250