//=========================================================================== // 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. //=========================================================================== 00015 #ifndef _LIFTCURVE_ 00016 #define _LIFTCURVE_ 00017 00018 00019 00020 #include "GoTools/utils/Point.h" 00021 #include "GoTools/creators/EvalCurve.h" 00022 #include "GoTools/geometry/SplineCurve.h" 00023 #include "GoTools/geometry/SplineSurface.h" 00024 00025 #include <boost/smart_ptr.hpp> 00026 00027 namespace Go 00028 { 00029 00033 00034 class LiftCurve : public EvalCurve 00035 { 00036 public: 00037 00044 LiftCurve(boost::shared_ptr<Go::ParamCurve>& parameter_crv, 00045 boost::shared_ptr<Go::ParamSurface>& surf, 00046 double epsgeo); 00047 00049 virtual ~LiftCurve(); 00050 00051 // Inherited from EvalCurve 00052 virtual Point eval( double t) const; 00053 00054 // Inherited from EvalCurve 00055 virtual void eval(double t, int n, Point der[]) const; 00056 00057 // Inherited from EvalCurve 00058 virtual double start() const; 00059 00060 // Inherited from EvalCurve 00061 virtual double end() const; 00062 00064 virtual int dim() const; 00065 00075 virtual bool approximationOK(double par, Point approxpos, 00076 double tol1, double tol2) const; 00077 00078 private: 00079 const boost::shared_ptr<Go::ParamCurve> parameter_crv_; 00080 const boost::shared_ptr<Go::ParamSurface> surf_; 00081 const double epsgeo_; 00082 00083 }; 00084 00085 00086 } // namespace Go 00087 00088 #endif //_LIFTCURVE_
Generated on Tue Sep 21 15:44:16 2010 for GoTools Core by  doxygen 1.6.3