📄 xgmovie.h
字号:
extern "C" {#include "../src/xgrafixint.h"#include "stdio.h"}extern int MAX_LIN;/*#define max(x,y) ((x)>(y))? (x):(y)*/class StructureData {public: int n; int fillFlag; int lineColor; int fillColor; SCALAR *points;};class plot {protected: char *filename; // filename from which the plots come LabelType label; List<StructureData> structures;public: int xloc; int yloc; virtual void updatePlot(double time) = 0; // bring the plot up to this time plot(char *_filename,int xloc,int yloc); virtual ~plot() {};}; // scatter plots or line plotsclass One_D_plot_data {public: SCALAR *x; SCALAR *y; int n; int color; SCALAR time; One_D_plot_data(){};};class One_D_plot : public plot { protected: List< List<One_D_plot_data> > graphdata; ListIter<List<One_D_plot_data> > *current; List< One_D_plot_data> current_data;public: virtual void updatePlot(double time); One_D_plot(char *_filename,int xloc,int yloc);};class ScatterPlot : public One_D_plot {public: ScatterPlot(char *_filename,int xloc,int yloc);};class LinePlot : public One_D_plot {public: LinePlot(char *_filename,int xloc,int yloc);};class SurfacePlotData {public: SCALAR **z; SCALAR time;}; class SurfacePlot: public plot {public: int n,m; SCALAR *x; SCALAR *y; SCALAR **z; List< SurfacePlotData > graphdata; ListIter<SurfacePlotData> *current; virtual void updatePlot(double time); SurfacePlot(char *_filename,int xloc,int yloc);};class VectorPlotData {public: SCALAR **z; SCALAR **w; SCALAR time;}; class VectorPlot: public plot {public: int n,m; SCALAR *x; SCALAR *y; SCALAR **z; SCALAR **w; List< VectorPlotData > graphdata; ListIter<VectorPlotData> *current; virtual void updatePlot(double time); VectorPlot(char *_filename,int xloc,int yloc);};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -