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 
33 #include "vtkCommonDataModelModule.h" // For export macro
35 
36 class vtkGenericDataSet;
37 
39 {
40 public:
44 
46 
48  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
55  vtkGetMacro(AbsoluteGeometricTolerance, double);
57 
65 
67 
72  vtkGenericDataSet *ds);
74 
76 
89  int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint,
90  double alpha);
92 
94 
103  double GetError(double *leftPoint, double *midPoint,
104  double *rightPoint, double alpha);
106 
108  int GetRelative();
109 
110 protected:
113 
115 
118  double Distance2LinePoint(double x[3],
119  double y[3],
120  double z[3]);
122 
124  double SmallestSize;
125  int Relative; // Control the type of output of GetError()
126 
127 private:
128  vtkGeometricErrorMetric(const vtkGeometricErrorMetric&); // Not implemented.
129  void operator=(const vtkGeometricErrorMetric&); // Not implemented.
130 };
131 
132 #endif
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkCommonDataModelModule.h
vtkGeometricErrorMetric::New
static vtkGeometricErrorMetric * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkGeometricErrorMetric::~vtkGeometricErrorMetric
virtual ~vtkGeometricErrorMetric()
vtkGenericSubdivisionErrorMetric
Objects that compute error during cell tessellation.
Definition: vtkGenericSubdivisionErrorMetric.h:48
vtkGenericDataSet
defines dataset interface
Definition: vtkGenericDataSet.h:69
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkGeometricErrorMetric::GetError
double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)
vtkGeometricErrorMetric::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGeometricErrorMetric::SetRelativeGeometricTolerance
void SetRelativeGeometricTolerance(double value, vtkGenericDataSet *ds)
vtkGeometricErrorMetric::RequiresEdgeSubdivision
int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGeometricErrorMetric::Relative
int Relative
Definition: vtkGeometricErrorMetric.h:125
vtkGeometricErrorMetric::AbsoluteGeometricTolerance
double AbsoluteGeometricTolerance
Definition: vtkGeometricErrorMetric.h:123
vtkGeometricErrorMetric::SmallestSize
double SmallestSize
Definition: vtkGeometricErrorMetric.h:124
vtkgl::alpha
GLclampf GLclampf GLclampf alpha
Definition: vtkgl.h:11313
vtkGeometricErrorMetric::SetAbsoluteGeometricTolerance
void SetAbsoluteGeometricTolerance(double value)
vtkGeometricErrorMetric::Distance2LinePoint
double Distance2LinePoint(double x[3], double y[3], double z[3])
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkGeometricErrorMetric
Objects that compute geometry-based error during cell tessellation.
Definition: vtkGeometricErrorMetric.h:39
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkGeometricErrorMetric::vtkGeometricErrorMetric
vtkGeometricErrorMetric()
vtkGeometricErrorMetric::GetRelative
int GetRelative()
vtkGenericSubdivisionErrorMetric.h