-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPyRoadway.cpp
49 lines (39 loc) · 961 Bytes
/
PyRoadway.cpp
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
37
38
39
40
41
42
43
44
45
46
47
48
#include "stdafx.h"
#include "PyRoadway.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
void CPyRoadway::Init(IBroker* pBroker)
{
pBroker->GetInterface(IID_IRoadwayData, (IUnknown**)&m_pAlignment);
}
void CPyRoadway::Reset()
{
m_pAlignment.Release();
}
void CPyRoadway::SetAlignmentData(const AlignmentData2& data)
{
m_pAlignment->SetAlignmentData2(data);
}
AlignmentData2 CPyRoadway::GetAlignmentData() const
{
return m_pAlignment->GetAlignmentData2();
}
void CPyRoadway::SetProfileData(const ProfileData2& data)
{
m_pAlignment->SetProfileData2(data);
}
ProfileData2 CPyRoadway::GetProfileData() const
{
return m_pAlignment->GetProfileData2();
}
void CPyRoadway::SetRoadwaySectionData(const RoadwaySectionData& data)
{
m_pAlignment->SetRoadwaySectionData(data);
}
RoadwaySectionData CPyRoadway::GetRoadwaySectionData() const
{
return m_pAlignment->GetRoadwaySectionData();
}