VTK  9.2.6
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 
76  static void ComputeInterpolationWeights(
77  const double x[3], vtkPoints* pts, vtkIdList* tris, double* weights);
78 
86  static void ComputeInterpolationWeights(
87  const double x[3], vtkPoints* pts, vtkCellArray* tris, double* weights);
88 
89 protected:
92 
96  static void ComputeInterpolationWeightsForTriangleMesh(
97  const double x[3], vtkPoints* pts, vtkMVCTriIterator& iter, double* weights);
98 
102  static void ComputeInterpolationWeightsForPolygonMesh(
103  const double x[3], vtkPoints* pts, vtkMVCPolyIterator& iter, double* weights);
104 
105 private:
107  void operator=(const vtkMeanValueCoordinatesInterpolator&) = delete;
108 };
109 
110 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
list of point or cell ids
Definition: vtkIdList.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
compute interpolation computes for closed triangular mesh
object to represent cell connectivity
Definition: vtkCellArray.h:186
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points
Definition: vtkPoints.h:39