logplus/OSGDataModel/include/ObjWelllogRound.h
2025-11-26 10:21:39 +08:00

93 lines
2.5 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @file ObjWell.h
* @brief "井次"数据模型
* @date 2014-6-3
* @author: liyonggang
*/
#ifndef PAI_FRAME_OSGWELLLOGROUND_H
#define PAI_FRAME_OSGWELLLOGROUND_H
#pragma warning( push ,0)
#include <QUuid>
#include "WelllogRound.h"
#include "BaseObject.h"
// #include "ObjectFolder.h"
#include "ObjWelllog.h"
#pragma warning( pop )
BEGIN_OSGDATAMODEL_NAMESPACE;
class OSGDATAMODEL_EXPORT CObjWelllogRound : public CBaseObject/*CBaseObjectImpl*/
{
// Q_OBJECT
public:
// CObjWelllogRound();
~CObjWelllogRound();
public:
/**
* @brief Add a child object in general way.
* @param pChild the child object handle
* @param mountNow 是否将其挂载到树上
* @根据对象的类型,将其加到对应的分类上
*/
// virtual bool AddChild(PaiObject* pChild, bool mountNow = true);
virtual QUuid GetTypeID()const;
// virtual bool Serialize( CObjectArchive &ar );
virtual pai::ios::welllog::DataObject *GetDbObject();
pai::ios::welllog::WelllogRound &GetDBWelllogRound();
//按名称从井次下拿测井曲线
// CObjWellLog* GetWellLogByName(QString name);
// void SetDBWelllogRound( pai::ios::welllog::WelllogRound DbWelllogRound);
// bool isExistsName(QString name);
// void setParent(PaiObject* pObject);
virtual void CopyFrom( CBaseObject *pOSGObjectOther );
QString GetSlfFileName() const { return m_strAttachedSlfFile; }
// void SetSlfFileName(QString val);
CObjWell *GetWell();
void SetWell(CObjWell *pWell);
// QString GetWellRoundPath();
bool isUsed()
{
return isFLAG;
}
void SetUsed(bool flag)
{
isFLAG=flag;
}
virtual QString GetDescription();
private:
void SetBelongID();
private:
//往井次下加入曲线时根据曲线的类型返回其对应的目录id
QUuid GetTragetFolderID(QUuid aLogTypeid);
//根据folderid找到对应的folder如果没有则创建
// CObjectFolder* GetTragetFolder(QUuid aFolderTypeid);
QString m_strAttachedSlfFile; //该井次附加的slf文件
QString m_strWellImage; //井类型符号
pai::ios::welllog::WelllogRound m_DbWelllogRound; //Db 里的well对象
// PaiObject* m_pObject; //
CObjWell *m_pWell;
bool isFLAG;
};
//得到当前井次
OSGDATAMODEL_EXPORT CObjWelllogRound *GetCurrentObjWelllogRound();
OSGDATAMODEL_EXPORT void SetCurrentObjWelllogRound( CObjWelllogRound *pObjWelllogRound );
// OSGDATAMODEL_EXPORT QString GetCurrentWellRoundPath();
// OSGDATAMODEL_EXPORT QString GetSingleWellFolderID();
using namespace pai::datamodel;
END_OSGDATAMODEL_NAMESPACE
#endif