⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.h

📁 graph是一款linux/unix下绘制数据曲线图形的程序
💻 H
字号:
#ifndef FUNCTION_H_#define FUNCTION_H_#include <glib.h>#include <mgl.h>#include <mgl_c.h>#include <vector>#include <iostream>#include "globals.h"enum DRAW_METHOD{    DM_PLOT,    DM_AREA,    DM_STEM,    DM_STEP,    DM_BARS,    DM_COUNT};enum GRAPH_DIM{    GM_ONE,    GM_TWO,    GM_THREE};struct Function{    Function()    {        data_x = 0;        data_y = 0;        xmin = -2;        xmax = 2;        eq = "";        show = true;        style = "b";        std::cout << "Function::I'm creating!" << std::endl;    }    ~Function()    {        mgl_delete_data(data_x);        mgl_delete_data(data_y);        g_free(eq);        std::cout << "Function::I'm destroying!" << std::endl;    }    gchar *eq;    HMDT data_x;    HMDT data_y;    GRAPH_DIM dims;    DRAW_METHOD dmethod;    bool show;    gdouble xmin, xmax, step;    gchar *style;};typedef std::vector<Function *> FunctionList;FunctionList &functions_get_function_list();voidfunctions_delete();Function *functions_add_function_with_dims1 (gdouble xmin, gdouble xmax, gdouble res);voidfunctions_delete_function (const gint index);gintfunctions_get_count ();voidfunctions_modify_function1 (Function *f, std::string str);std::stringfunctions_get_func_info (const gint num);#endif // FUNCTION_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -