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 =========================================================================*/
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,
80  vtkGenericDataSet *ds);
81 
100  int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint,
101  double alpha) override;
102 
116  double GetError(double *leftPoint, double *midPoint,
117  double *rightPoint, double alpha) override;
118 
122  int GetRelative();
123 
124 protected:
126  ~vtkGeometricErrorMetric() override;
127 
133  double Distance2LinePoint(double x[3],
134  double y[3],
135  double z[3]);
136 
138  double SmallestSize;
139  int Relative; // Control the type of output of GetError()
140 
141 private:
143  void operator=(const vtkGeometricErrorMetric&) = delete;
144 };
145 
146 #endif
vtkX3D::alpha
Definition: vtkX3D.h:250
vtkX3D::value
Definition: vtkX3D.h:220
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:139
vtkGeometricErrorMetric::AbsoluteGeometricTolerance
double AbsoluteGeometricTolerance
Definition: vtkGeometricErrorMetric.h:137
vtkGeometricErrorMetric::SmallestSize
double SmallestSize
Definition: vtkGeometricErrorMetric.h:138
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