VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
runwaySetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
14 #include <boost/signals2.hpp>
15 
18 {
19 
20 public:
21 
24  DtRunwaySetController(const DtString& name,
25  DtLocalObject* owner,
26  DtSimulationServices* simManager,
27  DtComponentDescriptor* desc = 0,
28  DtReaderWriterRegistry* parentRegistry = 0);
29 
31  virtual ~DtRunwaySetController();
32 
35  virtual const char* type() const;
36 
37  virtual void tick();
38 
39  virtual void preFirstTickInit();
40 
41  virtual void processSetAerodrome(DtSimMessage* msg);
42  virtual void processSetRunwayLights(DtSimMessage* msg);
43  virtual void processSetRunwaySurfaceCondition(DtSimMessage* msg);
44  virtual void processSetArrestorGear(DtSimMessage* msg);
45 
46  virtual bool findAndSetCommonLightGroupIntensity(const std::string& lightGroup, float intensity);
47 
48  virtual void updateArrestorGearWithValue(const std::string& arrestorGear, bool value);
49 
50  virtual void updateRunwayLights(const std::string& runwayKind, const std::string& lightGroup, float intensity);
51  virtual void updateAllRunwayLights(const std::string& runwayKind, float intensity);
52 
53  virtual void updateRunwayWithAerodromeInfos(DtSimObjectReference aerodrome);
54  virtual void processAerodromeAboutToBeRemoved();
55 
56 public:
57  static void setAerodromeCallback(DtSimMessage* msg, void* usrData);
58  static void setRunwayLightsCallback(DtSimMessage* msg, void* usrData);
59  static void setRunwaySurfaceConditionCallback(DtSimMessage* msg, void* usrData);
60  static void setArrestorGearCallback(DtSimMessage* msg, void* usrData);
61 
65  static DtSimComponent* creator(const DtString& name,
66  DtLocalObject* owner,
67  DtSimulationServices* simManager,
68  DtComponentDescriptor* desc = 0,
69  DtReaderWriterRegistry* parentRegistry = 0);
70 
71 protected:
75 
78 
80  const DtRunwaySetController& operator=(const
81  DtRunwaySetController& orig);
82 
83 protected:
85  virtual void initializeSetsToRegister();
86 
90  boost::signals2::scoped_connection myAerodromeDeletedConnection;
91 };
92 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtVrfSimulatedSimObjectFacade myVrfSimulatedSimObjectFacade
Definition: runwaySetController.h:89
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtString myLastSavedAerodromeICAO
Definition: runwaySetController.h:88
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void initializeSetsToRegister()
Override to register (or remove) sets to be registered.
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
DtSimObjectReference myAerodrome
Definition: runwaySetController.h:87
DtTacticalGraphicSetController is a controller that handles all DtSetDataRequest messages for an envi...
Definition: tacticalGraphicSetController.h:26
boost::signals2::scoped_connection myAerodromeDeletedConnection
Definition: runwaySetController.h:90
Uses Descriptor Type: DtComponentDescriptor.
Definition: runwaySetController.h:17
const DtTacticalGraphicSetController & operator=(const DtTacticalGraphicSetController &orig)
assignment operator
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)