VR-Forces 4.1 Class Documentation
gndMvAlgCtl.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include "vrfmodel/gndMvToCntlr.h"
15 
17 
18 
26 {
27 
28 public:
29 
33  DtVrfObject* owner,
34  DtSimManager* simManager,
35  DtComponentDescriptor* desc = 0,
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
40 
43  virtual DtString type() const;
44 
49  virtual void preFirstTickInit();
50 
54  virtual void tick();
55 
59  static void moveAlongCallback(DtSimMessage * msg, void * usr);
60 
63  virtual void processMoveAlongTask(DtSimMessage * msg);
64 
66  static void routeChangedCallback(DtVrfObject* obj, void * usr);
67  virtual void processRouteChanged(DtVrfObject* obj);
68 
70  virtual void registerTaskMsgCallbacks();
71 
75  static DtSimComponent * creator(const DtString& name,
76  DtVrfObject* owner,
77  DtSimManager* simManager,
78  DtComponentDescriptor* desc = 0,
79  DtReaderWriterRegistry* parentRegistry = 0);
80 
88  virtual bool setupRoute();
89 
96  virtual bool setupDestination();
97 
116  virtual double findDesiredSpeed();
117 
119  virtual double findCosTurnAngle();
120 
126  virtual void stop();
127 
129  static void objectAddedCb(DtVrfObject * vrfObject, void * usr);
130 
131  static void objectAboutToBeRemovedCallback(DtVrfObject* obj, void* usr);
132 
133 protected:
134 
137 
141 
145 
149  virtual void buildLocalRoute();
150 
153  virtual void emptyVertexList();
154 
158  virtual void processObjectAdded(DtVrfObject * vrfObject);
159 
162  virtual void clearTask();
163 
164  virtual bool decideToGiveUpTask() const;
165 
166  virtual void processObjectAboutToBeRemoved(DtVrfObject* obj);
167 
168 protected:
169 
173 
178 
180 };

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)