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.

48 lines
1.6 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**************************************************************************************
文 件 名ItemVirtualWell.h
主要功能:
虚拟井的属性、添加、鼠标操作、删除
主要函数列表:
修改历史记录:
**************************************************************************************/
#pragma once
#include "item.h"
#include "MultiWellSectionLib\VirtualWellObj.h"
#include "ItemWellSection.h"
namespace NItem
{
class CItemVirtualWell :public CItemWcsSingleWell
{
public:
CItemVirtualWell(CSigmaDoc* pDoc, BOOL bAdd=FALSE);
~CItemVirtualWell(void);
/** @brief 绘制辅助手柄 */
virtual void OnDraw(CXyDC* pXyDC);
virtual void OnLButtonDown(CDC *pDC, UINT nFlags, CPoint point, int vk);
virtual void OnLButtonUp(CDC *pDC, UINT nFlags, CPoint point, int vk = 0);
virtual int OnMouseMove(CDC *pDC, UINT nFlags, CPoint point);
virtual BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
//虚拟井对象赋值
virtual void SetDrawObj(CWellBaseObj* pObj) { m_pVirtualWell = (CVirtualWellObj*)pObj; }
//virtual void SetItemWell(CItem* pItem) { }
//虚拟井所在剖面赋值
virtual void SetItemSection(CItem* pItem) { m_pItemSection = (CItemWellSection*)pItem; }
//获取虚拟井对象
virtual CWellBaseObj* GetDrawObj() { return m_pVirtualWell; }
//得到虚井、剖面对象
CVirtualWellObj* GetVirtualWellObject() { return m_pVirtualWell; }
CItemWellSection *GetItemSection() { return m_pItemSection; }
//删除虚拟井
virtual int DeleteSelection(void);
protected:
BOOL m_bAdd; //TURE 添加的虚拟井
CVirtualWellObj* m_pVirtualWell; //虚拟井对象
CItemWellSection* m_pItemSection; //虚拟井所在的剖面
};
};