⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 roadarray.cpp

📁 对测井数据显示、编辑、处理
💻 CPP
字号:
// RoadArray.cpp: implementation of the CRoadArray class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "WellDataProcess.h"
#include "RoadArray.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CRoadArray::CRoadArray()
{

}

CRoadArray::~CRoadArray()
{

}
void CRoadArray::Draw(CDC *pDC)
{
	int nCount = GetSize();
	for (int i=0;i<nCount;i++)
		(*this)[i]->Draw (pDC);
}

int CRoadArray::AddRoadUnit(int nRoadHeadHeight, int nRoadHeight, int nRoadWidth, CPoint ptOrg, CString strRoadTitle)
{
	CRoadUnit* pUnit = new CRoadUnit(nRoadHeadHeight, nRoadHeight, nRoadWidth, ptOrg, strRoadTitle);
	return Add(pUnit);
	
}

CRoadUnit* CRoadArray::HitTest(CPoint point)
{
	int nCount = GetSize();

	for (int i=0;i<nCount;i++)
	{
		if ((*this)[i]->HitTest (point))
			return (*this)[i];
	}

	return NULL;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -