VTK  9.0.2
vtkMeanValueCoordinatesInterpolator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkMeanValueCoordinatesInterpolator.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 =========================================================================*/
42 #ifndef vtkMeanValueCoordinatesInterpolator_h
43 #define vtkMeanValueCoordinatesInterpolator_h
44 
45 #include "vtkCommonDataModelModule.h" // For export macro
46 #include "vtkObject.h"
47 
48 class vtkPoints;
49 class vtkIdList;
50 class vtkCellArray;
51 class vtkDataArray;
52 
53 // Special internal class for iterating over data
54 class vtkMVCTriIterator;
55 class vtkMVCPolyIterator;
56 
57 class VTKCOMMONDATAMODEL_EXPORT vtkMeanValueCoordinatesInterpolator : public vtkObject
58 {
59 public:
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 
89 protected:
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 
105 private:
107  void operator=(const vtkMeanValueCoordinatesInterpolator&) = delete;
108 };
109 
110 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:180
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
list of point or cell ids
Definition: vtkIdList.h:31
a simple class to control print indentation
Definition: vtkIndent.h:34
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
Methods invoked by print to print information about the object including superclasses.
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:63
represent and manipulate 3D points
Definition: vtkPoints.h:34