VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingFollowEntityController.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 
13 
15 #include <vlutil/vlString.h>
16 #include <matrix/vlVector.h>
17 
18 class DtSimManager;
19 class DtSimMessage;
22 
34 {
35 
36 public:
37 
41  DtVrfObject* owner,
42  DtSimManager* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48 
51  virtual const char* type() const;
52 
53 
57  static void followEntityCallback(DtSimMessage * msg, void * usrData);
58 
61  virtual void processFollowEntityTask(DtSimMessage * msg);
62 
64  virtual const DtUUID& entityToFollow() const;
65  virtual void setEntityToFollow(const DtUUID& entity);
66 
69  virtual const DtVector& offsetVector() const;
70  virtual void setOffsetVector(const DtVector& offsets);
71 
75  static DtSimComponent * creator(const DtString& name,
76  DtVrfObject* owner,
77  DtSimManager* simManager,
78  DtComponentDescriptor* desc = 0,
79  DtReaderWriterRegistry* parentRegistry = 0);
80 
81 protected:
85 
88  orig);
89 
93 
95  virtual void registerTaskMsgCallbacks();
96 
100  virtual void tick();
101 
104  virtual void stop();
105 
115  virtual void pilotProperties();
116 
118  virtual double findDesiredSpeed(const DtVector& target, bool& matchingTarget);
119 
121  virtual bool passedDestination(const DtVector& target);
122 
124  virtual bool atDestination(const DtVector& target);
125  virtual bool getCurrentLeaderState(
126  DtVector& localPosition, DtVector& localVelocity,
127  DtTaitBryan& topoOrientation, DtVector& topoRotationRate);
128 
129  virtual void calculateDesiredVelocity(double desiredSpeed, const DtVector& nextPoint);
130 
131 protected:
132 
135 
137 
139 
141 };
142 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
#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
This repository holds all information that is common to all the forms of local rotary wing entities w...
Definition: rotaryWingEntityStateRepository.h:27
virtual void registerTaskMsgCallbacks()
Overrides this so it can register its interest in MoveTo commands.
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
DtRotaryWingEntityStateRepository * myRotaryWingEntityState
Definition: rotaryWingFollowEntityController.h:138
virtual void pilotProperties()
Sets the appropriate properties for the wait controller: The position selector is 1...
DtRotaryWingFollowEntityController is a controller component that models following behavior for rotar...
Definition: rotaryWingFollowEntityController.h:33
DtRotaryWingFollorTaskDescriptor; descriptor for the rotary wing follow task components.
Definition: rotaryWingFollowTaskDescriptor.h:17
const DtRotaryWingFollowTaskDescriptor * myFollowDescriptor
Definition: rotaryWingFollowEntityController.h:136
File: simMsg.h.
Definition: simMessage.h:35
virtual const char * type() const
Returns a string identifies the class type of component.
const DtRotaryWingMoveToControllerComponent & operator=(const DtRotaryWingMoveToControllerComponent &orig)
assignment operator; see comments on copy constructor!
const DtVrfObject * myEntityPointer
Set fresh each frame by setupControlPoint.
Definition: rotaryWingFollowEntityController.h:134
DtRotaryWingMoveToControllerComponent is a controller used to model the movement of a helicopter alon...
Definition: rotaryWingMoveToControllerComponent.h:27
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual void stop()
Overridden by DtRotaryWindEmbarkationController.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtDcm myLocalToTopoDcm
Definition: rotaryWingFollowEntityController.h:140
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void tick()
Sets the desired position and velocity for use by the parent controller, then calls the parent&#39;s tick...

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)