-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPyGirderPropertiesGraphViewController.cpp
More file actions
101 lines (83 loc) · 2.88 KB
/
PyGirderPropertiesGraphViewController.cpp
File metadata and controls
101 lines (83 loc) · 2.88 KB
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
#include "stdafx.h"
#include "PyGirderPropertiesGraphViewController.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
void CPyGirderPropertiesGraphViewController::Init(IGirderPropertiesGraphViewController* pViewController)
{
m_pMyViewController = pViewController;
CPyViewControllerBase::Init(pViewController);
}
void CPyGirderPropertiesGraphViewController::SetPropertyType(CGirderPropertiesGraphBuilder::PropertyType propertyType)
{
if (!m_pMyViewController->SetPropertyType(propertyType))
{
PyErr_SetString(PyExc_TypeError, "Invalid girder property type");
}
}
CGirderPropertiesGraphBuilder::PropertyType CPyGirderPropertiesGraphViewController::GetPropertyType() const
{
return m_pMyViewController->GetPropertyType();
}
bool CPyGirderPropertiesGraphViewController::IsInvariantProperty(CGirderPropertiesGraphBuilder::PropertyType propertyType) const
{
return m_pMyViewController->IsInvariantProperty(propertyType);
}
void CPyGirderPropertiesGraphViewController::SetSectionPropertyType(pgsTypes::SectionPropertyType type)
{
if (!m_pMyViewController->SetSectionPropertyType(type))
{
PyErr_SetString(PyExc_TypeError, "Invalid section property type");
}
}
pgsTypes::SectionPropertyType CPyGirderPropertiesGraphViewController::GetSectionPropertyType() const
{
return m_pMyViewController->GetSectionPropertyType();
}
const CGirderKey& CPyGirderPropertiesGraphViewController::GetGirder() const
{
return m_pMyViewController->GetGirder();
}
void CPyGirderPropertiesGraphViewController::SelectGirder(const CGirderKey& girderKey)
{
m_pMyViewController->SelectGirder(girderKey);
}
void CPyGirderPropertiesGraphViewController::SetInterval(IntervalIndexType intervalIdx)
{
m_pMyViewController->SetInterval(intervalIdx);
}
IntervalIndexType CPyGirderPropertiesGraphViewController::GetInterval() const
{
return m_pMyViewController->GetInterval();
}
IntervalIndexType CPyGirderPropertiesGraphViewController::GetFirstInterval() const
{
return m_pMyViewController->GetFirstInterval();
}
IntervalIndexType CPyGirderPropertiesGraphViewController::GetLastInterval() const
{
return m_pMyViewController->GetLastInterval();
}
void CPyGirderPropertiesGraphViewController::SetShowGrid(bool bShow)
{
m_pMyViewController->ShowGrid(bShow);
}
bool CPyGirderPropertiesGraphViewController::GetShowGrid() const
{
return m_pMyViewController->ShowGrid();
}
void CPyGirderPropertiesGraphViewController::SetShowGirder(bool bShow)
{
m_pMyViewController->ShowGirder(bShow);
}
bool CPyGirderPropertiesGraphViewController::GetShowGirder() const
{
return m_pMyViewController->ShowGirder();
}
CPyGirderPropertiesGraphViewController* CPyGirderPropertiesGraphViewController::GetGraphController(CPyViewControllerBase* pController)
{
auto pMyController = static_cast<CPyGirderPropertiesGraphViewController*>(pController);
return pMyController;
}