curvearray.cpp

来自「对测井数据显示、编辑、处理」· C++ 代码 · 共 55 行

CPP
55
字号
// CurveArray.cpp: implementation of the CCurveArray class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "welldataprocess.h"
#include "CurveArray.h"

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

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

CCurveArray::CCurveArray()
{

}

CCurveArray::~CCurveArray()
{

}
void CCurveArray::Draw(CDC *pDC)
{
	int nCount = GetSize();

	for (int i=0;i<nCount;i++)
		(*this)[i]->Draw (pDC);
	
}

CCurveUnit* CCurveArray::HitTest(CPoint point)
{
	int nCount = GetSize();
	int i;
	for(i = 0; i < nCount; i ++)
	{
		(*this)[i]->m_bSelect = FALSE;
	}

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

	return NULL;
}

⌨️ 快捷键说明

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