#pragma once #include "mSubWnd_global.h" #include "mAlgDefines.h" #include "iGuiPlot.h" #include "iCurveDesc.h" //曲线的一些基本信息设置 class M_SUB_WND_EXPORT iModelCurveDesc { public: iModelCurveDesc(); ~iModelCurveDesc(); public: // 设置曲线数据 void setCurveDescData(QString s, VecFloat &vecX, VecFloat &vecY); // 得到曲线的数据iCurveDesc(主要用于替换) bool getCurveDescByName(QString s, int &ndex, iCurveDesc &o); // 设置曲线 void changeOrAppendCurveDesc(QString s, iCurveDesc &o); protected: // 初始化曲线的线型,颜色等 void initModelCurveDesc(); // 默认从后台模板加载一下 bool loadFromTeml(iCurveDesc& o); protected: QVector m_vecCurveDesc; };