VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
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 "
vtkGenericSubdivisionErrorMetric.h
"
34
35
class
vtkGenericDataSet
;
36
37
class
VTK_FILTERING_EXPORT
vtkGeometricErrorMetric
:
public
vtkGenericSubdivisionErrorMetric
38
{
39
public
:
42
static
vtkGeometricErrorMetric
*
New
();
43
45
46
vtkTypeMacro(
vtkGeometricErrorMetric
,
vtkGenericSubdivisionErrorMetric
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent);
49
51
54
vtkGetMacro(AbsoluteGeometricTolerance,
double
);
56
63
void
SetAbsoluteGeometricTolerance(
double
value);
64
66
70
void
SetRelativeGeometricTolerance(
double
value,
71
vtkGenericDataSet
*ds);
73
75
88
int
RequiresEdgeSubdivision
(
double
*leftPoint,
double
*midPoint,
double
*rightPoint,
89
double
alpha);
91
93
102
double
GetError
(
double
*leftPoint,
double
*midPoint,
103
double
*rightPoint,
double
alpha);
105
107
int
GetRelative();
108
109
protected
:
110
vtkGeometricErrorMetric
();
111
virtual
~
vtkGeometricErrorMetric
();
112
114
117
double
Distance2LinePoint(
double
x[3],
118
double
y[3],
119
double
z[3]);
121
122
double
AbsoluteGeometricTolerance
;
123
double
SmallestSize
;
124
int
Relative
;
// Control the type of output of GetError()
125
126
private
:
127
vtkGeometricErrorMetric
(
const
vtkGeometricErrorMetric
&);
// Not implemented.
128
void
operator=(
const
vtkGeometricErrorMetric
&);
// Not implemented.
129
};
130
131
#endif
Generated on Sun Sep 15 2013 03:44:22 for VTK by
1.8.4