All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MarkerHideLabelFilter.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Markers.h"
6 #include "ILabelAnchorFilter.h"
7 
8 namespace Eegeo
9 {
10  namespace Markers
11  {
12 
14  {
15  public:
16  MarkerHideLabelFilter(const LabelToMarkerModelRepository& labelToMarkerModelRepository);
17 
18  bool operator()(const Labels::IAnchoredLabel& anchoredLabel) const
19  {
20  return ShouldHideLabel(anchoredLabel);
21  }
22 
23  private:
24 
25  bool ShouldHideLabel(const Labels::IAnchoredLabel& anchoredLabel) const;
26 
27  const LabelToMarkerModelRepository& m_labelToMarkerModelRepository;
28  };
29  }
30 }