VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingLoiterControllerComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
14 
15 class DtString;
16 class DtSimManager;
17 class DtSimMessage;
18 
19 
24 //control of the port group.
29 {
30 public:
31 
35  DtVrfObject* owner,
36  DtSimManager* simManager,
37  DtComponentDescriptor* desc = 0,
38  DtReaderWriterRegistry* parentRegistry = 0);
39 
42 
45  virtual void tick();
46 
49  virtual const char* type() const;
50 
54  static DtSimComponent * creator(const DtString& name,
55  DtVrfObject* owner,
56  DtSimManager* simManager,
57  DtComponentDescriptor* desc = 0,
58  DtReaderWriterRegistry* parentRegistry = 0);
59 
60  static void orbitCallback(DtSimMessage *msg, void* usr);
61 
62  virtual void processOrbitTask(DtSimMessage* msg);
63 
64 protected:
65 
69 
73 
77 
79  virtual void registerTaskMsgCallbacks();
80 
87  virtual void resetPilotProperties();
88 
90  virtual DtVector computeVelocityVectorForOrbit(const DtVector& centerLoc,
91  const double speed, const double radius, const bool clockWise) const;
92 
93 };
94 
DtRotaryWingLoiterControllerComponent is a controller used to model a loitering helicopter.
Definition: rotaryWingLoiterControllerComponent.h:28
#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
Definition: readerWriterRegistry.h:39
const DtRotaryWingTaskController & operator=(const DtRotaryWingTaskController &orig)
assignment operator; not implemented
virtual void tick()
This gives the thread of control to the component.
File: simMsg.h.
Definition: simMessage.h:35
The DtRotaryWingTaskController class creates the rotary-wing-control port group needed to control rot...
Definition: rotaryWingTaskController.h:30
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
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.

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)