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.
nmWTAI-Platform/Include/mData/mSysUtilsPF/iDefineChartCurve.h

47 lines
937 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "ZxDot.h"
#include "iXmlBaseItem.h"
#include "mSysUtilsPF_global.h"
// 曲线定义
class M_SYSUTILS_PF_EXPORT iDefineChartCurve : public iXmlBaseItem
{
public:
iDefineChartCurve();
~iDefineChartCurve();
// 把List分配到成员变量
// 输入开始的m_listValues中index并且返回下一个index
virtual int allocateInfo(int nIndex);
// 写入xml
void writeInfo(QDomElement& e,QDomDocument &doc);
protected:
virtual void initXmlTags();
private:
// 颜色相关
static QColor strToClr(QString s, bool bLine);
static QColor defaultClr(bool bLine);
public:
// QString m_sName;
QString m_sAlias; //中文名称
bool m_bLineVisible;
ZxDot m_oDot; //点绘制模式
QPen m_oPen; //线绘制模式
bool m_bUseY2;
PlotObjectType m_oCurveType;
bool m_bReadonly;
};
typedef QVector<iDefineChartCurve*> vecCurveDefinesPtr;