/usr/include/vtk-7.1/vtkVoronoiKernel.h is in libvtk7-dev 7.1.1+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 74 75 76 77 78 79 80 81 82 83 84 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkVoronoiKernel.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.
=========================================================================*/
/**
* @class vtkVoronoiKernel
* @brief a Voronoi interpolation kernel
*
*
* vtkVoronoiKernel is an interpolation kernel that simply returns the
* closest point to a point to be interpolated. A single weight is returned
* with value=1.0.
*
* @warning
* In degenerate cases (where a point x is equidistance from more than one
* point) the kernel basis arbitrarily chooses one of the equidistant points.
*
* @sa
* vtkInterpolationKernel vtkGeneralizedKernel vtkProbabilisticVoronoiKernel
*/
#ifndef vtkVoronoiKernel_h
#define vtkVoronoiKernel_h
#include "vtkFiltersPointsModule.h" // For export macro
#include "vtkInterpolationKernel.h"
class vtkIdList;
class vtkDoubleArray;
class VTKFILTERSPOINTS_EXPORT vtkVoronoiKernel : public vtkInterpolationKernel
{
public:
//@{
/**
* Standard methods for instantiation, obtaining type information, and printing.
*/
static vtkVoronoiKernel *New();
vtkTypeMacro(vtkVoronoiKernel,vtkInterpolationKernel);
void PrintSelf(ostream& os, vtkIndent indent);
//@}
/**
* Given a point x (and optional associated ptId), determine the points
* around x which form an interpolation basis. The user must provide the
* vtkIdList pIds, which will be dynamically resized as necessary. The
* method returns the number of points in the basis. Typically this method
* is called before ComputeWeights().
*/
virtual vtkIdType ComputeBasis(double x[3], vtkIdList *pIds, vtkIdType ptId=0);
/**
* Given a point x, and a list of basis points pIds, compute interpolation
* weights associated with these basis points. Note that both the nearby
* basis points list pIds and the weights array are provided by the caller
* of the method, and may be dynamically resized as necessary. Typically
* this method is called after ComputeBasis(), although advanced users can
* invoke ComputeWeights() and provide the interpolation basis points pIds
* directly.
*/
virtual vtkIdType ComputeWeights(double x[3], vtkIdList *pIds,
vtkDoubleArray *weights);
protected:
vtkVoronoiKernel();
~vtkVoronoiKernel();
private:
vtkVoronoiKernel(const vtkVoronoiKernel&) VTK_DELETE_FUNCTION;
void operator=(const vtkVoronoiKernel&) VTK_DELETE_FUNCTION;
};
#endif
|