//=========================================================================== // 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. //===========================================================================

EvalCurveSet.h

Go to the documentation of this file.
00001 #ifndef _EVALCURVESET_H_
00002 #define _EVALCURVESET_H_
00003 
00004 
00005 #include "GoTools/utils/Point.h"
00006 
00007 #include <vector>
00008 
00009 namespace Go
00010 {
00011 
00016 class EvalCurveSet
00017 {
00018 public:
00020     virtual ~EvalCurveSet()
00021     {}
00022   
00026     virtual std::vector<Point> eval(double t)=0;
00027 
00032     virtual void eval(double t, int n, std::vector<std::vector<Point> >& der)=0; // n = order of diff
00033 
00036     virtual double start()=0;
00037 
00040     virtual double end()=0;
00041 
00044     virtual int dim() = 0;
00045 
00053     virtual bool approximationOK(double par, const std::vector<Point>& approxpos,
00054                                  double tol1, double tol2)=0;
00055 
00058     virtual int nmbCvs() = 0;
00059 
00061     virtual void resetErr()
00062     {
00063       ; // Nothing to do. Overruled when required
00064     }
00065 
00066 };
00067 
00068 } // namespace Go
00069 
00070 #endif // _EVALCURVESET_H_
Generated on Tue Sep 21 15:44:16 2010 for GoTools Core by  doxygen 1.6.3