VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingMoveAlongControllerComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2000 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
17 class DtString;
18 class DtSimManager;
19 class DtRouteState;
20 class DtSimMessage;
21 
22 class DtBooleanInputPort;
23 class DtInputPortGroup;
24 
31 {
32 
33 public:
34 
38  DtVrfObject* owner,
39  DtSimManager* simManager,
40  DtComponentDescriptor* desc = 0,
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
45 
46 
48  virtual bool init();
49 
51  virtual void tick();
52 
55  virtual const char* type() const;
56 
57  static void moveAlongCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
58 
59  virtual DtSimTaskStatePtr currentTaskState() const;
60 
62  virtual void registerTaskMsgCallbacks();
63 
65  static void routeChangedCallback(DtVrfObject * obj, void * usr);
66  virtual void processRouteChanged(DtVrfObject * obj);
67 
71  static DtSimComponent * creator(const DtString& name,
72  DtVrfObject* owner,
73  DtSimManager* simManager,
74  DtComponentDescriptor* desc = 0,
75  DtReaderWriterRegistry* parentRegistry = 0);
76 
78  virtual bool setupRoute();
79 
82  virtual bool isMovingToward(const DtVector& ENUpoint);
83 
85  virtual void routeLogic();
86 
89  virtual void desiredVelocityAndPosition();
90 
91 
92 protected:
93 
95  virtual bool createPortGroups();
96 
98  virtual bool createPorts();
99 
100  virtual void processMoveAlong(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
101 
107 
111 
127  virtual void pilotProperties();
128 
132  virtual void buildLocalRoute();
133 
136  virtual void emptyVertexList();
137 
139  static DtReaderWriter* provideNextRoutePointIndex(void* c);
140 
141 protected:
142 
144 
145 
146 
147 
148 
149 
151 
156 
158 
162 
165 
169 };
170 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)