VTK: Filters/Points/vtkInterpolationKernel.h Source File

| VTK 9.3.1

vtkInterpolationKernel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
39 #ifndef vtkInterpolationKernel_h
40 #define vtkInterpolationKernel_h
41
42 #include "vtkFiltersPointsModule.h" // For export macro
43 #include "vtkObject.h"
44
45 VTK_ABI_NAMESPACE_BEGIN
46 class vtkAbstractPointLocator;
47 class vtkIdList;
48 class vtkDoubleArray;
49 class vtkDataSet;
50 class vtkPointData;
51
52 class VTKFILTERSPOINTS_EXPORT vtkInterpolationKernel : public vtkObject
53 {
54 public:
56
59 vtkAbstractTypeMacro(vtkInterpolationKernel, vtkObject);
60 void PrintSelf(ostream& os, vtkIndent indent) override;
62
72 virtual void Initialize(vtkAbstractPointLocator* loc, vtkDataSet* ds, vtkPointData* pd);
73
75
81 vtkSetMacro(RequiresInitialization, bool);
82 vtkGetMacro(RequiresInitialization, bool);
83 vtkBooleanMacro(RequiresInitialization, bool);
85
95 virtual vtkIdType ComputeBasis(double x[3], vtkIdList* pIds, vtkIdType ptId = 0) = 0;
96
107 virtual vtkIdType ComputeWeights(double x[3], vtkIdList* pIds, vtkDoubleArray* weights) = 0;
108
109 protected:
110 vtkInterpolationKernel();
111 ~vtkInterpolationKernel() override;
112
113 bool RequiresInitialization;
114 vtkAbstractPointLocator* Locator;
115 vtkDataSet* DataSet;
116 vtkPointData* PointData;
117
118 // Just clear out the data. Can be overloaded by subclasses as necessary.
119 virtual void FreeStructures();
120
121 private:
122 vtkInterpolationKernel(const vtkInterpolationKernel&) = delete;
123 void operator=(const vtkInterpolationKernel&) = delete;
124 };
125
126 VTK_ABI_NAMESPACE_END
127 #endif
vtkAbstractPointLocator
abstract class to quickly locate points in 3-space
Definition: vtkAbstractPointLocator.h:31
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:40
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:32
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInterpolationKernel
base class for interpolation kernels
Definition: vtkInterpolationKernel.h:53
vtkInterpolationKernel::vtkAbstractTypeMacro
vtkAbstractTypeMacro(vtkInterpolationKernel, vtkObject)
Standard method for type and printing.
vtkInterpolationKernel::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard method for type and printing.
vtkInterpolationKernel::vtkInterpolationKernel
vtkInterpolationKernel()
vtkInterpolationKernel::DataSet
vtkDataSet * DataSet
Definition: vtkInterpolationKernel.h:115
vtkInterpolationKernel::ComputeWeights
virtual vtkIdType ComputeWeights(double x[3], vtkIdList *pIds, vtkDoubleArray *weights)=0
Given a point x, and a list of basis points pIds, compute interpolation weights associated with these...
vtkInterpolationKernel::ComputeBasis
virtual vtkIdType ComputeBasis(double x[3], vtkIdList *pIds, vtkIdType ptId=0)=0
Given a point x (and optional associated point id), determine the points around x which form an inter...
vtkInterpolationKernel::Initialize
virtual void Initialize(vtkAbstractPointLocator *loc, vtkDataSet *ds, vtkPointData *pd)
Initialize the kernel.
vtkInterpolationKernel::Locator
vtkAbstractPointLocator * Locator
Definition: vtkInterpolationKernel.h:114
vtkInterpolationKernel::~vtkInterpolationKernel
~vtkInterpolationKernel() override
vtkInterpolationKernel::FreeStructures
virtual void FreeStructures()
vtkInterpolationKernel::RequiresInitialization
bool RequiresInitialization
Definition: vtkInterpolationKernel.h:113
vtkInterpolationKernel::PointData
vtkPointData * PointData
Definition: vtkInterpolationKernel.h:116
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:39
vtkObject.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315