VTK
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
58class vtkIdList;
59class vtkDoubleArray;
60class vtkDataSet;
61class vtkPointData;
62
63
64class VTKFILTERSPOINTS_EXPORT vtkInterpolationKernel : public vtkObject
65{
66public:
68
72 void PrintSelf(ostream& os, vtkIndent indent);
74
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
123protected:
126
131
132 // Just clear out the data. Can be overloaded by subclasses as necessary.
133 virtual void FreeStructures();
134
135private:
136 vtkInterpolationKernel(const vtkInterpolationKernel&) VTK_DELETE_FUNCTION;
137 void operator=(const vtkInterpolationKernel&) VTK_DELETE_FUNCTION;
138};
139
140#endif
abstract class to quickly locate points in 3-space
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
dynamic, self-adjusting array of double
list of point or cell ids
Definition: vtkIdList.h:37
a simple class to control print indentation
Definition: vtkIndent.h:40
base class for interpolation kernels
vtkAbstractTypeMacro(vtkInterpolationKernel, vtkObject)
Standard method for type and printing.
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...
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...
virtual void Initialize(vtkAbstractPointLocator *loc, vtkDataSet *ds, vtkPointData *pd)
Initialize the kernel.
vtkAbstractPointLocator * Locator
virtual void FreeStructures()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
abstract base class for most VTK objects
Definition: vtkObject.h:60
represent and manipulate point attribute data
Definition: vtkPointData.h:38
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287