VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
airVehicleSetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 #include "vrfobjcore/simRadio.h"
16 #include <vrfutil/rwAirSpeedType.h>
17 
18 class DtSimMessage;
19 class DtSimLocalEntity;
21 
45 {
46 
47 public:
48 
52  DtSimulationServices* simManager,
53  DtComponentDescriptor* desc = 0,
54  DtReaderWriterRegistry* parentRegistry = 0);
55 
57  virtual ~DtAirVehicleSetController();
58 
61  virtual const char* type() const;
62 
63  virtual void processSetAltitude(DtSimMessage* msg);
64 
66  virtual void processSetOrderedAltitude(DtSimMessage* msg);
67 
68  virtual void processSetHeading(DtSimMessage* msg);
69 
71  virtual void processSetSpeed(DtSimMessage * msg);
72 
73  virtual void processSetSpeedAndType(DtSimMessage * msg);
74 
79  virtual void setLocation(DtVector geocentricLocation, bool& dataAvailable);
80 
81  virtual void setHeading(DtReal heading);
82 
84  static void setOrderedAltitudeCallback(DtSimMessage* msg, void* usr);
85 
92  static void setAirSpeedCallback(DtSimMessage * msg, void * usrData);
93 
97  virtual void processSetAirSpeed(DtSimMessage * msg);
98 
99  virtual void setAirSpeed(DtReal airSpeed, DtAirSpeedType speedType);
100 
107  static void setCurrentAirSpeedCallback(DtSimMessage * msg, void * usrData);
108 
113  virtual void processSetCurrentAirSpeed(DtSimMessage * msg);
114 
116 
119  static DtSimComponent * creator(const DtString& name,
120  DtLocalObject* owner,
121  DtSimulationServices* simManager,
122  DtComponentDescriptor* desc = 0,
123  DtReaderWriterRegistry* parentRegistry = 0);
124 
125 protected:
129 
132 
134  const DtAirVehicleSetController & operator=(const
136 
137 protected:
139  virtual void initializeSetsToRegister();
140 
143 
144 };
145 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Contains the DtLocalEntitySetController class declaration.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void processSetAltitude(DtSimMessage *msg)
virtual void setHeading(DtReal heading)
Calls place on myLocalEntity with the requested heading.
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
DtAirspeedCalculator * myAirSpeedCalculator
Air Speed Calculator for updating state properties.
Definition: airVehicleSetController.h:142
DtAirVehicleSetController is a controller component responsible for handling DtSetDataRequests for ai...
Definition: airVehicleSetController.h:44
virtual void processSetHeading(DtSimMessage *msg)
Verifies that the message contains a DtSetHeadingRequest and if so pulls the requested heading out of...
File: simMsg.h.
Definition: simMessage.h:35
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void setLocation(DtVector geocentricLocation)
Converts geocentricLocation to local coordinates and then provides them to myLocalEntity-&gt;place.
virtual void processSetSpeed(DtSimMessage *msg)
DtAirSpeedType
Air Speed Type PDU enums.
Definition: rwAirSpeedType.h:24
class DtAirspeedCalculator:
Definition: airSpeedCalculator.h:23
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
const DtLocalEntitySetController & operator=(const DtLocalEntitySetController &orig)
assignment operator
virtual void initializeSetsToRegister()
Sets up the myRegisterSets map with sets to register for this controller.
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
DtLocalEntitySetController is a controller that handles all DtSetDataRequest messages for an entity a...
Definition: localEntitySetController.h:26

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)