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/mSysUtilsCO2/co2PlotXmlDefine.h

58 lines
1.5 KiB
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 "mModuleDefines.h"
#include "mSysUtilsCO2_global.h"
// 图Chart定义载体
class M_SYSUTILS_CO2_EXPORT co2PlotXmlDefine : public iXmlBaseItem
{
public:
co2PlotXmlDefine();
~co2PlotXmlDefine();
// 把List分配到成员变量
// 输入开始的m_listValues中index并且返回下一个index
virtual int allocateInfo(int nIndex);
// 写入xml
void writeInfo(QDomElement& e,QDomDocument &doc);
// 这是用于方案存取时,该指标保存时对应的具体数据索引
// 如果没设置则返回最后一条Curve的名称
QString getSchIndexName();
protected:
virtual void initXmlTags();
private:
// 颜色相关
static QColor strToClr(QString s, bool bLine);
static QColor defaultClr(bool bLine);
public:
// QString m_sName;
QString m_sTitle; //图标题
ChartRenderType m_oType; //类型
QString m_sNameX; //坐标轴相关
QString m_sUnitX;
QString m_sNameY;
QString m_sUnitY;
QString m_sDataX; //数据源头标识来自ParaManager
QString m_sDataY;
// 曲线相关
QString m_sCurveName;
ZxDot m_oDot; //点绘制模式
QPen m_oPen; //线绘制模式
// <Plot Name="DistribS_P" Title="压力分布" Type="Base" NameX="压力"
// UnitX="MPa" DataX="co2_rst_x1" NameY="井筒深度" UnitY="m" DataY=""
// CurveName="DistribS_P" LineClr="(0,128,0)" LineWidth="0.2" LineStyle="1" />
};