VTK  9.0.20200918
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 =========================================================================*/
28 #ifndef vtkGeometricErrorMetric_h
29 #define vtkGeometricErrorMetric_h
30 
31 #include "vtkCommonDataModelModule.h" // For export macro
33 
34 class vtkGenericDataSet;
35 
36 class VTKCOMMONDATAMODEL_EXPORT vtkGeometricErrorMetric : public vtkGenericSubdivisionErrorMetric
37 {
38 public:
43  static vtkGeometricErrorMetric* New();
44 
46 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
59  vtkGetMacro(AbsoluteGeometricTolerance, double);
61 
70  void SetAbsoluteGeometricTolerance(double value);
71 
79  void SetRelativeGeometricTolerance(double value, vtkGenericDataSet* ds);
80 
100  double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
101 
115  double GetError(double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
116 
120  int GetRelative();
121 
122 protected:
124  ~vtkGeometricErrorMetric() override;
125 
131  double Distance2LinePoint(double x[3], double y[3], double z[3]);
132 
134  double SmallestSize;
135  int Relative; // Control the type of output of GetError()
136 
137 private:
139  void operator=(const vtkGeometricErrorMetric&) = delete;
140 };
141 
142 #endif
vtkX3D::alpha
Definition: vtkX3D.h:256
vtkX3D::value
Definition: vtkX3D.h:226
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkGenericSubdivisionErrorMetric::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGenericSubdivisionErrorMetric
Objects that compute error during cell tessellation.
Definition: vtkGenericSubdivisionErrorMetric.h:48
vtkGenericDataSet
defines dataset interface
Definition: vtkGenericDataSet.h:69
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGenericSubdivisionErrorMetric::RequiresEdgeSubdivision
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 ...
vtkGeometricErrorMetric::Relative
int Relative
Definition: vtkGeometricErrorMetric.h:135
vtkGeometricErrorMetric::AbsoluteGeometricTolerance
double AbsoluteGeometricTolerance
Definition: vtkGeometricErrorMetric.h:133
vtkGeometricErrorMetric::SmallestSize
double SmallestSize
Definition: vtkGeometricErrorMetric.h:134
vtkGeometricErrorMetric
Objects that compute geometry-based error during cell tessellation.
Definition: vtkGeometricErrorMetric.h:36
vtkGenericSubdivisionErrorMetric::GetError
virtual double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
Return the error at the mid-point.
vtkGenericSubdivisionErrorMetric.h