VR-Forces 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>
18 
19 class DtSimMessage;
20 class DtSimLocalEntity;
22 
46 {
47 
48 public:
49 
53  DtSimulationServices* simManager,
54  DtComponentDescriptor* desc = 0,
55  DtReaderWriterRegistry* parentRegistry = 0);
56 
58  virtual ~DtAirVehicleSetController();
59 
62  virtual const char* type() const;
63 
64  virtual void processSetAltitude(DtSimMessage* msg);
65 
67  virtual void processSetOrderedAltitude(DtSimMessage* msg);
68 
69  virtual void processSetHeading(DtSimMessage* msg);
70 
72  virtual void processSetSpeed(DtSimMessage * msg);
73 
74  virtual void processSetSpeedAndType(DtSimMessage * msg);
75 
81  virtual void setLocation(DtVector geocentricLocation, bool keepClampedToGround, bool& dataAvailable) override;
82 
83  virtual void setHeading(DtReal heading);
84 
86  static void setOrderedAltitudeCallback(DtSimMessage* msg, void* usr);
87 
94  static void setAirSpeedCallback(DtSimMessage * msg, void * usrData);
95 
99  virtual void processSetAirSpeed(DtSimMessage * msg);
100 
101  virtual void setAirSpeed(DtReal airSpeed, DtAirSpeedType speedType);
102 
104  static void setAircraftLightingCallback(DtSimMessage* msg, void* usrData);
105  virtual void processSetAircraftLighting(DtSimMessage * msg);
106 
113  static void setCurrentAirSpeedCallback(DtSimMessage * msg, void * usrData);
114 
119  virtual void processSetCurrentAirSpeed(DtSimMessage * msg);
120 
122  static void setOrientationCallback(DtSimMessage* msg, void* usrData);
126  virtual void processSetOrientation(DtSimMessage* msg);
127 
129 
132  static DtSimComponent * creator(const DtString& name,
133  DtLocalObject* owner,
134  DtSimulationServices* simManager,
135  DtComponentDescriptor* desc = 0,
136  DtReaderWriterRegistry* parentRegistry = 0);
137 
138 protected:
142 
145 
147  const DtAirVehicleSetController & operator=(const
149 
150 protected:
152  virtual void initializeSetsToRegister();
153 
156 
159 };
160 
#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:155
DtAirVehicleSetController is a controller component responsible for handling DtSetDataRequests for ai...
Definition: airVehicleSetController.h:45
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 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:95
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: airVehicleSetController.h:158
virtual void setLocation(DtVector geocentricLocation, bool keepOnGround)
Converts geocentricLocation to local coordinates and then provides them to myLocalEntity-&gt;place. The keepOnGround flag is only valid for those items that can be placed in the air.
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)