VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Core
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 "vtkRenderingCoreModule.h"
// For export macro
35
#include "
vtkGenericSubdivisionErrorMetric.h
"
36
37
class
vtkViewport
;
38
class
vtkCoordinate
;
39
40
class
VTKRENDERINGCORE_EXPORT
vtkViewDependentErrorMetric
:
public
vtkGenericSubdivisionErrorMetric
41
{
42
public
:
45
static
vtkViewDependentErrorMetric
*
New
();
46
48
49
vtkTypeMacro(
vtkViewDependentErrorMetric
,
vtkGenericSubdivisionErrorMetric
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent);
52
54
61
vtkGetMacro(PixelTolerance,
double
);
63
70
void
SetPixelTolerance(
double
value
);
71
73
75
vtkGetObjectMacro(Viewport,
vtkViewport
);
76
void
SetViewport(
vtkViewport
*viewport);
78
80
94
int
RequiresEdgeSubdivision
(
double
*leftPoint,
double
*midPoint,
double
*rightPoint,
95
double
alpha
);
97
99
108
double
GetError
(
double
*leftPoint,
double
*midPoint,
109
double
*rightPoint,
double
alpha
);
111
112
protected
:
113
vtkViewDependentErrorMetric
();
114
~
vtkViewDependentErrorMetric
();
115
117
120
double
Distance2LinePoint(
double
x[2],
121
double
y[2],
122
double
z[2]);
124
125
double
PixelTolerance
;
126
vtkViewport
*
Viewport
;
127
// used to get display coordinates from world coordinates
128
vtkCoordinate
*
Coordinate
;
129
130
private
:
131
vtkViewDependentErrorMetric
(
const
vtkViewDependentErrorMetric
&);
// Not implemented.
132
void
operator=(
const
vtkViewDependentErrorMetric
&);
// Not implemented.
133
};
134
135
#endif
Generated on Thu May 24 2012 22:22:35 for VTK by
1.8.1