VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
groundFollowEntityController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 
16 #include <vlutil/vlString.h>
17 #include <matrix/vlVector.h>
18 
19 class DtSimManager;
20 class DtSimMessage;
21 class DtStringOutputPort;
22 
23 
34 {
35 
36 public:
37 
41  DtVrfObject* owner,
42  DtSimManager* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48 
51  virtual DtString type() const;
52 
53 
57  static void followEntityCallback(DtSimMessage* msg, void* usrData);
58 
59  virtual void processFollowEntityTask(DtSimMessage* msg);
60 
65  virtual const DtString& entityToFollow();
66  virtual void setEntityToFollow(const DtString& entity);
67 
70  virtual const DtVector& offsetVector() const;
71  virtual void setOffsetVector(const DtVector& offsets);
72 
76  static DtSimComponent * creator(const DtString& name,
77  DtVrfObject* owner,
78  DtSimManager* simManager,
79  DtComponentDescriptor* desc = 0,
80  DtReaderWriterRegistry* parentRegistry = 0);
81 
83  virtual void registerTaskMsgCallbacks();
84 
88  virtual bool setupDestination();
89 
92  virtual bool passedDestination();
93 
96  virtual double findDesiredSpeed();
97 
101  virtual double findDesiredHeading();
102 
108  virtual void setupDestinationVector() const;
109 
115 
119  virtual void stop();
120 
121 protected:
125 
128  orig);
129 
133 
134  bool createPorts();
135 
136 protected:
137 
141 };
142 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)