VTK
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 
58 class VTKCOMMONDATAMODEL_EXPORT vtkMeanValueCoordinatesInterpolator : public vtkObject
59 {
60 public:
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 
90 protected:
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 
107 private:
109  void operator=(const vtkMeanValueCoordinatesInterpolator&) VTK_DELETE_FUNCTION;
110 };
111 
112 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
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:36
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
compute interpolation computes for closed triangular mesh
object to represent cell connectivity
Definition: vtkCellArray.h:50
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