VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingMoveToControllerComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 
16 
17 class DtString;
18 class DtSimManager;
19 class DtSimMessage;
20 
21 
28 {
29 public:
30 
34  DtVrfObject* owner,
35  DtSimManager* simManager,
36  DtComponentDescriptor* desc = 0,
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
41 
44  virtual void tick();
45 
48  virtual const char* type() const;
49 
50 
54  static void moveToCallback(DtSimMessage * msg, void * usr);
55  static void moveToAltitudeCallback(DtSimMessage * msg, void * usr);
56 
60  virtual void processMoveToTask(DtSimMessage * msg);
61 
65  virtual void processMoveToAltitudeTask(DtSimMessage * msg);
66 
70  static DtSimComponent * creator(const DtString& name,
71  DtVrfObject* owner,
72  DtSimManager* simManager,
73  DtComponentDescriptor* desc = 0,
74  DtReaderWriterRegistry* parentRegistry = 0);
75 
76 protected:
78  virtual void registerTaskMsgCallbacks();
79 
83 
87 
91 
95  virtual bool setupControlPoint();
96 
102  virtual bool createWorkingControlPoint(const DtVector location);
103 
105  virtual void stop();
106 
111  virtual double bodyLengthFactor() const;
112 
115  virtual double atDistance();
116 
123  virtual void pilotProperties();
124 
127  virtual void handleContinueFlag();
128 
130  virtual void getDesiredPosition(DtVector& desiredPosition);
131 
136  virtual DtVector computeVelocityControl(DtVector& desiredPosition);
137 
139  virtual bool controlPointIsNearGround()const;
140  virtual void setControlPointIsNearGround(const bool isNear);
141 
142  virtual void processEstimatedTotCalculation();
143 
145 
146  static void objectAboutToBeRemovedCallback(const DtVrfObject* obj, void* usr);
147  virtual void processObjectAboutToBeRemoved(const DtVrfObject*);
148 
149 protected:
150 
154 
161 
165 
169 
172 };
173 
#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()
DtVrfObject * myWorkingControlPoint
Locally allocated waypoint - we set myControlPoint to point to it.
Definition: rotaryWingMoveToControllerComponent.h:164
virtual void updateTaskVisualizations()
update visualizations
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
const DtVrfObject * myControlPoint
This is looked up once per tick - assumed unchanging while we have control.
Definition: rotaryWingMoveToControllerComponent.h:153
virtual void processEstimatedTotCalculation()
calculate estimated tot
DtRotaryWingMoveToControllerComponent is a controller used to model the movement of a helicopter alon...
Definition: rotaryWingMoveToControllerComponent.h:27
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
bool myControlPointIsNearGround
Cache the results of a test to see if the control point is near the ground.
Definition: rotaryWingMoveToControllerComponent.h:168
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
bool myRegisteredForCallback
Whether or not we have registered for the object removal callback.
Definition: rotaryWingMoveToControllerComponent.h:171
virtual const char * type() const =0
Returns a string identifies the class type of component.
DtVector myLastControlPosition
This is set to the position of the control point last tick.
Definition: rotaryWingMoveToControllerComponent.h:160

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)