00001 #ifndef __GNUPLOT_ANIM 00002 #define __GNUPLOT_ANIM 00003 #include "gnuplotdeal.h" 00004 #include "iostream" 00005 00006 #define _PREFIX_FILE png 00007 00008 00009 00010 using std::cout; 00011 using std::endl; 00012 using std::string; 00013 00014 class GnuPlotAnim : public GnuPlotDeal 00015 { 00016 private: 00017 long m_iScreen; 00018 string m_sufIn; 00019 string m_prefix; 00020 string m_terminal; 00021 string m_out; 00022 int m_iDelay; 00023 00024 GnuPlotAnim(string strPrefix="SCREEN",string strSufIn="png",string termOptions=""); 00025 00026 static GnuPlotAnim *plotSingleton; 00027 00028 protected: 00029 00030 00031 public: 00032 static GnuPlotAnim& getGnuPlotAnim(); 00033 ~GnuPlotAnim(); 00034 void setGnuPlotAnim(string strPrefix,string strSufIn,string termOptions=""); 00035 void setFileSufix(string strSufix){m_sufIn=strSufix;} 00036 void NextScene(); 00037 void Draw(); 00038 }; 00039 00040 #endif