VTK
9.0.1
Filters
Points
vtkInterpolationKernel.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkInterpolationKernel.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
=========================================================================*/
51
#ifndef vtkInterpolationKernel_h
52
#define vtkInterpolationKernel_h
53
54
#include "vtkFiltersPointsModule.h"
// For export macro
55
#include "
vtkObject.h
"
56
57
class
vtkAbstractPointLocator
;
58
class
vtkIdList
;
59
class
vtkDoubleArray
;
60
class
vtkDataSet
;
61
class
vtkPointData
;
62
63
class
VTKFILTERSPOINTS_EXPORT
vtkInterpolationKernel
:
public
vtkObject
64
{
65
public
:
67
70
vtkAbstractTypeMacro(
vtkInterpolationKernel
,
vtkObject
);
71
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
73
83
virtual
void
Initialize(
vtkAbstractPointLocator
* loc,
vtkDataSet
* ds,
vtkPointData
* pd);
84
86
92
vtkSetMacro(RequiresInitialization,
bool
);
93
vtkGetMacro(RequiresInitialization,
bool
);
94
vtkBooleanMacro(RequiresInitialization,
bool
);
96
106
virtual
vtkIdType
ComputeBasis(
double
x[3],
vtkIdList
* pIds,
vtkIdType
ptId = 0) = 0;
107
118
virtual
vtkIdType
ComputeWeights(
double
x[3],
vtkIdList
* pIds,
vtkDoubleArray
* weights) = 0;
119
120
protected
:
121
vtkInterpolationKernel
();
122
~
vtkInterpolationKernel
()
override
;
123
124
bool
RequiresInitialization
;
125
vtkAbstractPointLocator
*
Locator
;
126
vtkDataSet
*
DataSet
;
127
vtkPointData
*
PointData
;
128
129
// Just clear out the data. Can be overloaded by subclasses as necessary.
130
virtual
void
FreeStructures();
131
132
private
:
133
vtkInterpolationKernel
(
const
vtkInterpolationKernel
&) =
delete
;
134
void
operator=(
const
vtkInterpolationKernel
&) =
delete
;
135
};
136
137
#endif
vtkInterpolationKernel::Locator
vtkAbstractPointLocator * Locator
Definition:
vtkInterpolationKernel.h:125
vtkPointData
represent and manipulate point attribute data
Definition:
vtkPointData.h:31
vtkIdType
int vtkIdType
Definition:
vtkType.h:338
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkInterpolationKernel::PointData
vtkPointData * PointData
Definition:
vtkInterpolationKernel.h:127
vtkInterpolationKernel::DataSet
vtkDataSet * DataSet
Definition:
vtkInterpolationKernel.h:126
vtkInterpolationKernel::RequiresInitialization
bool RequiresInitialization
Definition:
vtkInterpolationKernel.h:124
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkIdList
list of point or cell ids
Definition:
vtkIdList.h:30
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
vtkDataSet
abstract class to specify dataset behavior
Definition:
vtkDataSet.h:56
vtkAbstractPointLocator
abstract class to quickly locate points in 3-space
Definition:
vtkAbstractPointLocator.h:38
vtkDoubleArray
dynamic, self-adjusting array of double
Definition:
vtkDoubleArray.h:35
vtkInterpolationKernel
base class for interpolation kernels
Definition:
vtkInterpolationKernel.h:63
Generated on Thu Jun 25 2020 08:30:42 for VTK by
1.8.17