VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfGuiForcesRequestor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
8 
11 #include <vrfGuiCore/vrfGuiCore.h>
12 #include <vrvCore/DtForceManager.h>
13 
14 #include <vlutil/vlString.h>
15 
16 class DtSimMessage;
17 class DtScenarioExplorer;
18 
19 namespace makVrv
20 {
21  class DtDe;
22 }
23 
24 namespace makVrf
25 {
29  {
30  public:
33 
35  virtual ~DtVrfGuiForcesRequestor() override;
36 
38  static DtVrfGuiForcesRequestor& instance(makVrv::DtDe& de);
39 
42  static void registerInstance(makVrv::DtDe& de, DtVrfGuiForcesRequestor* object);
43 
45  virtual void requestForces();
46 
48  virtual void loadForceFiles(const DtScenarioExplorer& explorer);
49 
50  boost::signals2::signal<void ()> signal_forcesChanged;
51 
53  boost::signals2::signal<void ()> signal_countryChanged;
54 
56  virtual DtString defaultCountryCode(int) const;
57 
58  protected:
60  virtual void processForcesMessage(DtSimMessage*);
61 
64  virtual makVrv::DtForceManager::RGBAColor primaryColorFor(const makVrv::DtForceManager::RGBAColor&) const;
65 
66  protected:
69 
73  std::map<int, DtString> myDefaultCountryCodes;
74  };
75 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
std::map< int, DtString > myDefaultCountryCodes
The default country codes are considered to be either the simulation model set country codes from the...
Definition: vrfGuiForcesRequestor.h:73
class DtScenarioExplorer:
Definition: scenarioExplorer.h:26
Definition: DtForceManager.h:44
makVrv::DtSignalConnectionManager myConnections
Definition: vrfGuiForcesRequestor.h:68
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
boost::signals2::signal< void()> signal_forcesChanged
Definition: vrfGuiForcesRequestor.h:50
Contains makVrv::DtVirtualBaseClass class.
makVrv::DtDe & myDe
Definition: vrfGuiForcesRequestor.h:67
File: simMsg.h.
Definition: simMessage.h:35
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Contains makVrv::DtForceManager class.
Base class to provide boost signal/slot management.
boost::signals2::signal< void()> signal_countryChanged
Signal if country codes have changed.
Definition: vrfGuiForcesRequestor.h:53
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
Simple class to request forces from the back-end and process them into the DtForcesManager. Will emit signal when forces are received and have been changed.
Definition: vrfGuiForcesRequestor.h:28

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)