00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef _SPLINE2FUNCTIONINT_H
00034 #define _SPLINE2FUNCTIONINT_H
00035
00036
00037 #include "Param2FunctionInt.h"
00038
00039
00040 namespace Go {
00043
00044
00045
00048
00049 class Spline2FunctionInt : public Param2FunctionInt {
00050 public:
00054 explicit Spline2FunctionInt(boost::shared_ptr<SplineSurface> surf);
00055
00060 explicit Spline2FunctionInt(boost::shared_ptr<SplineSurface> surf,
00061 Param2FunctionInt *parent);
00062
00064 virtual ~Spline2FunctionInt(){};
00065
00070 virtual boost::shared_ptr<Param2FunctionInt>
00071 makeIntFunction(boost::shared_ptr<ParamSurface> surf);
00072
00077 virtual bool hasInnerKnots(int pardir) const;
00078
00083 virtual bool hasCriticalValsOrKnots(int pardir) const;
00084
00089 virtual std::vector<double> getInnerKnotVals(int pardir,
00090 bool sort=false) const;
00091
00096 virtual std::vector<double> getCriticalValsAndKnots(int pardir) const;
00097
00098
00099
00100
00101
00106 virtual double startParam(int pardir) const;
00107
00112 virtual double endParam(int pardir) const;
00113
00114
00115
00116
00117
00118
00123 virtual bool monotone(Point& dir, double tol=1.0e-15) const;
00124
00125
00126
00127
00128
00136 virtual int knotIntervalFuzzy(int pardir, double& t, double tol) const;
00137
00145 virtual double nextSegmentVal(int pardir, double par, bool forward) const;
00146
00149 virtual void
00150 getBoundaryObjects(std::vector<boost::
00151 shared_ptr<BoundaryFunctionInt> >& bd_objs);
00152
00156 boost::shared_ptr<SplineSurface> surface3D();
00157
00161 boost::shared_ptr<SplineSurface> createGradSurface() const;
00162
00163 protected:
00164
00165 boost::shared_ptr<SplineSurface> spsf_;
00166
00167
00168 };
00169
00170
00172 }
00173
00174
00175 #endif // _SPLINE2FUNCTIONINT_H
00176
00177