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 _SPLINE1FUNCTIONINT_H
00034 #define _SPLINE1FUNCTIONINT_H
00035
00036
00037 #include "Param1FunctionInt.h"
00038
00039
00040 namespace Go {
00043
00044
00045
00046 class SplineCurve;
00047
00048
00051
00052 class Spline1FunctionInt : public Param1FunctionInt {
00053 public:
00059 explicit Spline1FunctionInt(boost::shared_ptr<ParamCurve> curve);
00060
00067 explicit Spline1FunctionInt(boost::shared_ptr<ParamCurve> curve,
00068 ParamFunctionInt *parent);
00069
00071 virtual ~Spline1FunctionInt() {};
00072
00079 virtual boost::shared_ptr<Param1FunctionInt>
00080 makeIntFunction(boost::shared_ptr<ParamCurve> curve);
00081
00086 virtual bool hasInnerKnots(int pardir) const;
00087
00092 virtual bool hasCriticalValsOrKnots(int pardir) const;
00093
00098 virtual std::vector<double> getInnerKnotVals(int pardir,
00099 bool sort = false) const;
00100
00105 virtual std::vector<double> getCriticalValsAndKnots(int pardir) const;
00106
00111 virtual int getMeshSize(int dir);
00112
00118 virtual double paramFromMesh(int dir, int idx);
00119
00122 virtual std::vector<double>::iterator getMesh();
00123
00124
00130 virtual bool monotone(Point& dir, double tol=1.0e-15) const;
00131
00132
00133
00134
00135
00141 virtual int knotIntervalFuzzy(double& t, double tol) const;
00142
00148 virtual double nextSegmentVal(double par, bool forward) const;
00149
00150 protected:
00151
00152
00153 boost::shared_ptr<SplineCurve> spcv_;
00154
00155
00156
00157 };
00158
00159
00161 }
00162
00163
00164 #endif // _SPLINE1FUNCTIONINT_H
00165
00166
00167