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.
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
#ifndef TRACKINPICTURE_H
|
|
#define TRACKINPICTURE_H
|
|
#pragma once
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
class AFX_EXT_CLASS CInTrackPicture : public CInTrackTextBase
|
|
{
|
|
public:
|
|
CInTrackPicture();
|
|
CInTrackPicture(const CRect8& position);
|
|
virtual ~CInTrackPicture();
|
|
|
|
// Implementation
|
|
public:
|
|
//名称
|
|
virtual CString GetName(void);
|
|
virtual int SetName(LPCTSTR lpString);
|
|
|
|
virtual void Draw(CXyDC* pDC);
|
|
virtual void Serialize(CArchive& ar, const short &ver);
|
|
|
|
virtual void MoveHandleTo(int nHandle, CPoint2D point);
|
|
virtual void MoveTo(CRect8& positionL);
|
|
|
|
//重设矩形范围
|
|
virtual void ReSetPosition(CRect8 rect);
|
|
//获取斜井状态下岩性符号对应的左右井边界,供TrackLithObj computedata(),BuidChildObject()调用 2015-10-19
|
|
virtual bool CalcInclinedBorder();
|
|
BOOL ReadPCG(BYTE* puf, int nLen, BOOL bHead=TRUE);
|
|
|
|
public:
|
|
CImageInsert* m_pImage; //位图类
|
|
int m_nMode; //图片模式
|
|
|
|
protected:
|
|
//绘制斜井深度段
|
|
void DrawInclined(CXyDC* pDC);
|
|
CCurveEx m_rotaRectCurve; //最大矩形区域
|
|
CImageInsert m_dispImage; //用来显示的图片
|
|
|
|
void DrawRect(CXyDC *pDC,CRect8 showRect);
|
|
};
|
|
|
|
#endif
|