ConstantF.h

Go to the documentation of this file.
00001 /* -*- mode: c++ -*-
00002  *
00003  * HippoPlot ConstantF  class interface
00004  *
00005  * Copyright (C) 2000, 2003   The Board of Trustees of The Leland
00006  * Stanford Junior University.  All Rights Reserved.
00007  *
00008  * $Id: ConstantF_8h-source.html,v 1.40 2008/03/24 19:27:28 pfkeb Exp $
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 } // namespace hippodraw
00059 
00060 #endif // _ConstantF_H_

Generated for HippoDraw Class Library by doxygen