//=========================================================================== // 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 _INTEGRATE_H_ 00002 #define _INTEGRATE_H_ 00003 #include <boost/smart_ptr.hpp> 00004 #include "GoTools/geometry/SplineCurve.h" 00005 00006 namespace Go 00007 { 00008 00009 class BsplineBasis; 00010 00012 00023 void GaussQuadValues(const BsplineBasis& basis, 00024 std::vector<double>& parameters, 00025 std::vector<double>& par_weights); 00026 00027 00039 void GaussQuadInner(const BsplineBasis& basis, int ider, double lim1, 00040 double lim2, double*** integral); 00041 00042 00057 void GaussQuadInnerFlat(const BsplineBasis& basis, int derivs, int start_der, int gap, 00058 double lim1, double lim2, std::vector<double>& integral); 00059 00071 void GaussQuadInner2(const BsplineBasis& basis, int ider, double lim1, 00072 double lim2, double** integral); 00073 00087 void GaussQuadInnerRational(const BsplineBasis& basis, int ider, double lim1, 00088 double lim2, boost::shared_ptr<SplineCurve> bspline_curve, 00089 double*** integral); 00090 00091 00092 }; 00093 #endif