VTK  9.1.0
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
57class VTKCOMMONDATAMODEL_EXPORT vtkMeanValueCoordinatesInterpolator : public vtkObject
58{
59public:
61
66 void PrintSelf(ostream& os, vtkIndent indent) override;
68
77 const double x[3], vtkPoints* pts, vtkIdList* tris, double* weights);
78
87 const double x[3], vtkPoints* pts, vtkCellArray* tris, double* weights);
88
89protected:
92
97 const double x[3], vtkPoints* pts, vtkMVCTriIterator& iter, double* weights);
98
103 const double x[3], vtkPoints* pts, vtkMVCPolyIterator& iter, double* weights);
104
105private:
107 void operator=(const vtkMeanValueCoordinatesInterpolator&) = delete;
108};
109
110#endif
object to represent cell connectivity
Definition: vtkCellArray.h:290
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
list of point or cell ids
Definition: vtkIdList.h:140
a simple class to control print indentation
Definition: vtkIndent.h:113
compute interpolation computes for closed triangular mesh
static void ComputeInterpolationWeightsForPolygonMesh(const double x[3], vtkPoints *pts, vtkMVCPolyIterator &iter, double *weights)
Internal method that sets up the processing of general polyhedron meshes.
static vtkMeanValueCoordinatesInterpolator * New()
Standard instantiable class methods.
static void ComputeInterpolationWeightsForTriangleMesh(const double x[3], vtkPoints *pts, vtkMVCTriIterator &iter, double *weights)
Internal method that sets up the processing of triangular meshes.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard instantiable class methods.
static void ComputeInterpolationWeights(const 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.
static void ComputeInterpolationWeights(const double x[3], vtkPoints *pts, vtkIdList *tris, double *weights)
Method to generate interpolation weights for a point x[3] from a list of triangles.
abstract base class for most VTK objects
Definition: vtkObject.h:73
represent and manipulate 3D points
Definition: vtkPoints.h:143