VTK  9.3.1
vtkAttributesErrorMetric.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkAttributesErrorMetric_h
20 #define vtkAttributesErrorMetric_h
21 
22 #include "vtkCommonDataModelModule.h" // For export macro
24 
25 VTK_ABI_NAMESPACE_BEGIN
27 class vtkGenericDataSet;
28 
29 class VTKCOMMONDATAMODEL_EXPORT vtkAttributesErrorMetric : public vtkGenericSubdivisionErrorMetric
30 {
31 public:
36  static vtkAttributesErrorMetric* New();
37 
39 
43  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
55  vtkGetMacro(AbsoluteAttributeTolerance, double);
57 
68  void SetAbsoluteAttributeTolerance(double value);
69 
71 
79  vtkGetMacro(AttributeTolerance, double);
81 
87  void SetAttributeTolerance(double value);
88 
109  double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
110 
124  double GetError(double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
125 
126 protected:
128  ~vtkAttributesErrorMetric() override;
129 
134  void ComputeSquareAbsoluteAttributeTolerance();
135 
137 
138  double SquareAbsoluteAttributeTolerance; // cached value computed from
139  // AttributeTolerance and active attribute/component
140 
143 
145 
146  double Range; // cached value computed from active attribute/component
147 
149 
150 private:
152  void operator=(const vtkAttributesErrorMetric&) = delete;
153 };
154 
155 VTK_ABI_NAMESPACE_END
156 #endif
vtkGenericAttributeCollection * AttributeCollection
record modification and/or execution time
Definition: vtkTimeStamp.h:24
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK type and error macros.
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 ...
Objects that compute attribute-based error during cell tessellation.
a simple class to control print indentation
Definition: vtkIndent.h:28
Objects that compute error during cell tessellation.
virtual double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
Return the error at the mid-point.
vtkTimeStamp SquareAbsoluteAttributeToleranceComputeTime
defines dataset interface
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...