00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef PLOT_DATA_HH_
00022 #define PLOT_DATA_HH_
00023
00024
00025
00026
00027
00028
00029 #include <vector>
00030 #include <boost/shared_ptr.hpp>
00031 #include <ost/gui/module_config.hh>
00032 #include "plot_data_base.hh"
00033 #include "plot_data_entry.hh"
00034
00035 namespace ost{namespace gui{
00036
00037 class DLLEXPORT_OST_GUI PlotData: public PlotDataBase
00038 {
00039 public:
00040 PlotData();
00041 virtual ~PlotData();
00042
00043 virtual Real GetMinimumX();
00044 virtual Real GetMaximumX();
00045 virtual Real GetMinimumY();
00046 virtual Real GetMaximumY();
00047
00048 void AddXY(Real x, Real y, const QString& info = "");
00049 void AddXYQ(Real x, Real y, Real Q, const QString& info = "");
00050 void AddXYEQ(Real x, Real y,Real e, Real q, const QString& info = "");
00051 void AddXYE(Real x, Real y, Real e, const QString& info = "");
00052 void AddXEYE(Real x, Real ex, Real y, Real ey, const QString& info = "");
00053 void AddXEYEQ(Real x, Real ex, Real y, Real ey,Real Q, const QString& info = "");
00054 void AddY(Real y, const QString& info = "");
00055 void AddYQ(Real y, Real Q, const QString& info = "");
00056 void AddYE(Real y, Real e, const QString& info = "");
00057 void AddYEQ(Real y, Real ey,Real Q, const QString& info = "");
00058 void Clear();
00059
00060 PlotDataEntry GetPlotDataEntry(unsigned int idx);
00061 unsigned int GetCount();
00062
00063 protected:
00064 Real minx_;
00065 Real maxx_;
00066 Real miny_;
00067 Real maxy_;
00068 std::vector<PlotDataEntry> pde_vector_;
00069 };
00070
00071 typedef boost::shared_ptr<PlotData> PlotDataPtr;
00072
00073 }}
00074
00075 #endif