VTK  9.0.1
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 =========================================================================*/
28 #ifndef vtkAttributesErrorMetric_h
29 #define vtkAttributesErrorMetric_h
30 
31 #include "vtkCommonDataModelModule.h" // For export macro
33 
35 class vtkGenericDataSet;
36 
37 class VTKCOMMONDATAMODEL_EXPORT vtkAttributesErrorMetric : public vtkGenericSubdivisionErrorMetric
38 {
39 public:
45 
47 
51  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
63  vtkGetMacro(AbsoluteAttributeTolerance, double);
65 
77 
79 
87  vtkGetMacro(AttributeTolerance, double);
89 
96 
117  double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
118 
132  double GetError(double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
133 
134 protected:
137 
143 
145 
146  double SquareAbsoluteAttributeTolerance; // cached value computed from
147  // AttributeTolerance and active attribute/component
148 
151 
153 
154  double Range; // cached value computed from active attribute/component
155 
157 
158 private:
160  void operator=(const vtkAttributesErrorMetric&) = delete;
161 };
162 
163 #endif
vtkX3D::alpha
@ alpha
Definition: vtkX3D.h:256
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkAttributesErrorMetric::AttributeTolerance
double AttributeTolerance
Definition: vtkAttributesErrorMetric.h:144
vtkAttributesErrorMetric::AbsoluteAttributeTolerance
double AbsoluteAttributeTolerance
Definition: vtkAttributesErrorMetric.h:149
vtkAttributesErrorMetric::vtkAttributesErrorMetric
vtkAttributesErrorMetric()
vtkAttributesErrorMetric::RequiresEdgeSubdivision
int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Does the edge need to be subdivided according to the distance between the value of the active attribu...
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:33
vtkAttributesErrorMetric::SetAttributeTolerance
void SetAttributeTolerance(double value)
Set the relative attribute accuracy to ‘value’.
vtkGenericSubdivisionErrorMetric
Objects that compute error during cell tessellation.
Definition: vtkGenericSubdivisionErrorMetric.h:49
vtkAttributesErrorMetric::~vtkAttributesErrorMetric
~vtkAttributesErrorMetric() override
vtkGenericDataSet
defines dataset interface
Definition: vtkGenericDataSet.h:70
vtkAttributesErrorMetric::GetError
double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Return the error at the mid-point.
vtkAttributesErrorMetric::SetAbsoluteAttributeTolerance
void SetAbsoluteAttributeTolerance(double value)
Set the absolute attribute accuracy to ‘value’.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkAttributesErrorMetric::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAttributesErrorMetric::ComputeSquareAbsoluteAttributeTolerance
void ComputeSquareAbsoluteAttributeTolerance()
Compute the square absolute attribute tolerance, only if the cached value is obsolete.
vtkAttributesErrorMetric
Objects that compute attribute-based error during cell tessellation.
Definition: vtkAttributesErrorMetric.h:38
vtkAttributesErrorMetric::SquareAbsoluteAttributeTolerance
double SquareAbsoluteAttributeTolerance
Definition: vtkAttributesErrorMetric.h:146
vtkAttributesErrorMetric::DefinedByAbsolute
int DefinedByAbsolute
Definition: vtkAttributesErrorMetric.h:150
vtkGenericAttributeCollection
a collection of attributes
Definition: vtkGenericAttributeCollection.h:34
vtkAttributesErrorMetric::New
static vtkAttributesErrorMetric * New()
Construct the error metric with a default relative attribute accuracy equal to 0.1.
vtkGenericSubdivisionErrorMetric.h
vtkAttributesErrorMetric::AttributeCollection
vtkGenericAttributeCollection * AttributeCollection
Definition: vtkAttributesErrorMetric.h:156
vtkAttributesErrorMetric::Range
double Range
Definition: vtkAttributesErrorMetric.h:154
vtkAttributesErrorMetric::SquareAbsoluteAttributeToleranceComputeTime
vtkTimeStamp SquareAbsoluteAttributeToleranceComputeTime
Definition: vtkAttributesErrorMetric.h:152