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 "vtkObject.h"
45 
46 class vtkPoints;
47 class vtkIdList;
48 class vtkCellArray;
49 class vtkDataArray;
50 
51 //Special internal class for iterating over data
52 class vtkMVCTriIterator;
53 class vtkMVCPolyIterator;
54 
55 
57 {
58 public:
60 
63  void PrintSelf(ostream& os, vtkIndent indent);
65 
67 
72  static void ComputeInterpolationWeights(double x[3], vtkPoints *pts,
73  vtkIdList *tris, double *weights);
75 
77 
83  static void ComputeInterpolationWeights(double x[3], vtkPoints *pts,
84  vtkCellArray *tris, double *weights);
85 protected:
89 
91 
92  static void ComputeInterpolationWeightsForTriangleMesh(
93  double x[3], vtkPoints *pts, vtkMVCTriIterator& iter, double *weights);
95 
97 
99  static void ComputeInterpolationWeightsForPolygonMesh(
100  double x[3], vtkPoints *pts, vtkMVCPolyIterator& iter, double *weights);
102 
103 
104 private:
106  void operator=(const vtkMeanValueCoordinatesInterpolator&); // Not implemented.
107 };
108 
109 #endif