VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
DataModel
vtkAttributesErrorMetric.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAttributesErrorMetric.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 __vtkAttributesErrorMetric_h
31
#define __vtkAttributesErrorMetric_h
32
33
#include "vtkCommonDataModelModule.h"
// For export macro
34
#include "
vtkGenericSubdivisionErrorMetric.h
"
35
36
class
vtkGenericAttributeCollection
;
37
class
vtkGenericDataSet
;
38
39
class
VTKCOMMONDATAMODEL_EXPORT
vtkAttributesErrorMetric
:
public
vtkGenericSubdivisionErrorMetric
40
{
41
public
:
44
static
vtkAttributesErrorMetric
*
New
();
45
47
48
vtkTypeMacro(
vtkAttributesErrorMetric
,
vtkGenericSubdivisionErrorMetric
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
53
58
vtkGetMacro(AbsoluteAttributeTolerance,
double
);
60
68
void
SetAbsoluteAttributeTolerance(
double
value
);
69
71
76
vtkGetMacro(AttributeTolerance,
double
);
78
82
void
SetAttributeTolerance(
double
value
);
83
85
99
int
RequiresEdgeSubdivision
(
double
*leftPoint,
double
*midPoint,
double
*rightPoint,
100
double
alpha
);
102
104
113
double
GetError
(
double
*leftPoint,
double
*midPoint,
114
double
*rightPoint,
double
alpha
);
116
117
protected
:
118
vtkAttributesErrorMetric
();
119
virtual
~
vtkAttributesErrorMetric
();
120
123
void
ComputeSquareAbsoluteAttributeTolerance();
124
125
double
AttributeTolerance
;
126
127
double
SquareAbsoluteAttributeTolerance
;
// cached value computed from
128
// AttributeTolerance and active attribute/component
129
130
double
AbsoluteAttributeTolerance
;
131
int
DefinedByAbsolute
;
132
133
vtkTimeStamp
SquareAbsoluteAttributeToleranceComputeTime
;
134
135
double
Range
;
// cached value computed from active attribute/component
136
137
vtkGenericAttributeCollection
*
AttributeCollection
;
138
139
private
:
140
vtkAttributesErrorMetric
(
const
vtkAttributesErrorMetric
&);
// Not implemented.
141
void
operator=(
const
vtkAttributesErrorMetric
&);
// Not implemented.
142
};
143
144
#endif
145
Generated on Thu May 24 2012 22:22:09 for VTK by
1.8.1