VR-Forces 4.10 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 
72 
73  static void setLocationCallback(const DtVrfObject* obj, void* usr);
74  virtual void processSetLocationCallback();
76 
80  static DtSimComponent * creator(const DtString& name,
81  DtVrfObject* owner,
82  DtSimManager* simManager,
83  DtComponentDescriptor* desc = 0,
84  DtReaderWriterRegistry* parentRegistry = 0);
85 
86 protected:
88  virtual void registerTaskMsgCallbacks();
89 
93 
97 
101 
103  virtual void pilotProperties();
104 
105  virtual void clearTask();
106 
107  virtual DtRotaryWingFlightCommandControllerPSR* createPSR();
108 
111  virtual void processSkipTask(DtSimMessage*);
112  static void skipTaskCallback(DtSimMessage * msg, void * usr);
113 
117  virtual void resetTurnDirection();
118 
119 protected:
121 
124  double myNorthAngle;
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtTime myNextMagNorthUpdateTime
Definition: rotaryWingFlightCommandController.h:123
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
bool myResetTurnDirection
Default is false.
Definition: rotaryWingFlightCommandController.h:127
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:122
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:31
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
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:120
double myNorthAngle
Definition: rotaryWingFlightCommandController.h:124

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)