VTK
vtkMeanValueCoordinatesInterpolator.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkMeanValueCoordinatesInterpolator.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
42#ifndef vtkMeanValueCoordinatesInterpolator_h
43#define vtkMeanValueCoordinatesInterpolator_h
44
45#include "vtkCommonDataModelModule.h" // For export macro
46#include "vtkObject.h"
47
48class vtkPoints;
49class vtkIdList;
50class vtkCellArray;
51class vtkDataArray;
52
53//Special internal class for iterating over data
54class vtkMVCTriIterator;
55class vtkMVCPolyIterator;
56
57
58class VTKCOMMONDATAMODEL_EXPORT vtkMeanValueCoordinatesInterpolator : public vtkObject
59{
60public:
62
67 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
69
77 static void ComputeInterpolationWeights(double x[3], vtkPoints *pts,
78 vtkIdList *tris, double *weights);
79
87 static void ComputeInterpolationWeights(double x[3], vtkPoints *pts,
88 vtkCellArray *tris, double *weights);
89
90protected:
93
97 static void ComputeInterpolationWeightsForTriangleMesh(
98 double x[3], vtkPoints *pts, vtkMVCTriIterator& iter, double *weights);
99
103 static void ComputeInterpolationWeightsForPolygonMesh(
104 double x[3], vtkPoints *pts, vtkMVCPolyIterator& iter, double *weights);
105
106
107private:
109 void operator=(const vtkMeanValueCoordinatesInterpolator&) VTK_DELETE_FUNCTION;
110};
111
112#endif
object to represent cell connectivity
Definition: vtkCellArray.h:51
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
list of point or cell ids
Definition: vtkIdList.h:37
a simple class to control print indentation
Definition: vtkIndent.h:40
compute interpolation computes for closed triangular mesh
static vtkMeanValueCoordinatesInterpolator * New()
Standard instantiable class methods.
static void ComputeInterpolationWeights(double x[3], vtkPoints *pts, vtkIdList *tris, double *weights)
Method to generate interpolation weights for a point x[3] from a list of triangles.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static void ComputeInterpolationWeights(double x[3], vtkPoints *pts, vtkCellArray *tris, double *weights)
Method to generate interpolation weights for a point x[3] from a list of polygonal faces.
abstract base class for most VTK objects
Definition: vtkObject.h:60
represent and manipulate 3D points
Definition: vtkPoints.h:40