VTK
dox
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
64
class
VTKFILTERSPOINTS_EXPORT
vtkInterpolationKernel
:
public
vtkObject
65
{
66
public
:
68
71
vtkAbstractTypeMacro(
vtkInterpolationKernel
,
vtkObject
);
72
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
74
84
virtual
void
Initialize(
vtkAbstractPointLocator
*loc,
vtkDataSet
*ds,
85
vtkPointData
*pd);
86
88
94
vtkSetMacro(RequiresInitialization,
bool
);
95
vtkGetMacro(RequiresInitialization,
bool
);
96
vtkBooleanMacro(RequiresInitialization,
bool
);
98
108
virtual
vtkIdType
ComputeBasis(
double
x[3],
vtkIdList
*pIds,
vtkIdType
ptId=0) = 0;
109
120
virtual
vtkIdType
ComputeWeights(
double
x[3],
vtkIdList
*pIds,
121
vtkDoubleArray
*weights) = 0;
122
123
protected
:
124
vtkInterpolationKernel
();
125
~
vtkInterpolationKernel
()
override
;
126
127
bool
RequiresInitialization
;
128
vtkAbstractPointLocator
*
Locator
;
129
vtkDataSet
*
DataSet
;
130
vtkPointData
*
PointData
;
131
132
// Just clear out the data. Can be overloaded by subclasses as necessary.
133
virtual
void
FreeStructures();
134
135
private
:
136
vtkInterpolationKernel
(
const
vtkInterpolationKernel
&) =
delete
;
137
void
operator=(
const
vtkInterpolationKernel
&) =
delete
;
138
};
139
140
#endif
vtkInterpolationKernel::Locator
vtkAbstractPointLocator * Locator
Definition:
vtkInterpolationKernel.h:128
vtkPointData
represent and manipulate point attribute data
Definition:
vtkPointData.h:37
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkInterpolationKernel::PointData
vtkPointData * PointData
Definition:
vtkInterpolationKernel.h:130
vtkInterpolationKernel::DataSet
vtkDataSet * DataSet
Definition:
vtkInterpolationKernel.h:129
vtkInterpolationKernel::RequiresInitialization
bool RequiresInitialization
Definition:
vtkInterpolationKernel.h:127
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkIdList
list of point or cell ids
Definition:
vtkIdList.h:36
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:62
vtkAbstractPointLocator
abstract class to quickly locate points in 3-space
Definition:
vtkAbstractPointLocator.h:41
vtkDoubleArray
dynamic, self-adjusting array of double
Definition:
vtkDoubleArray.h:41
vtkInterpolationKernel
base class for interpolation kernels
Definition:
vtkInterpolationKernel.h:64
Generated by
1.8.16