ParamFunctionInt.h

00001 //===========================================================================
00002 // GoTools - SINTEF Geometry Tools
00003 //
00004 // GoTools module: Intersections, version 1.0
00005 //
00006 // Copyright (C) 2000-2007 SINTEF ICT, Applied Mathematics, Norway.
00007 //
00008 // This program is free software; you can redistribute it and/or          
00009 // modify it under the terms of the GNU General Public License            
00010 // as published by the Free Software Foundation version 2 of the License. 
00011 //
00012 // This program is distributed in the hope that it will be useful,        
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of         
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          
00015 // GNU General Public License for more details.                           
00016 //
00017 // You should have received a copy of the GNU General Public License      
00018 // along with this program; if not, write to the Free Software            
00019 // Foundation, Inc.,                                                      
00020 // 59 Temple Place - Suite 330,                                           
00021 // Boston, MA  02111-1307, USA.                                           
00022 //
00023 // Contact information: E-mail: tor.dokken@sintef.no                      
00024 // SINTEF ICT, Department of Applied Mathematics,                         
00025 // P.O. Box 124 Blindern,                                                 
00026 // 0314 Oslo, Norway.                                                     
00027 //
00028 // Other licenses are also available for this software, notably licenses
00029 // for:
00030 // - Building commercial software.                                        
00031 // - Building software whose source code you wish to keep private.        
00032 //===========================================================================
00033 #ifndef _PARAMFUNCTIONINT_H
00034 #define _PARAMFUNCTIONINT_H
00035 
00036 
00037 #include "ParamObjectInt.h"
00038 #include "BoundaryFunctionInt.h"
00039 #include <boost/shared_ptr.hpp>
00040 
00041 
00042 namespace Go {
00045 
00046 
00047 
00048 class ParamFunctionInt;
00049 class Param0FunctionInt;
00050 class Param1FunctionInt;
00051 class Param2FunctionInt;
00052 
00053 
00056 
00057 class ParamFunctionInt : public ParamObjectInt {
00058 public:
00060     virtual ~ParamFunctionInt(){};
00061 
00064     virtual Param0FunctionInt* getParam0FunctionInt()
00065     { return NULL; } // To be overloaded in Param0FuntionInt.
00066 
00069     virtual Param1FunctionInt* getParam1FunctionInt()
00070     { return NULL; } // To be overloaded in Param1FuntionInt.
00071 
00074     virtual Param2FunctionInt* getParam2FunctionInt()
00075     { return NULL; } // To be overloaded in Param2FuntionInt.
00076 
00086     virtual void subdivide(int pardir, double par, 
00087                            std::vector<boost::
00088                            shared_ptr<ParamFunctionInt> >& subdiv_objs,
00089                            std::vector<boost::
00090                            shared_ptr<ParamFunctionInt> >& bd_objs) = 0;
00091 
00095 
00096     // The returned dir is of interest for the 2par-case only.
00097     // Accepts non-strict monotonicity, as long as sf is not totally
00098     // flat.
00099     virtual bool monotone(Point& dir, double tol=1.0e-15) const = 0;
00100 
00103     virtual void 
00104     getBoundaryObjects(std::vector<boost::
00105                        shared_ptr<BoundaryFunctionInt> >& bd_objs) = 0;
00106 
00111     virtual int getMeshSize(int dir) = 0;
00112 
00118     virtual double paramFromMesh(int dir, int idx) = 0;
00119 
00121     virtual std::vector<double>::iterator getMesh() = 0;
00122 
00123 protected:
00124     std::vector<boost::shared_ptr<BoundaryFunctionInt> > boundary_obj_;
00125 
00126 };
00127 
00128     
00130 } // namespace Go
00131 
00132 
00133 #endif // _PARAMFUNCTIONINT_H
00134 
00135 

Generated on Fri Nov 23 12:24:33 2007 for GoTools Intersections Library by  doxygen 1.5.1