/usr/include/paraview/vtkLinearKernel.h is in paraview-dev 5.1.2+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkLinearKernel.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkLinearKernel - a linear interpolation kernel
// .SECTION Description
// vtkLinearKernel is an interpolation kernel that averages the contributions
// of all points in the basis.
// .SECTION See Also
// vtkPointInterpolator vtkInterpolationKernel vtkGeneralizedKernel
// vtkGaussianKernel vtkLinearKernel vtkShepardKernel
#ifndef vtkLinearKernel_h
#define vtkLinearKernel_h
#include "vtkFiltersPointsModule.h" // For export macro
#include "vtkGeneralizedKernel.h"
class vtkIdList;
class vtkDoubleArray;
class VTKFILTERSPOINTS_EXPORT vtkLinearKernel : public vtkGeneralizedKernel
{
public:
// Description:
// Standard methods for instantiation, obtaining type information, and printing.
static vtkLinearKernel *New();
vtkTypeMacro(vtkLinearKernel,vtkGeneralizedKernel);
void PrintSelf(ostream& os, vtkIndent indent);
// Re-use any superclass signatures that we don't override.
using vtkGeneralizedKernel::ComputeWeights;
// Description:
// Given a point x, a list of basis points pIds, and a probability
// weighting function prob, compute interpolation weights associated with
// these basis points. Note that basis points list pIds, the probability
// weighting prob, and the weights array are provided by the caller of the
// method, and may be dynamically resized as necessary. The method returns
// the number of weights (pIds may be resized in some cases). Typically
// this method is called after ComputeBasis(), although advanced users can
// invoke ComputeWeights() and provide the interpolation basis points pIds
// directly. The probably weighting prob are numbers 0<=prob<=1 which are
// multiplied against the interpolation weights before normalization. They
// are estimates of local confidence of weights. The prob may be NULL in
// which all probabilities are considered =1.
virtual vtkIdType ComputeWeights(double x[3], vtkIdList *pIds,
vtkDoubleArray *prob, vtkDoubleArray *weights);
protected:
vtkLinearKernel();
~vtkLinearKernel();
private:
vtkLinearKernel(const vtkLinearKernel&); // Not implemented.
void operator=(const vtkLinearKernel&); // Not implemented.
};
#endif
|