VTK
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
35 
37 class vtkGenericDataSet;
38 
40 {
41 public:
45 
47 
49  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
58  vtkGetMacro(AbsoluteAttributeTolerance, double);
60 
69 
71 
76  vtkGetMacro(AttributeTolerance, double);
78 
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:
120 
124 
126 
127  double SquareAbsoluteAttributeTolerance; // cached value computed from
128  // AttributeTolerance and active attribute/component
129 
132 
134 
135  double Range; // cached value computed from active attribute/component
136 
138 
139 private:
140  vtkAttributesErrorMetric(const vtkAttributesErrorMetric&); // Not implemented.
141  void operator=(const vtkAttributesErrorMetric&); // Not implemented.
142 };
143 
144 #endif
145 
vtkAttributesErrorMetric::AttributeTolerance
double AttributeTolerance
Definition: vtkAttributesErrorMetric.h:125
vtkCommonDataModelModule.h
vtkAttributesErrorMetric::AbsoluteAttributeTolerance
double AbsoluteAttributeTolerance
Definition: vtkAttributesErrorMetric.h:130
vtkAttributesErrorMetric::vtkAttributesErrorMetric
vtkAttributesErrorMetric()
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkAttributesErrorMetric::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkAttributesErrorMetric::SetAttributeTolerance
void SetAttributeTolerance(double value)
vtkGenericSubdivisionErrorMetric
Objects that compute error during cell tessellation.
Definition: vtkGenericSubdivisionErrorMetric.h:48
vtkGenericDataSet
defines dataset interface
Definition: vtkGenericDataSet.h:69
vtkAttributesErrorMetric::GetError
double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)
vtkAttributesErrorMetric::RequiresEdgeSubdivision
int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha)
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkAttributesErrorMetric::SetAbsoluteAttributeTolerance
void SetAbsoluteAttributeTolerance(double value)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkAttributesErrorMetric::ComputeSquareAbsoluteAttributeTolerance
void ComputeSquareAbsoluteAttributeTolerance()
vtkAttributesErrorMetric
Objects that compute attribute-based error during cell tessellation.
Definition: vtkAttributesErrorMetric.h:40
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkAttributesErrorMetric::~vtkAttributesErrorMetric
virtual ~vtkAttributesErrorMetric()
vtkgl::alpha
GLclampf GLclampf GLclampf alpha
Definition: vtkgl.h:11313
vtkAttributesErrorMetric::SquareAbsoluteAttributeTolerance
double SquareAbsoluteAttributeTolerance
Definition: vtkAttributesErrorMetric.h:127
vtkAttributesErrorMetric::DefinedByAbsolute
int DefinedByAbsolute
Definition: vtkAttributesErrorMetric.h:131
vtkGenericAttributeCollection
a collection of attributes
Definition: vtkGenericAttributeCollection.h:36
vtkAttributesErrorMetric::New
static vtkAttributesErrorMetric * New()
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkGenericSubdivisionErrorMetric.h
vtkAttributesErrorMetric::AttributeCollection
vtkGenericAttributeCollection * AttributeCollection
Definition: vtkAttributesErrorMetric.h:137
vtkAttributesErrorMetric::Range
double Range
Definition: vtkAttributesErrorMetric.h:135
vtkAttributesErrorMetric::SquareAbsoluteAttributeToleranceComputeTime
vtkTimeStamp SquareAbsoluteAttributeToleranceComputeTime
Definition: vtkAttributesErrorMetric.h:133