-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathVisualMapModule.cpp
50 lines (44 loc) · 2.06 KB
/
VisualMapModule.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
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "VisualMapModule.h"
#include "VisualMapModel.h"
#include "VisualMapStateHistory.h"
#include "VisualMapController.h"
#include "VisualMapService.h"
#include "VisualMapState.h"
#include "EnvironmentFlatteningService.h"
#include "ICityThemesService.h"
#include "CityThemeData.h"
namespace ExampleApp
{
namespace VisualMap
{
namespace SdkModel
{
VisualMapModule::VisualMapModule(Eegeo::Resources::CityThemes::ICityThemesService& themesService,
Eegeo::Resources::CityThemes::ICityThemesUpdater& themesUpdater,
Eegeo::Rendering::EnvironmentFlatteningService& environmentFlatteningService)
{
VisualMapState initalState("Summer", "DayDefault", false);
m_pVisualMapModel = Eegeo_NEW(VisualMapModel)(initalState);
m_pVisualMapStateHistory = Eegeo_NEW(VisualMapStateHistory)();
m_pVisualMapController = Eegeo_NEW(VisualMapController)(*m_pVisualMapModel,
*m_pVisualMapStateHistory,
themesService,
themesUpdater,
environmentFlatteningService);
m_pVisualMapService = Eegeo_NEW(VisualMapService)(*m_pVisualMapModel, *m_pVisualMapStateHistory);
}
VisualMapModule::~VisualMapModule()
{
Eegeo_DELETE m_pVisualMapService;
Eegeo_DELETE m_pVisualMapController;
Eegeo_DELETE m_pVisualMapStateHistory;
Eegeo_DELETE m_pVisualMapModel;
}
IVisualMapService& VisualMapModule::GetVisualMapService() const
{
return *m_pVisualMapService;
}
}
}
}