VTK  9.2.6
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:
46  static vtkGeometricErrorMetric* New();
47 
49 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
57 
62  vtkGetMacro(AbsoluteGeometricTolerance, double);
64 
73  void SetAbsoluteGeometricTolerance(double value);
74 
82  void SetRelativeGeometricTolerance(double value, vtkGenericDataSet* ds);
83 
103  double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
104 
118  double GetError(double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
119 
123  int GetRelative();
124 
125 protected:
127  ~vtkGeometricErrorMetric() override;
128 
134  double Distance2LinePoint(double x[3], double y[3], double z[3]);
135 
137  double SmallestSize;
138  int Relative; // Control the type of output of GetError()
139 
140 private:
142  void operator=(const vtkGeometricErrorMetric&) = delete;
143 };
144 
145 #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 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...
Objects that compute geometry-based error during cell tessellation.