VTK  9.1.0
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
47
48class VTKCOMMONDATAMODEL_EXPORT vtkGenericSubdivisionErrorMetric : public vtkObject
49{
50public:
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
112protected:
115
118
119private:
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
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:113
abstract base class for most VTK objects
Definition: vtkObject.h:82