fshake3d  0.0.1
FreeformDensity3DSurfaceEditor
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
scene_Plot1D.hpp
Go to the documentation of this file.
00001 #ifndef SCENE_PLOT1D_HPP
00002 #define SCENE_PLOT1D_HPP
00003 
00004 #include "Scene.hpp"
00005 #include <boost/function.hpp>
00006 
00007 typedef boost::function1<double, double> Function1D;
00008 
00009 class Plot1D : public Shape
00010 {
00011 public:
00012   Plot1D();
00013   void setEnabled(bool e);
00014   void setPosition(const Point3d& p);
00015   void setColor(const Vec4d& c);
00016   void setSteps(int steps);
00017   void setXLimits(const Vec2d& xlimits);
00018   void setXAxis(int xaxis);
00019   void setYAxis(int yaxis);
00020   void setFunction(const Function1D& f1d);
00021   void display();
00022   void setYScale(double yscale);
00023 private:
00024   bool    mEnabled;
00025   Point3d mPosition;
00026   Vec4d   mColor;
00027   int     mSteps;
00028   Vec2d   mXLimits;
00029   int     mXAxis;
00030   int     mYAxis;
00031   Function1D mFunc1D;
00032   double  mYScale;
00033 };
00034 
00035 #endif // SCENE_PLOT1D_HPP