VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
extendedLabelsManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrfGuiCore/vrfGuiCore.h>
16 #include <vlutil/vlString.h>
17 #include <map>
18 #include <set>
19 #include <string>
20 #include <boost/signals2.hpp>
21 
22 class DtSimMessage;
23 
24 namespace makVrv
25 {
26  class DtDe;
27 }
28 
29 namespace makVrf
30 {
33  {
34  public:
37 
39  virtual ~DtVrfSymbolDecorationFactory() override;
40 
42  virtual void removeCreator(const std::string&);
43  };
44 
47  {
48  public:
50  virtual ~DtExtendedLabelsManager() override;
51 
53  static DtExtendedLabelsManager& instance(makVrv::DtDe& de);
54  static void registerInstance(makVrv::DtDe& de, DtExtendedLabelsManager*);
55 
56  public:
58  virtual const std::map<int, DtString>& extendedLabels() const;
59 
61  virtual DtString extendedLabel(int) const;
62 
65  virtual void setExtendedLabels(const std::map<int, DtString>&, bool sendMessage = true);
66 
68  virtual void requestExtendedLabels();
69 
72  virtual void processExtendedLabelsOperationMessage(DtSimMessage*);
73 
74  virtual void setupSymbolDecorations();
75 
77  virtual bool hasIndex(int) const;
78 
81  boost::signals2::signal<void ()>signal_extendedLabelsChanged;
82 
84  boost::signals2::signal<void ()>signal_extendedLabelsSet;
85 
86  protected:
88  virtual void removeAllExtendedLabels(std::set<std::string>&) const;
89 
91  virtual void addAllExtendedLabels(std::set<std::string>&) const;
92 
93  virtual void slot_backendDiscovered();
94 
95  virtual int labelMax() const;
96 
97  virtual void updateDecorationSet(const std::string&);
98 
99  protected:
100  std::map<int, DtString> myExtendedLabels;
101  std::set<std::string> myCreators;
103  };
104 }
Contains makVrv::DtSymbolDecorationFactory class.
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
boost::signals2::signal< void()> signal_extendedLabelsChanged
Signal sent on receipt of contents of extended labels and those labels are different than what is cur...
Definition: extendedLabelsManager.h:81
This class manages the extended labels that are available for setting in this scenario.
Definition: extendedLabelsManager.h:46
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
makVrv::DtDe & myDe
Definition: extendedLabelsManager.h:102
Contains makVrv::DtVirtualBaseClass class.
std::map< int, DtString > myExtendedLabels
Definition: extendedLabelsManager.h:100
File: simMsg.h.
Definition: simMessage.h:35
Extension to base symbol decoration factory to allow removal of creators.
Definition: extendedLabelsManager.h:32
Factory for creating symbol decorations.
Definition: DtSymbolDecorationFactory.h:30
std::set< std::string > myCreators
Definition: extendedLabelsManager.h:101
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
boost::signals2::signal< void()> signal_extendedLabelsSet
Signal when the extended labels are changed via a set or remove – not due to network change...
Definition: extendedLabelsManager.h:84

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)