VTK  9.0.1
vtkGenericSubdivisionErrorMetric.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericSubdivisionErrorMetric.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 =========================================================================*/
38 #ifndef vtkGenericSubdivisionErrorMetric_h
39 #define vtkGenericSubdivisionErrorMetric_h
40 
41 #include "vtkCommonDataModelModule.h" // For export macro
42 #include "vtkObject.h"
43 
46 class vtkGenericDataSet;
47 
48 class VTKCOMMONDATAMODEL_EXPORT vtkGenericSubdivisionErrorMetric : public vtkObject
49 {
50 public:
52 
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
78  double* leftPoint, double* midPoint, double* rightPoint, double alpha) = 0;
79 
93  virtual double GetError(
94  double* leftPoint, double* midPoint, double* rightPoint, double alpha) = 0;
95 
97 
101  vtkGetObjectMacro(GenericCell, vtkGenericAdaptorCell);
103 
105 
109  vtkGetObjectMacro(DataSet, vtkGenericDataSet);
111 
112 protected:
115 
118 
119 private:
121  void operator=(const vtkGenericSubdivisionErrorMetric&) = delete;
122 };
123 
124 #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
Methods invoked by print to print information about the object including superclasses.
void SetDataSet(vtkGenericDataSet *ds)
Set/Get the dataset to be tessellated.
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract base class for most VTK objects
Definition: vtkObject.h:63
@ alpha
Definition: vtkX3D.h:256
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition: VTXTypes.h:39