VTK  9.3.1
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 
66  virtual int RequiresEdgeSubdivision(
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 
89  void SetGenericCell(vtkGenericAdaptorCell* cell);
90  vtkGetObjectMacro(GenericCell, vtkGenericAdaptorCell);
92 
94 
97  void SetDataSet(vtkGenericDataSet* ds);
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
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
defines cell interface
a simple class to control print indentation
Definition: vtkIndent.h:28
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition: VTXTypes.h:28
Objects that compute error during cell tessellation.
defines dataset interface