VTK
dox
Filters
Points
vtkShepardKernel.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkShepardKernel.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
=========================================================================*/
35
#ifndef vtkShepardKernel_h
36
#define vtkShepardKernel_h
37
38
#include "vtkFiltersPointsModule.h"
// For export macro
39
#include "
vtkGeneralizedKernel.h
"
40
41
class
vtkIdList
;
42
class
vtkDoubleArray
;
43
44
45
class
VTKFILTERSPOINTS_EXPORT
vtkShepardKernel
:
public
vtkGeneralizedKernel
46
{
47
public
:
49
52
static
vtkShepardKernel
*
New
();
53
vtkTypeMacro(
vtkShepardKernel
,
vtkGeneralizedKernel
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
56
57
// Re-use any superclass signatures that we don't override.
58
using
vtkGeneralizedKernel::ComputeWeights
;
59
74
vtkIdType
ComputeWeights
(
double
x[3],
vtkIdList
*pIds,
75
vtkDoubleArray
*prob,
vtkDoubleArray
*weights)
override
;
76
78
82
vtkSetClampMacro(PowerParameter,
double
,0.001,100);
83
vtkGetMacro(PowerParameter,
double
);
85
86
protected
:
87
vtkShepardKernel
();
88
~
vtkShepardKernel
()
override
;
89
90
// The exponent of the weights, =2 by default (l2 norm)
91
double
PowerParameter
;
92
93
private
:
94
vtkShepardKernel
(
const
vtkShepardKernel
&) =
delete
;
95
void
operator=(
const
vtkShepardKernel
&) =
delete
;
96
};
97
98
#endif
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
vtkShepardKernel
a Shepard method interpolation kernel
Definition:
vtkShepardKernel.h:45
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkGeneralizedKernel.h
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkGeneralizedKernel
flexible, general interpolation kernels
Definition:
vtkGeneralizedKernel.h:70
vtkGeneralizedKernel::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdList
list of point or cell ids
Definition:
vtkIdList.h:30
vtkDoubleArray
dynamic, self-adjusting array of double
Definition:
vtkDoubleArray.h:35
vtkShepardKernel::PowerParameter
double PowerParameter
Definition:
vtkShepardKernel.h:91
vtkGeneralizedKernel::ComputeWeights
virtual vtkIdType ComputeWeights(double x[3], vtkIdList *pIds, vtkDoubleArray *prob, vtkDoubleArray *weights)=0
Given a point x, a list of basis points pIds, and a probability weighting function prob,...
Generated by
1.8.16