VTK
dox
Common
DataModel
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
44
class
vtkGenericAttributeCollection
;
45
class
vtkGenericAdaptorCell
;
46
class
vtkGenericDataSet
;
47
48
class
VTKCOMMONDATAMODEL_EXPORT
vtkGenericSubdivisionErrorMetric
:
public
vtkObject
49
{
50
public
:
52
55
vtkTypeMacro(
vtkGenericSubdivisionErrorMetric
,
vtkObject
);
56
void
PrintSelf
(ostream& os,
vtkIndent
indent)
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
:
113
vtkGenericSubdivisionErrorMetric
();
114
~
vtkGenericSubdivisionErrorMetric
()
override
;
115
116
vtkGenericAdaptorCell
*
GenericCell
;
117
vtkGenericDataSet
*
DataSet
;
118
119
private
:
120
vtkGenericSubdivisionErrorMetric
(
const
vtkGenericSubdivisionErrorMetric
&) =
delete
;
121
void
operator=(
const
vtkGenericSubdivisionErrorMetric
&) =
delete
;
122
};
123
124
#endif
vtkX3D::alpha
Definition:
vtkX3D.h:250
vtkGenericSubdivisionErrorMetric::DataSet
vtkGenericDataSet * DataSet
Definition:
vtkGenericSubdivisionErrorMetric.h:117
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkGenericAdaptorCell
defines cell interface
Definition:
vtkGenericAdaptorCell.h:95
vtkGenericSubdivisionErrorMetric
Objects that compute error during cell tessellation.
Definition:
vtkGenericSubdivisionErrorMetric.h:48
vtkGenericSubdivisionErrorMetric::GenericCell
vtkGenericAdaptorCell * GenericCell
Definition:
vtkGenericSubdivisionErrorMetric.h:116
vtkGenericDataSet
defines dataset interface
Definition:
vtkGenericDataSet.h:69
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
vtkGenericAttributeCollection
a collection of attributes
Definition:
vtkGenericAttributeCollection.h:36
Generated by
1.8.16