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 
42 class vtkGenericAttributeCollection;
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 
104  vtkGenericDataSet *DataSet;
105 
106 private:
108  void operator=(const vtkGenericSubdivisionErrorMetric&); // Not implemented.
109 };
110 
111 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:60
#define VTK_FILTERING_EXPORT
defines cell interface
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
Objects that compute error during cell tessellation.