2026-10-04 00:04:20 +08:00
|
|
|
//-----------------------------------------------------------------------------+
|
2026-09-28 15:28:50 +08:00
|
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
|
|
|
// = FileName : XIdPointPair.h
|
|
|
|
|
// = Version : ver2.0
|
|
|
|
|
// = Author : zjq
|
|
|
|
|
// = CreateDate : 2002-09-09
|
2026-10-04 00:04:20 +08:00
|
|
|
// = Description: 类定义
|
2026-09-28 15:28:50 +08:00
|
|
|
// = Maintainers:
|
|
|
|
|
//
|
|
|
|
|
//-----------------------------------------------------------------------------+
|
|
|
|
|
#include "StdAfx.h"
|
|
|
|
|
#include "IdPointPair.h"
|
|
|
|
|
|
|
|
|
|
XIdPointPair::XIdPointPair()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
XIdPointPair::XIdPointPair(AcDbObjectId id, AcGePoint3d pt)
|
|
|
|
|
{
|
|
|
|
|
m_id = id;
|
|
|
|
|
m_pt = pt;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
XIdPointPair::~XIdPointPair()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int XIdPointPair::CompareIdForFind(const XIdPointPair *p1, const void *p2)
|
|
|
|
|
{
|
|
|
|
|
const AcDbObjectId *pp2 = (const AcDbObjectId *)p2;
|
|
|
|
|
if (p1->m_id == *pp2)
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
}
|