00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _ConstantF_H_
00013 #define _ConstantF_H_
00014
00015 #include "FunctionBase.h"
00016
00017 namespace hippodraw {
00018
00029 class MDL_HIPPOPLOT_API ConstantF : public FunctionBase
00030 {
00031 protected:
00032
00034 virtual void initialize ();
00035
00036 public:
00037
00039 ConstantF ();
00040
00043 explicit ConstantF ( double value );
00044
00045 virtual FunctionBase * clone () const;
00046
00048 virtual double operator () ( double x ) const;
00049
00050 virtual void initialParameters ( const FunctionHelper * helper );
00051
00052 protected:
00053
00054 virtual double derivByParm ( int i, double x ) const;
00055
00056 };
00057
00058 }
00059
00060 #endif // _ConstantF_H_