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 "vtkObject.h"
41 
44 class vtkGenericDataSet;
45 
47 {
48 public:
50 
52  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
69  virtual int RequiresEdgeSubdivision(double *leftPoint, double *midPoint,
70  double *rightPoint, double alpha)=0;
72 
74 
83  virtual double GetError(double *leftPoint, double *midPoint,
84  double *rightPoint, double alpha)=0;
86 
88 
89  void SetGenericCell(vtkGenericAdaptorCell *cell);
90  vtkGetObjectMacro(GenericCell,vtkGenericAdaptorCell);
92 
94 
95  void SetDataSet(vtkGenericDataSet *ds);
96  vtkGetObjectMacro(DataSet,vtkGenericDataSet);
98 
99 protected:
102 
105 
106 private:
108  void operator=(const vtkGenericSubdivisionErrorMetric&); // Not implemented.
109 };
110 
111 #endif