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 =========================================================================*/
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:
44  static vtkAttributesErrorMetric *New();
45 
47 
51  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
63  vtkGetMacro(AbsoluteAttributeTolerance, double);
65 
76  void SetAbsoluteAttributeTolerance(double value);
77 
79 
87  vtkGetMacro(AttributeTolerance, double);
89 
95  void SetAttributeTolerance(double value);
96 
116  int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint,
117  double alpha) override;
118 
132  double GetError(double *leftPoint, double *midPoint,
133  double *rightPoint, double alpha) override;
134 
135 protected:
137  ~vtkAttributesErrorMetric() override;
138 
143  void ComputeSquareAbsoluteAttributeTolerance();
144 
146 
147  double SquareAbsoluteAttributeTolerance; // cached value computed from
148  // AttributeTolerance and active attribute/component
149 
152 
154 
155  double Range; // cached value computed from active attribute/component
156 
158 
159 private:
161  void operator=(const vtkAttributesErrorMetric&) = delete;
162 };
163 
164 #endif
165 
vtkX3D::alpha
Definition: vtkX3D.h:250
vtkX3D::value
Definition: vtkX3D.h:220
vtkAttributesErrorMetric::AttributeTolerance
double AttributeTolerance
Definition: vtkAttributesErrorMetric.h:145
vtkAttributesErrorMetric::AbsoluteAttributeTolerance
double AbsoluteAttributeTolerance
Definition: vtkAttributesErrorMetric.h:150
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:32
vtkGenericSubdivisionErrorMetric::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGenericSubdivisionErrorMetric
Objects that compute error during cell tessellation.
Definition: vtkGenericSubdivisionErrorMetric.h:48
vtkGenericDataSet
defines dataset interface
Definition: vtkGenericDataSet.h:69
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGenericSubdivisionErrorMetric::RequiresEdgeSubdivision
virtual int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
Does the edge need to be subdivided according to the implemented computation? The edge is defined by ...
vtkAttributesErrorMetric
Objects that compute attribute-based error during cell tessellation.
Definition: vtkAttributesErrorMetric.h:37
vtkAttributesErrorMetric::SquareAbsoluteAttributeTolerance
double SquareAbsoluteAttributeTolerance
Definition: vtkAttributesErrorMetric.h:147
vtkAttributesErrorMetric::DefinedByAbsolute
int DefinedByAbsolute
Definition: vtkAttributesErrorMetric.h:151
vtkGenericSubdivisionErrorMetric::GetError
virtual double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
Return the error at the mid-point.
vtkGenericAttributeCollection
a collection of attributes
Definition: vtkGenericAttributeCollection.h:33
vtkGenericSubdivisionErrorMetric.h
vtkAttributesErrorMetric::AttributeCollection
vtkGenericAttributeCollection * AttributeCollection
Definition: vtkAttributesErrorMetric.h:157
vtkAttributesErrorMetric::Range
double Range
Definition: vtkAttributesErrorMetric.h:155
vtkAttributesErrorMetric::SquareAbsoluteAttributeToleranceComputeTime
vtkTimeStamp SquareAbsoluteAttributeToleranceComputeTime
Definition: vtkAttributesErrorMetric.h:153