|
|
#pragma once
|
|
|
|
|
|
#include "ZxDataObjectBin.h"
|
|
|
|
|
|
class ZxRstWndPlot;
|
|
|
|
|
|
// RstWnd
|
|
|
class M_PROJECTMANAGER_EXPORT ZxRstWnd
|
|
|
: public ZxDataObjectBin
|
|
|
{
|
|
|
ZX_DECLARE_DYNAMIC
|
|
|
|
|
|
public:
|
|
|
|
|
|
ZxRstWnd();
|
|
|
ZxRstWnd(const ZxRstWnd &other);
|
|
|
virtual ~ZxRstWnd();
|
|
|
|
|
|
ZxRstWnd &operator = (const ZxRstWnd &other);
|
|
|
bool operator == (const ZxRstWnd &other) const;
|
|
|
bool operator != (const ZxRstWnd &other) const;
|
|
|
|
|
|
// 加载孩子节点
|
|
|
virtual bool createChildren();
|
|
|
|
|
|
public:
|
|
|
|
|
|
// 新增接口,20250210
|
|
|
|
|
|
/// @brief 保存该对象下面的子图件
|
|
|
/// @param ba(in):为plot的全部内容
|
|
|
/// @param sTag 图件标识,如果保存多个子图件,则必须传入 sTag 以区分
|
|
|
/// 如果sTag为空,则以本类名称为标识,也就是只能一副子图件
|
|
|
virtual bool saveSubPlotContent(const QByteArray& ba, QString sTag = "");
|
|
|
|
|
|
/// @brief 加载该对象下面的子图件
|
|
|
/// @param ba(out):可以根据v直接反序列化为plot
|
|
|
/// @param sTag 图件标识,如果sTag为空,则以本类名称为标识
|
|
|
virtual bool loadSubPlotContent(QByteArray& ba, QString sTag = "");
|
|
|
|
|
|
/// @brief 查找该对象下面标识为sTag的子图件
|
|
|
/// @param sTag 图件标识,如果sTag为空,则以本类名称为标识
|
|
|
virtual ZxRstWndPlot* getSubPlotOf(QString sTag);
|
|
|
|
|
|
public:
|
|
|
|
|
|
// 接口
|
|
|
virtual ZxDataObject* clone();
|
|
|
virtual QString type() const;
|
|
|
|
|
|
// 加载保存
|
|
|
virtual bool _parseData(VecVariant vec, int& n); //解析
|
|
|
virtual bool _sumUpData(VecVariant& vec);
|
|
|
|
|
|
// 序列化
|
|
|
virtual void onSerialize(ZxSerializer* ser);
|
|
|
virtual void onDeserialize(ZxSerializer* ser);
|
|
|
|
|
|
// Icon
|
|
|
virtual QIcon getIcon(bool expanded) const;
|
|
|
|
|
|
public:
|
|
|
|
|
|
// // 成果ID
|
|
|
// void setRstID(const QString& sRstID);
|
|
|
// QString getRstID() const;
|
|
|
|
|
|
void setWndIndex(const QString& s);
|
|
|
QString getWndIndex() const;
|
|
|
void setWndID(const QString& s);
|
|
|
QString getWndID() const;
|
|
|
void setWndTag(const QString& s);
|
|
|
QString getWndTag() const;
|
|
|
|
|
|
void setRstUtilID(const QString& s);
|
|
|
QString getRstUtilID() const;
|
|
|
void setDataAnalRun(const QByteArray& v);
|
|
|
QByteArray getDataAnalRun() const;
|
|
|
void setDataSegInfo(const QByteArray& v);
|
|
|
QByteArray getDataSegInfo() const;
|
|
|
|
|
|
void setDataInfo(const QByteArray& v);
|
|
|
QByteArray getDataInfo() const;
|
|
|
|
|
|
#ifdef _SCAN_OLD_CODES_
|
|
|
void setDataInfo1(const QByteArray& v);
|
|
|
QByteArray getDataInfo1() const;
|
|
|
void setDataInfo2(const QByteArray& v);
|
|
|
QByteArray getDataInfo2() const;
|
|
|
void setDataInfo3(const QByteArray& v);
|
|
|
QByteArray getDataInfo3() const;
|
|
|
void setDataInfo4(const QByteArray& v);
|
|
|
QByteArray getDataInfo4() const;
|
|
|
void setDataInfo5(const QByteArray& v);
|
|
|
QByteArray getDataInfo5() const;
|
|
|
void setDataInfo6(const QByteArray& v);
|
|
|
QByteArray getDataInfo6() const;
|
|
|
void setDataInfo7(const QByteArray& v);
|
|
|
QByteArray getDataInfo7() const;
|
|
|
void setDataInfo8(const QByteArray& v);
|
|
|
QByteArray getDataInfo8() const;
|
|
|
void setDataInfo9(const QByteArray& v);
|
|
|
QByteArray getDataInfo9() const;
|
|
|
|
|
|
void setDataInfoOf(const QByteArray& v, int nIndex);
|
|
|
QByteArray getDataInfoOf(int nIndex) const;
|
|
|
#endif
|
|
|
|
|
|
protected:
|
|
|
|
|
|
// QString m_sRstID; //成果编码
|
|
|
|
|
|
QString m_sWndIndex;
|
|
|
QString m_sWndID;
|
|
|
QString m_sWndTag;
|
|
|
|
|
|
QString m_sRstUtilID;
|
|
|
QByteArray m_baDataAnalRun;
|
|
|
QByteArray m_baDataSegInfo;
|
|
|
|
|
|
// 各类大数据
|
|
|
QByteArray m_baDataInfo;
|
|
|
QByteArray m_baDataInfo1;
|
|
|
QByteArray m_baDataInfo2;
|
|
|
QByteArray m_baDataInfo3;
|
|
|
QByteArray m_baDataInfo4;
|
|
|
QByteArray m_baDataInfo5;
|
|
|
QByteArray m_baDataInfo6;
|
|
|
QByteArray m_baDataInfo7;
|
|
|
QByteArray m_baDataInfo8;
|
|
|
QByteArray m_baDataInfo9;
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|