|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "ZxDataObjectStr.h"
|
|
|
|
|
|
|
|
|
|
// 地层
|
|
|
|
|
class M_PROJECTMANAGER_EXPORT ZxDataLayer
|
|
|
|
|
: public ZxDataObjectStr
|
|
|
|
|
{
|
|
|
|
|
ZX_DECLARE_DYNAMIC
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
ZxDataLayer();
|
|
|
|
|
ZxDataLayer(const ZxDataLayer &other);
|
|
|
|
|
virtual ~ZxDataLayer();
|
|
|
|
|
|
|
|
|
|
ZxDataLayer &operator = (const ZxDataLayer &other);
|
|
|
|
|
bool operator == (const ZxDataLayer &other) const;
|
|
|
|
|
bool operator != (const ZxDataLayer &other) const;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// 接口
|
|
|
|
|
virtual ZxDataObject* clone();
|
|
|
|
|
virtual QString type() const;
|
|
|
|
|
|
|
|
|
|
// 加载保存
|
|
|
|
|
virtual bool _parseData(VecVariant vec, int& n); //解析
|
|
|
|
|
virtual bool _sumUpData(VecVariant& vec);
|
|
|
|
|
virtual QStringList getKeyValues(); //筛选时获得主键的值。
|
|
|
|
|
|
|
|
|
|
// 序列化
|
|
|
|
|
virtual void onSerialize(ZxSerializer* ser);
|
|
|
|
|
virtual void onDeserialize(ZxSerializer* ser);
|
|
|
|
|
|
|
|
|
|
// Icon
|
|
|
|
|
virtual QIcon getIcon(bool expanded) const;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// 井号
|
|
|
|
|
void setWellCode(const QString& sWellCode);
|
|
|
|
|
QString getWellCode() const;
|
|
|
|
|
|
|
|
|
|
// // 层名
|
|
|
|
|
// void setLayerName(const QString& sLayerName);
|
|
|
|
|
// QString getLayerName() const;
|
|
|
|
|
|
|
|
|
|
// 对象编码
|
|
|
|
|
virtual void setCode(const QString &sCode);
|
|
|
|
|
virtual void setName(const QString &sName);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 顶深
|
|
|
|
|
void setTopMD(const double& fTopMD);
|
|
|
|
|
double getTopMD() const;
|
|
|
|
|
|
|
|
|
|
// 底深
|
|
|
|
|
void setBottomMD(const double& fBottomMD);
|
|
|
|
|
double getBottomMD() const;
|
|
|
|
|
|
|
|
|
|
// 顶TVD
|
|
|
|
|
void setTopTVD(const double& fTopTVD);
|
|
|
|
|
double getTopTVD() const;
|
|
|
|
|
|
|
|
|
|
// 底TVD
|
|
|
|
|
void setBottomTVD(const double& fBottomTVD);
|
|
|
|
|
double getBottomTVD() const;
|
|
|
|
|
|
|
|
|
|
// 储层厚度
|
|
|
|
|
void setThicknessM(const double& fThicknessM);
|
|
|
|
|
double getThicknessM() const;
|
|
|
|
|
|
|
|
|
|
// 储层TV值
|
|
|
|
|
void setThicknessTV(const double & fThicknessTV);
|
|
|
|
|
double getThicknessTV()const;
|
|
|
|
|
|
|
|
|
|
// 储层描述
|
|
|
|
|
void setLayerDesc(const QString& sLayerDesc);
|
|
|
|
|
QString getLayerDesc() const;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
QString m_sWellCode; //井号
|
|
|
|
|
// QString m_sLayerName; //层名
|
|
|
|
|
double m_fTopMD; //顶深
|
|
|
|
|
double m_fBottomMD; //底深
|
|
|
|
|
double m_fTopTVD; //顶TVD
|
|
|
|
|
double m_fBottomTVD; //底TVD
|
|
|
|
|
double m_fThicknessM; //储层厚度
|
|
|
|
|
double m_fThicknessTV; //储层TV值
|
|
|
|
|
QString m_sLayerDesc; //储层描述
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|