|
|
/**************************************************************************************
|
|
|
文 件 名:TrackInCoring.h
|
|
|
主要功能:
|
|
|
道内取心符号类
|
|
|
主要函数列表:
|
|
|
**************************************************************************************/
|
|
|
|
|
|
#ifndef TRACKINCORING_H
|
|
|
#define TRACKINCORING_H
|
|
|
#pragma once
|
|
|
|
|
|
//取心符号对象
|
|
|
|
|
|
class AFX_EXT_CLASS CInTrackCoring : public CInTrackTextBase
|
|
|
{
|
|
|
public:
|
|
|
CInTrackCoring();
|
|
|
CInTrackCoring(const CRect8& position);
|
|
|
virtual ~CInTrackCoring() {}
|
|
|
|
|
|
CLONE_WELLOBJECT(CInTrackCoring)
|
|
|
virtual void operator=(CInTrackCoring& object);
|
|
|
|
|
|
|
|
|
//CString m_strLayerName; //层名
|
|
|
int m_nCoringTimes; //取心次数
|
|
|
double m_CoringLength; //取心长度
|
|
|
double m_CoringPercent; //收获率
|
|
|
|
|
|
// CString m_strName;
|
|
|
// Implementation
|
|
|
public:
|
|
|
virtual void Draw(CXyDC* pDC);
|
|
|
virtual void Serialize(CArchive& ar, const short &ver);
|
|
|
void SetName(CString name) { m_Text.SetName( name); }
|
|
|
|
|
|
virtual void SetTrackCorePosFlags(DWORD flags);
|
|
|
virtual void SetShowDepth(BOOL bFlag);
|
|
|
virtual void SetShowLength(BOOL bFlag);
|
|
|
virtual void SetShowPercent(BOOL bFlag);
|
|
|
|
|
|
virtual DWORD GetTrackCorePosFlags();
|
|
|
virtual BOOL IsShowDepth();
|
|
|
virtual BOOL IsShowLength();
|
|
|
virtual BOOL IsShowPercent();
|
|
|
|
|
|
protected:
|
|
|
//绘制斜井道中符号
|
|
|
void DrawInclined(CXyDC* pDC);
|
|
|
void DrawRect(CXyDC *pDC, CRect8 showRect);
|
|
|
|
|
|
void Init();
|
|
|
|
|
|
public:
|
|
|
virtual int ReadPCG_SelfData(CKXmlParse& xp, const short& ver, CTrackObj* pTrack);
|
|
|
virtual void WritePCG_SelfData(CFile &fw, int nBaseTabNum);
|
|
|
|
|
|
protected:
|
|
|
DWORD m_nTrackCorePosFlags;//取心位置道状态
|
|
|
enum TrackCorePosFlags
|
|
|
{
|
|
|
TrackCorePosFlagDepth = 0x0001, //显示深度值
|
|
|
TrackCorePosFlagLength = 0x0002, //显示长度值
|
|
|
TrackCorePosFlagPercent = 0x0004 //显示百分比
|
|
|
};
|
|
|
};
|
|
|
|
|
|
#endif
|