VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingFlightCommandController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
8 
9 #pragma once
10 
13 
14 class DtString;
15 class DtSimManager;
16 class DtSimMessage;
18 
35 {
36 public:
37 
41  DtVrfObject* owner,
42  DtSimManager* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48 
49  virtual bool init();
50 
51  virtual void tick();
52 
55  virtual const char* type() const;
56 
57  virtual bool beginProcessingTask(const DtTaskMessage& task,
58  DtSimTaskStatePtr taskState);
59 
62  virtual bool showCurrentTaskInGui() const;
63 
66 
67  static void taskNotiyCallback(const DtSimTask & task, const DtSimComponent &notifier, void* usr);
68  virtual void processTaskNotify(const DtSimTask & task, const DtSimComponent &notifier);
70 
74  static DtSimComponent * creator(const DtString& name,
75  DtVrfObject* owner,
76  DtSimManager* simManager,
77  DtComponentDescriptor* desc = 0,
78  DtReaderWriterRegistry* parentRegistry = 0);
79 
80 protected:
82  virtual void registerTaskMsgCallbacks();
83 
87 
91 
95 
97  virtual void pilotProperties();
98 
99  virtual void clearTask();
100 
101  virtual DtRotaryWingFlightCommandControllerPSR* createPSR();
102 
105  virtual void processSkipTask(DtSimMessage*);
106  static void skipTaskCallback(DtSimMessage * msg, void * usr);
107 
108 protected:
110 
112 };
#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 registerTaskMsgCallbacks()
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
virtual void clearTask()
Overridden to deactivate the port group when this controller completes a task.
Definition: readerWriterRegistry.h:39
virtual bool showCurrentTaskInGui() const
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
bool mySkippingTask
Definition: rotaryWingFlightCommandController.h:111
const DtRotaryWingTaskController & operator=(const DtRotaryWingTaskController &orig)
assignment operator; not implemented
virtual void tick()
This gives the thread of control to the component.
A controller with carries out the &quot;Flight Command&quot; tasks DtFlyHeadingTask, DtFlyAltitudeTask and DtFl...
Definition: rotaryWingFlightCommandController.h:34
File: simMsg.h.
Definition: simMessage.h:35
virtual bool beginProcessingTask(const DtTaskMessage &task, DtSimTaskStatePtr taskState)
Called by the task manager when this controller should start executing the specified task...
The DtRotaryWingTaskController class creates the rotary-wing-control port group needed to control rot...
Definition: rotaryWingTaskController.h:30
Process State Repository for the DtRotaryWingFlightCommandController component.
Definition: rotaryWingFlightCommandControllerPSR.h:17
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual bool init()
Overridden to initialize myRotaryWingEntityState.
DtSimTask is an abstract base class from which real tasks can derive.
Definition: simTask.h:33
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
virtual const char * type() const =0
Returns a string identifies the class type of component.
A DtTaskMsg is a DtRadioMsg with a pointer to a task.
Definition: taskMessage.h:19
DtRotaryWingFlightCommandControllerPSR * myProcessState
Definition: rotaryWingFlightCommandController.h:109

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)