VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkViewDependentErrorMetric.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkViewDependentErrorMetric.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 __vtkViewDependentErrorMetric_h
32
#define __vtkViewDependentErrorMetric_h
33
34
#include "
vtkGenericSubdivisionErrorMetric.h
"
35
36
class
vtkViewport
;
37
class
vtkCoordinate
;
38
39
class
VTK_FILTERING_EXPORT
vtkViewDependentErrorMetric
:
public
vtkGenericSubdivisionErrorMetric
40
{
41
public
:
44
static
vtkViewDependentErrorMetric
*
New
();
45
47
48
vtkTypeMacro(
vtkViewDependentErrorMetric
,
vtkGenericSubdivisionErrorMetric
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
53
60
vtkGetMacro(PixelTolerance,
double
);
62
69
void
SetPixelTolerance(
double
value
);
70
72
74
vtkGetObjectMacro(Viewport,
vtkViewport
);
75
void
SetViewport(
vtkViewport
*viewport);
77
79
93
int
RequiresEdgeSubdivision
(
double
*leftPoint,
double
*midPoint,
double
*rightPoint,
94
double
alpha
);
96
98
107
double
GetError
(
double
*leftPoint,
double
*midPoint,
108
double
*rightPoint,
double
alpha
);
110
111
protected
:
112
vtkViewDependentErrorMetric
();
113
~
vtkViewDependentErrorMetric
();
114
116
119
double
Distance2LinePoint(
double
x[2],
120
double
y[2],
121
double
z[2]);
123
124
double
PixelTolerance
;
125
vtkViewport
*
Viewport
;
126
// used to get display coordinates from world coordinates
127
vtkCoordinate
*
Coordinate
;
128
129
private
:
130
vtkViewDependentErrorMetric
(
const
vtkViewDependentErrorMetric
&);
// Not implemented.
131
void
operator=(
const
vtkViewDependentErrorMetric
&);
// Not implemented.
132
};
133
134
#endif
Generated on Sun Sep 9 2012 13:03:29 for VTK by
1.8.1.2