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 =========================================================================*/
37 #ifndef vtkGenericSubdivisionErrorMetric_h
38 #define vtkGenericSubdivisionErrorMetric_h
39 
40 #include "vtkCommonDataModelModule.h" // For export macro
41 #include "vtkObject.h"
42 
45 class vtkGenericDataSet;
46 
48 {
49 public:
51 
53  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
70  virtual int RequiresEdgeSubdivision(double *leftPoint, double *midPoint,
71  double *rightPoint, double alpha)=0;
73 
75 
84  virtual double GetError(double *leftPoint, double *midPoint,
85  double *rightPoint, double alpha)=0;
87 
89 
90  void SetGenericCell(vtkGenericAdaptorCell *cell);
91  vtkGetObjectMacro(GenericCell,vtkGenericAdaptorCell);
93 
95 
96  void SetDataSet(vtkGenericDataSet *ds);
97  vtkGetObjectMacro(DataSet,vtkGenericDataSet);
99 
100 protected:
103 
106 
107 private:
109  void operator=(const vtkGenericSubdivisionErrorMetric&); // Not implemented.
110 };
111 
112 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
defines cell interface
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
Objects that compute error during cell tessellation.
defines dataset interface
#define VTKCOMMONDATAMODEL_EXPORT