-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPyStressHistoryGraphViewController.cpp
More file actions
60 lines (49 loc) · 1.73 KB
/
PyStressHistoryGraphViewController.cpp
File metadata and controls
60 lines (49 loc) · 1.73 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
#include "stdafx.h"
#include "PyStressHistoryGraphViewController.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
void CPyStressHistoryGraphViewController::Init(IStressHistoryGraphViewController* pViewController)
{
m_pMyViewController = pViewController;
CPyViewControllerBase::Init(pViewController);
}
void CPyStressHistoryGraphViewController::SelectLocation(const pgsPointOfInterest& poi)
{
m_pMyViewController->SelectLocation(poi);
}
const pgsPointOfInterest& CPyStressHistoryGraphViewController::GetLocation() const
{
return m_pMyViewController->GetLocation();
}
void CPyStressHistoryGraphViewController::SetXAxisType(IStressHistoryGraphViewController::XAxisType type)
{
m_pMyViewController->SetXAxisType(type);
}
IStressHistoryGraphViewController::XAxisType CPyStressHistoryGraphViewController::GetXAxisType() const
{
return m_pMyViewController->GetXAxisType();
}
void CPyStressHistoryGraphViewController::SelectStressLocation(pgsTypes::StressLocation stressLocation, bool bEnable)
{
m_pMyViewController->Stresses(stressLocation, bEnable);
}
bool CPyStressHistoryGraphViewController::IsStressLocationSelected(pgsTypes::StressLocation stressLocation) const
{
return m_pMyViewController->Stresses(stressLocation);
}
void CPyStressHistoryGraphViewController::SetShowGrid(bool bShow)
{
m_pMyViewController->ShowGrid(bShow);
}
bool CPyStressHistoryGraphViewController::GetShowGrid() const
{
return m_pMyViewController->ShowGrid();
}
CPyStressHistoryGraphViewController* CPyStressHistoryGraphViewController::GetGraphController(CPyViewControllerBase* pController)
{
auto pMyController = static_cast<CPyStressHistoryGraphViewController*>(pController);
return pMyController;
}