-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPyBridgeModelView.cpp
170 lines (137 loc) · 3.69 KB
/
PyBridgeModelView.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#include "stdafx.h"
#include "PyBridgeModelView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
void CPyBridgeModelView::Init(IBridgeModelViewController* pViewController,ISelection* pSelection)
{
m_pViewController = pViewController;
m_pSelection = pSelection;
CPyViewControllerBase::Init(pViewController);
}
void CPyBridgeModelView::GetGroupRange(GroupIndexType* pStartGroupIdx, GroupIndexType* pEndGroupIdx) const
{
m_pViewController->GetGroupRange(pStartGroupIdx, pEndGroupIdx);
}
void CPyBridgeModelView::SetGroupRange(GroupIndexType startGroupIdx, GroupIndexType endGroupIdx)
{
m_pViewController->SetGroupRange(startGroupIdx, endGroupIdx);
}
Float64 CPyBridgeModelView::GetCutStation() const
{
return m_pViewController->GetCutStation();
}
void CPyBridgeModelView::SetCutStation(Float64 station)
{
m_pViewController->SetCutStation(station);
}
void CPyBridgeModelView::SetViewMode(IBridgeModelViewController::ViewMode mode)
{
m_pViewController->SetViewMode(mode);
}
IBridgeModelViewController::ViewMode CPyBridgeModelView::GetViewMode() const
{
return m_pViewController->GetViewMode();
}
void CPyBridgeModelView::SetNorthUp(bool bNorthUp)
{
m_pViewController->NorthUp(bNorthUp);
}
bool CPyBridgeModelView::GetNorthUp() const
{
return m_pViewController->NorthUp();
}
void CPyBridgeModelView::SetShowLabels(bool bShowLabels)
{
m_pViewController->ShowLabels(bShowLabels);
}
bool CPyBridgeModelView::GetShowLabels() const
{
return m_pViewController->ShowLabels();
}
void CPyBridgeModelView::SetShowDimensions(bool bShowDimensions)
{
m_pViewController->ShowDimensions(bShowDimensions);
}
bool CPyBridgeModelView::GetShowDimensions() const
{
return m_pViewController->ShowDimensions();
}
void CPyBridgeModelView::SetShowBridge(bool bShowBridge)
{
m_pViewController->ShowBridge(bShowBridge);
}
bool CPyBridgeModelView::GetShowBridge() const
{
return m_pViewController->ShowBridge();
}
void CPyBridgeModelView::SetSchematic(bool bSchematic)
{
m_pViewController->Schematic(bSchematic);
}
bool CPyBridgeModelView::GetSchematic() const
{
return m_pViewController->Schematic();
}
void CPyBridgeModelView::ClearSelection()
{
m_pSelection->ClearSelection();
}
PierIndexType CPyBridgeModelView::GetSelectedPier()
{
return m_pSelection->GetSelectedPier();
}
SpanIndexType CPyBridgeModelView::GetSelectedSpan()
{
return m_pSelection->GetSelectedSpan();
}
CGirderKey CPyBridgeModelView::GetSelectedGirder()
{
return m_pSelection->GetSelectedGirder();
}
CSegmentKey CPyBridgeModelView::GetSelectedSegment()
{
return m_pSelection->GetSelectedSegment();
}
bool CPyBridgeModelView::IsDeckSelected()
{
return m_pSelection->IsDeckSelected();
}
bool CPyBridgeModelView::IsAlignmentSelected()
{
return m_pSelection->IsAlignmentSelected();
}
bool CPyBridgeModelView::IsRailingSystemSelected(pgsTypes::TrafficBarrierOrientation orientation)
{
return m_pSelection->IsRailingSystemSelected(orientation);
}
void CPyBridgeModelView::SelectPier(PierIndexType pierIdx)
{
m_pSelection->SelectPier(pierIdx);
}
void CPyBridgeModelView::SelectSpan(SpanIndexType spanIdx)
{
m_pSelection->SelectSpan(spanIdx);
}
void CPyBridgeModelView::SelectGirder(const CGirderKey& girderKey)
{
m_pSelection->SelectGirder(girderKey);
}
void CPyBridgeModelView::SelectSegment(const CSegmentKey& segmentKey)
{
m_pSelection->SelectSegment(segmentKey);
}
void CPyBridgeModelView::SelectDeck()
{
m_pSelection->SelectDeck();
}
void CPyBridgeModelView::SelectAlignment()
{
m_pSelection->SelectAlignment();
}
void CPyBridgeModelView::SelectRailingSystem(pgsTypes::TrafficBarrierOrientation orientation)
{
m_pSelection->SelectRailingSystem(orientation);
}