VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 protected:
92 
94  virtual bool createPortGroups();
95 
97  virtual bool createPorts();
98 
99  virtual void processMoveAlong(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
100 
106 
110 
126  virtual void pilotProperties();
127 
131  virtual void buildLocalRoute();
132 
135  virtual void emptyVertexList();
136 
138  static DtReaderWriter* provideNextRoutePointIndex(void* c);
139 
140 protected:
141 
143 
144 
145 
146 
147 
148 
150 
155 
157 
161 
164 
165 };
166 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)