//-----------------------------------------------------------------------------+ // Copyright (C), 1998-2007, SH Software Co. Ltd. // = FileName : XRegionIndex 类 // = Version : ver2.0 // = Author : zjq // = CreateDate : 2002-09-09 // = Description: XRegionIndex 定义 // = Maintainers: // //-----------------------------------------------------------------------------+ #include "StdAfx.h" #include "XRegionIndex.h" int XRegionIndex::CompareRegion(const XRegionIndex *p1, const XRegionIndex *p2) { if (fabs(p1->m_nPathArea) > fabs(p2->m_nPathArea)) { return 1; } return -1; } XRegionIndex::XRegionIndex() { m_nIndex = -1; m_nPathArea = 0; } XRegionIndex::XRegionIndex(int idx, double dArea, XPoint pt) : m_nIndex(idx), m_nPathArea(dArea), m_ptInside(pt) { } XRegionIndex::~XRegionIndex() { }