You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#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, VecDouble &vecX, VecDouble &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<iCurveDesc> m_vecCurveDesc;
|
|
|
|
|
};
|