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
47
48class VTKCOMMONDATAMODEL_EXPORT vtkGenericSubdivisionErrorMetric : public vtkObject
49{
50public:
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
101 vtkGetObjectMacro(GenericCell,vtkGenericAdaptorCell);
103
105
109 vtkGetObjectMacro(DataSet,vtkGenericDataSet);
111
112protected:
115
118
119private:
121 void operator=(const vtkGenericSubdivisionErrorMetric&) VTK_DELETE_FUNCTION;
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
Methods invoked by print to print information about the object including superclasses.
void SetDataSet(vtkGenericDataSet *ds)
Set/Get the dataset to be tessellated.
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
@ alpha
Definition: vtkX3D.h:250