VTK
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) VTK_OVERRIDE;
58 
77  virtual int RequiresEdgeSubdivision(double *leftPoint, double *midPoint,
78  double *rightPoint, double alpha)=0;
79 
93  virtual double GetError(double *leftPoint, double *midPoint,
94  double *rightPoint, double alpha)=0;
95 
97 
100  void SetGenericCell(vtkGenericAdaptorCell *cell);
101  vtkGetObjectMacro(GenericCell,vtkGenericAdaptorCell);
103 
105 
108  void SetDataSet(vtkGenericDataSet *ds);
109  vtkGetObjectMacro(DataSet,vtkGenericDataSet);
111 
112 protected:
114  ~vtkGenericSubdivisionErrorMetric() VTK_OVERRIDE;
115 
116  vtkGenericAdaptorCell *GenericCell;
118 
119 private:
121  void operator=(const vtkGenericSubdivisionErrorMetric&) VTK_DELETE_FUNCTION;
122 };
123 
124 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
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:39
Objects that compute error during cell tessellation.
defines dataset interface