VTK  9.3.20240418
vtkGenericSubdivisionErrorMetric.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
26 #ifndef vtkGenericSubdivisionErrorMetric_h
27 #define vtkGenericSubdivisionErrorMetric_h
28 
29 #include "vtkCommonDataModelModule.h" // For export macro
30 #include "vtkObject.h"
31 
32 VTK_ABI_NAMESPACE_BEGIN
35 class vtkGenericDataSet;
36 
37 class VTKCOMMONDATAMODEL_EXPORT vtkGenericSubdivisionErrorMetric : public vtkObject
38 {
39 public:
41 
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
67  double* leftPoint, double* midPoint, double* rightPoint, double alpha) = 0;
68 
82  virtual double GetError(
83  double* leftPoint, double* midPoint, double* rightPoint, double alpha) = 0;
84 
86 
90  vtkGetObjectMacro(GenericCell, vtkGenericAdaptorCell);
92 
94 
98  vtkGetObjectMacro(DataSet, vtkGenericDataSet);
100 
101 protected:
104 
107 
108 private:
110  void operator=(const vtkGenericSubdivisionErrorMetric&) = delete;
111 };
112 
113 VTK_ABI_NAMESPACE_END
114 #endif
defines cell interface
defines dataset interface
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.
void SetGenericCell(vtkGenericAdaptorCell *cell)
The cell that the edge belongs to.
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 ...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK type and error macros.
void SetDataSet(vtkGenericDataSet *ds)
Set/Get the dataset to be tessellated.
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:162
@ alpha
Definition: vtkX3D.h:250
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition: VTXTypes.h:28