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.
nmWATI/Include/mData/mProjectManager/DataModels/ZxDataLayer.h

98 lines
2.2 KiB
C++

#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 float& fTopMD);
float getTopMD() const;
// 底深
void setBottomMD(const float& fBottomMD);
float getBottomMD() const;
// 顶TVD
void setTopTVD(const float& fTopTVD);
float getTopTVD() const;
// 底TVD
void setBottomTVD(const float& fBottomTVD);
float getBottomTVD() const;
// 储层厚度
void setThicknessM(const float& fThicknessM);
float getThicknessM() const;
// 储层TV值
void setThicknessTV(const float & fThicknessTV);
float getThicknessTV()const;
// 储层描述
void setLayerDesc(const QString& sLayerDesc);
QString getLayerDesc() const;
protected:
QString m_sWellCode; //井号
// QString m_sLayerName; //层名
float m_fTopMD; //顶深
float m_fBottomMD; //底深
float m_fTopTVD; //顶TVD
float m_fBottomTVD; //底TVD
float m_fThicknessM; //储层厚度
float m_fThicknessTV; //储层TV值
QString m_sLayerDesc; //储层描述
};