VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkMeanValueCoordinatesInterpolator.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00041 #ifndef __vtkMeanValueCoordinatesInterpolator_h 00042 #define __vtkMeanValueCoordinatesInterpolator_h 00043 00044 #include "vtkCommonDataModelModule.h" // For export macro 00045 #include "vtkObject.h" 00046 00047 class vtkPoints; 00048 class vtkIdList; 00049 class vtkCellArray; 00050 class vtkDataArray; 00051 00052 //Special internal class for iterating over data 00053 class vtkMVCTriIterator; 00054 class vtkMVCPolyIterator; 00055 00056 00057 class VTKCOMMONDATAMODEL_EXPORT vtkMeanValueCoordinatesInterpolator : public vtkObject 00058 { 00059 public: 00061 00062 static vtkMeanValueCoordinatesInterpolator *New(); 00063 vtkTypeMacro(vtkMeanValueCoordinatesInterpolator,vtkObject); 00064 void PrintSelf(ostream& os, vtkIndent indent); 00066 00068 00073 static void ComputeInterpolationWeights(double x[3], vtkPoints *pts, 00074 vtkIdList *tris, double *weights); 00076 00078 00084 static void ComputeInterpolationWeights(double x[3], vtkPoints *pts, 00085 vtkCellArray *tris, double *weights); 00086 protected: 00087 vtkMeanValueCoordinatesInterpolator(); 00088 ~vtkMeanValueCoordinatesInterpolator(); 00090 00092 00093 static void ComputeInterpolationWeightsForTriangleMesh( 00094 double x[3], vtkPoints *pts, vtkMVCTriIterator& iter, double *weights); 00096 00098 00100 static void ComputeInterpolationWeightsForPolygonMesh( 00101 double x[3], vtkPoints *pts, vtkMVCPolyIterator& iter, double *weights); 00103 00104 00105 private: 00106 vtkMeanValueCoordinatesInterpolator(const vtkMeanValueCoordinatesInterpolator&); // Not implemented. 00107 void operator=(const vtkMeanValueCoordinatesInterpolator&); // Not implemented. 00108 }; 00109 00110 #endif