//=========================================================================== // GoTools Core - SINTEF Geometry Tools Core library, version 2.0.1 // // Copyright (C) 2000-2007, 2010 SINTEF ICT, Applied Mathematics, Norway. // // 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 version 2 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., // 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. // // Contact information: E-mail: tor.dokken@sintef.no // SINTEF ICT, Department of Applied Mathematics, // P.O. Box 124 Blindern, // 0314 Oslo, Norway. // // Other licenses are also available for this software, notably licenses // for: // - Building commercial software. // - Building software whose source code you wish to keep private. //===========================================================================
00001 #ifndef _EVALCURVE_H_ 00002 #define _EVALCURVE_H_ 00003 00004 #include "GoTools/utils/Point.h" 00005 00006 00007 00008 namespace Go 00009 { 00010 00014 00015 class EvalCurve 00016 { 00017 public: 00019 virtual ~EvalCurve(); 00020 00024 virtual Point eval( double t) const = 0; 00025 00038 virtual void eval( double t, int n, Point der[]) const = 0; // n = order of diff 00039 00042 virtual double start() const =0; 00043 00046 virtual double end() const =0; 00047 00050 virtual int dim() const = 0; 00051 00062 virtual bool approximationOK(double par, Point approxpos, 00063 double tol1, double tol2) const = 0; 00064 }; 00065 00066 } 00067 00068 #endif