[QGIS Commit] r10299 -
branches/analysis_branch/src/analysis/interpolation
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Thu Mar 19 12:57:19 EDT 2009
Author: mhugent
Date: 2009-03-19 12:57:18 -0400 (Thu, 19 Mar 2009)
New Revision: 10299
Added:
branches/analysis_branch/src/analysis/interpolation/TriangleInterpolator.cc
branches/analysis_branch/src/analysis/interpolation/TriangleInterpolator.h
Log:
Add missing class
Added: branches/analysis_branch/src/analysis/interpolation/TriangleInterpolator.cc
===================================================================
--- branches/analysis_branch/src/analysis/interpolation/TriangleInterpolator.cc (rev 0)
+++ branches/analysis_branch/src/analysis/interpolation/TriangleInterpolator.cc 2009-03-19 16:57:18 UTC (rev 10299)
@@ -0,0 +1,3 @@
+#include "TriangleInterpolator.h"
+
+//empty file, all methods are inline
Added: branches/analysis_branch/src/analysis/interpolation/TriangleInterpolator.h
===================================================================
--- branches/analysis_branch/src/analysis/interpolation/TriangleInterpolator.h (rev 0)
+++ branches/analysis_branch/src/analysis/interpolation/TriangleInterpolator.h 2009-03-19 16:57:18 UTC (rev 10299)
@@ -0,0 +1,42 @@
+/***************************************************************************
+ TriangleInterpolator.h - description
+ -------------------
+ copyright : (C) 2004 by Marco Hugentobler
+ email : mhugent at geo.unizh.ch
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef TINTERPOLATOR_H
+#define TINTERPOLATOR_H
+
+#include <Point3D.h>
+#include <Vector3D.h>
+
+/**This is an interface for interpolator classes for triangulations*/
+class TriangleInterpolator
+{
+ public:
+ virtual ~TriangleInterpolator() {}
+ /**Calculates the normal vector and assigns it to vec*/
+ virtual bool calcNormVec( double x, double y, Vector3D* result ) = 0;
+ /**Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point*/
+ virtual bool calcPoint( double x, double y, Point3D* result ) = 0;
+};
+
+#endif
+
+
+
+
+
+
+
+
More information about the QGIS-commit
mailing list