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

SpaceIntCrv.h

Go to the documentation of this file.
00001 #ifndef _SPACEINTCRV_
00002 #define _SPACEINTCRV_
00003 
00004 #include "GoTools/creators/EvalCurve.h"
00005 #include "GoTools/geometry/CurveOnSurface.h"
00006 #include "GoTools/utils/Point.h"
00007 
00008 namespace Go
00009 {
00012   class SpaceIntCrv : public EvalCurve
00013   {
00014   public:
00016     SpaceIntCrv(boost::shared_ptr<ParamCurve> init_crv, int pardir,
00017                 std::vector<boost::shared_ptr<CurveOnSurface> >& sfcv1, 
00018                 std::vector<double> start1, 
00019                 std::vector<double> end1,
00020                 std::vector<boost::shared_ptr<CurveOnSurface> >& sfcv2,
00021                 std::vector<double> start2, std::vector<double> end2,
00022                 std::vector<bool> opposite, bool same_orient);
00023 
00025     virtual ~SpaceIntCrv();
00026 
00030     virtual Point eval(double t) const;
00031 
00036     virtual void eval(double t, int n, Point der[]) const; // n = order of diff
00037 
00040     virtual double start() const;
00041 
00044     virtual double end() const;
00045 
00047     virtual int dim() const;
00048 
00056     virtual bool approximationOK(double par, Point approxpos,
00057                                  double tol1, double tol2) const;
00058 
00059   private:
00060     boost::shared_ptr<ParamCurve> init_crv_;
00061     std::vector<boost::shared_ptr<CurveOnSurface> > sfcv1_;
00062     std::vector<boost::shared_ptr<CurveOnSurface> > sfcv2_;
00063     std::vector<double> start1_, end1_, start2_, end2_;
00064     std::vector<double> segment_;
00065     std::vector<bool> opposite_;
00066     bool same_orient_;
00067 
00068     void evaluate(double t, int n, Point result[]) const;
00069   };
00070 
00071 } // namespace Go
00072 
00073 #endif //_SPACEINTCRV_
Generated on Tue Sep 21 15:44:16 2010 for GoTools Core by  doxygen 1.6.3