All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MarkerService.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "IMarkerService.h"
6 #include "Types.h"
7 #include "Markers.h"
8 #include "Labels.h"
9 
10 namespace Eegeo
11 {
12  namespace Markers
13  {
15  {
16  public:
17  MarkerService(IMarkerModelFactory& markerModelFactory,
18  IMarkerModelRepository& markerModelRepository,
19  IMarkerPicker& markerPicker);
20 
21  ~MarkerService();
22 
23  MarkerModel::IdType Create(const MarkerCreateParams& markerCreateParams);
24 
25  void Destroy(MarkerModel::IdType markerId);
26 
27  bool Exists(MarkerModel::IdType markerId) const;
28 
29  IMarker& Get(MarkerModel::IdType markerId) const;
30 
31  bool TryPick(const v2& screenPoint, IMarker::IdType& out_markerId) const;
32  private:
33  IMarkerModelFactory& m_markerModelFactory;
34  IMarkerModelRepository& m_markerModelRepository;
35  IMarkerPicker& m_markerPicker;
36  };
37  }
38 }