-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPyPointOfInterest.cpp
More file actions
36 lines (31 loc) · 880 Bytes
/
PyPointOfInterest.cpp
File metadata and controls
36 lines (31 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "stdafx.h"
#include "PyPointOfInterest.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
void CPyPointOfInterest::Init(IBroker* pBroker)
{
pBroker->GetInterface(IID_IPointOfInterest, (IUnknown**)&m_pPoi);
}
void CPyPointOfInterest::Reset()
{
m_pPoi.Release();
}
std::vector<pgsPointOfInterest> CPyPointOfInterest::GetPointsOfInterest(const CSegmentKey& segmentKey) const
{
PoiList poiList;
m_pPoi->GetPointsOfInterest(segmentKey,&poiList);
std::vector<pgsPointOfInterest> vPoi;
MakePoiVector(poiList, &vPoi);
return vPoi;
}
std::vector<pgsPointOfInterest> CPyPointOfInterest::GetSpanPointsOfInterest(const CSpanKey& spanKey) const
{
PoiList poiList;
m_pPoi->GetPointsOfInterest(spanKey,&poiList);
std::vector<pgsPointOfInterest> vPoi;
MakePoiVector(poiList, &vPoi);
return vPoi;
}