VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tacticalGraphicOverlaySettingsManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
7 
8 #pragma once
9 
11 #include <vrvUtil/signalslib.h>
13 
14 #include <vrfGuiCore/vrfGuiCore.h>
16 
17 #include <map>
18 
19 namespace makVrf
20 {
25  {
26  public:
29 
32  static void registerInstance(makVrv::DtDe&, DtTacticalGraphicOverlaySettingsManager*);
33 
34  protected:
35  virtual void read(boost::archive::xml_iarchive& ar, int version);
36  virtual void write(boost::archive::xml_oarchive& ar, int version) const;
37 
40  virtual void slot_overlayAdded(const std::string&);
41  virtual void slot_overlayDeleted(const std::string&);
42 
43  protected:
45 
46  struct OverlayData
47  {
48  bool visible;
49  bool filtered;
50  bool locked;
51  friend class boost::serialization::access;
52 
56  template<class Archive>
57  void serialize(Archive & ar, const unsigned int version)
58  {
59  ar & BOOST_SERIALIZATION_NVP(visible);
60  ar & BOOST_SERIALIZATION_NVP(filtered);
61  ar & BOOST_SERIALIZATION_NVP(locked);
62  }
63  };
64 
65  typedef std::map<std::string, OverlayData> Overlays;
67 
69  };
70 }
71 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)