#pragma once #include "PointNameEx.h" #include "GDFLOGFONT.h" /* @brief 水平井 */ class AFX_EXT_CLASS CHorizontalWell : CBaseObject { public: CHorizontalWell(void); ~CHorizontalWell(void); /// 重载CBaseObject函数 virtual void Serialize(CArchive& ar, const short &ver); virtual int Read(CFile& fr, const short& ver); virtual void Write(CFile& fw, const short& ver); virtual CRect8 GetRect(void); virtual void GetRange(CRect8& range); virtual BOOL IsInRange(CRect8& range); virtual void Offset(double dx, double dy); virtual void ScaleCoor(double xs, double ys, double dx, double dy); virtual void Rotate(double xs, double ys, double angle); /* @brief 绘制对象 */ void Draw(CXyDC *pDc, void* HowToViewCurve); /* @brief 获取方位角, 正北开始,顺时针为正 */ double GetAspect(); /* @brief 获取井头井底的距离 */ double GetDistance(); CString m_strName; GDFLOGFONT m_font; COLORREF m_color; ///< 线颜色 double m_dWidth; ///< 线宽度 double m_dRadius; ///< 点半径 double m_dOffset; ///< 文字距离中心点距离 CPointNameEx m_top, m_bottom; };