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

📄 edgepoint.cpp

📁 刚上传内容的相关CODEC不能单独上传。于是
💻 CPP
字号:
// EdgePoint.cpp: implementation of the CEdgePoint class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "MagicScissors.h"
#include "EdgePoint.h"

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

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

CEdgePoint::CEdgePoint()
{
	x = -1;
	y = -1;
	m_pNext = NULL;
	m_pPrev = NULL;
}

CEdgePoint::CEdgePoint(CEdgePoint& point)
{
	x = point.x;
	y = point.y;
	m_pNext = NULL;
	m_pPrev = NULL;
}

CEdgePoint::CEdgePoint(int x, int y)
{
	this->x = x;
	this->y = y;
	m_pNext = NULL;
	m_pPrev = NULL;
}

CEdgePoint::~CEdgePoint()
{

}

void CEdgePoint::SetPoint(int x, int y)
{
	this->x = x;
	this->y = y;
}

void CEdgePoint::SetPoint(CPoint point)
{
	x = point.x;
	y = point.y;
}

void CEdgePoint::operator = (CPoint &point)
{
	x = point.x;
	y = point.y;
}

CEdgePoint::operator CPoint()
{
	return CPoint(x,y);
}

BOOL CEdgePoint::operator == (CEdgePoint& point)
{
	if( x == point.x && y == point.y ) return TRUE;
	else return FALSE;
}

BOOL CEdgePoint::operator != (CEdgePoint& point)
{
	if( x == point.x && y == point.y ) return FALSE;
	else return TRUE;
}

⌨️ 快捷键说明

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