-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPyLoadModifiers.cpp
63 lines (51 loc) · 1.45 KB
/
PyLoadModifiers.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
#include "stdafx.h"
#include "PyLoadModifiers.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
void CPyLoadModifiers::Init(IBroker* pBroker)
{
pBroker->GetInterface(IID_ILoadModifiers, (IUnknown**)&m_pLoadModifiers);
}
void CPyLoadModifiers::Reset()
{
m_pLoadModifiers.Release();
}
void CPyLoadModifiers::SetDuctilityModifier(ILoadModifiers::Level level, Float64 value)
{
m_pLoadModifiers->SetDuctilityFactor(level, value);
}
ILoadModifiers::Level CPyLoadModifiers::GetDuctilityLevel() const
{
return m_pLoadModifiers->GetDuctilityLevel();
}
Float64 CPyLoadModifiers::GetDuctilityFactor() const
{
return m_pLoadModifiers->GetDuctilityFactor();
}
void CPyLoadModifiers::SetImportanceModifier(ILoadModifiers::Level level, Float64 value)
{
m_pLoadModifiers->SetImportanceFactor(level, value);
}
ILoadModifiers::Level CPyLoadModifiers::GetImportanceLevel() const
{
return m_pLoadModifiers->GetImportanceLevel();
}
Float64 CPyLoadModifiers::GetImportanceFactor() const
{
return m_pLoadModifiers->GetImportanceFactor();
}
void CPyLoadModifiers::SetRedundancyModifier(ILoadModifiers::Level level, Float64 value)
{
m_pLoadModifiers->SetRedundancyFactor(level, value);
}
ILoadModifiers::Level CPyLoadModifiers::GetRedundancyLevel() const
{
return m_pLoadModifiers->GetRedundancyLevel();
}
Float64 CPyLoadModifiers::GetRedundancyFactor() const
{
return m_pLoadModifiers->GetRedundancyFactor();
}