VR-Forces 4.10 Class Documentation
 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 
13 
16 {
17 
18 public:
19 
22  DtRunwaySetController(const DtString& name,
23  DtVrfObject* owner,
24  DtSimManager* simManager,
25  DtComponentDescriptor* desc = 0,
26  DtReaderWriterRegistry* parentRegistry = 0);
27 
29  virtual ~DtRunwaySetController();
30 
33  virtual const char* type() const;
34 
35  virtual void tick();
36 
37  virtual void preFirstTickInit();
38 
39  virtual void processSetAerodrome(DtSimMessage* msg);
40  virtual void processSetRunwayLights(DtSimMessage* msg);
41  virtual void processSetRunwaySurfaceCondition(DtSimMessage* msg);
42  virtual void processSetArrestorGear(DtSimMessage* msg);
43 
44  virtual bool findAndSetCommonLightGroupIntensity(const std::string& lightGroup, float intensity);
45 
46  virtual void updateArrestorGearWithValue(const std::string& arrestorGear, bool value);
47 
48  virtual void updateRunwayLights(const std::string& runwayKind, const std::string& lightGroup, float intensity);
49  virtual void updateAllRunwayLights(const std::string& runwayKind, float intensity);
50 
51  virtual void updateRunwayWithAerodromeInfos(const DtVrfObject* aerodrome = NULL);
52 
53  static void aerodromeAboutToBeRemovedCallback(const DtVrfObject* object, void* usr);
54  virtual void processAerodromeAboutToBeRemoved(const DtVrfObject* object);
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  DtVrfObject* owner,
67  DtSimManager* 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 
89 };
90 
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
DtSharedVrfObjectReference class will allocate an empty DtVrfObjectReference if one is not assigned s...
Definition: vrfObjectReference.h:102
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
DtString myLastSavedAerodromeICAO
Definition: runwaySetController.h:88
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.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtTacticalGraphicSetController is a controller that handles all DtSetDataRequest messages for an envi...
Definition: tacticalGraphicSetController.h:27
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtSharedVrfObjectReference myAerodrome
Definition: runwaySetController.h:87
Uses Descriptor Type: DtComponentDescriptor.
Definition: runwaySetController.h:15
const DtTacticalGraphicSetController & operator=(const DtTacticalGraphicSetController &orig)
assignment operator

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)