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 =========================================================================*/
41 #ifndef vtkMeanValueCoordinatesInterpolator_h
42 #define vtkMeanValueCoordinatesInterpolator_h
43 
44 #include "vtkCommonDataModelModule.h" // For export macro
45 #include "vtkObject.h"
46 
47 class vtkPoints;
48 class vtkIdList;
49 class vtkCellArray;
50 class vtkDataArray;
51 
52 //Special internal class for iterating over data
53 class vtkMVCTriIterator;
54 class vtkMVCPolyIterator;
55 
56 
58 {
59 public:
61 
64  void PrintSelf(ostream& os, vtkIndent indent);
66 
68 
73  static void ComputeInterpolationWeights(double x[3], vtkPoints *pts,
74  vtkIdList *tris, double *weights);
76 
78 
84  static void ComputeInterpolationWeights(double x[3], vtkPoints *pts,
85  vtkCellArray *tris, double *weights);
86 protected:
90 
92 
93  static void ComputeInterpolationWeightsForTriangleMesh(
94  double x[3], vtkPoints *pts, vtkMVCTriIterator& iter, double *weights);
96 
98 
100  static void ComputeInterpolationWeightsForPolygonMesh(
101  double x[3], vtkPoints *pts, vtkMVCPolyIterator& iter, double *weights);
103 
104 
105 private:
107  void operator=(const vtkMeanValueCoordinatesInterpolator&); // Not implemented.
108 };
109 
110 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
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:49
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate 3D points
Definition: vtkPoints.h:38