VR-Forces 4.1 Class Documentation
surfEntMvAlg.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
14 #include "vrfutil/lclVecIter.h"
15 
16 class DtString;
17 class DtSimManager;
18 class DtRouteState;
19 class DtSimMessage;
20 
21 
47 {
48 
49 public:
50 
54  DtVrfObject* owner,
55  DtSimManager* simManager,
56  DtComponentDescriptor* desc = 0,
57  DtReaderWriterRegistry* parentRegistry = 0);
58 
64 
66  virtual bool init();
67 
70  virtual DtString type() const;
71 
72  virtual void clearTask();
73 
81  static void moveAlongCallback(DtSimMessage* msg, void* usr);
82 
91  virtual void processMoveAlongTask(DtSimMessage * msg);
92 
97  static void routeChangedCallback(DtVrfObject* obj, void* user);
105  virtual void processRouteChanged(DtVrfObject* obj);
106 
115  virtual bool atGoal();
116 
125  virtual bool passedGoal();
126 
130  virtual void doMoving(double desiredSpeed);
131 
139  virtual bool targetNextVertex();
140 
141  static void objectAboutToBeRemovedCallback(DtVrfObject* obj, void* usr);
142 
146  static DtSimComponent * creator(const DtString& name,
147  DtVrfObject* owner,
148  DtSimManager* simManager,
149  DtComponentDescriptor* desc = 0,
150  DtReaderWriterRegistry* parentRegistry = 0);
151 
152 protected:
155 
159 
161  const DtSurfaceEntityMoveAlongController& operator=
163 
164 
174  virtual bool setupRoute();
175 
183  virtual bool setupControlPoint();
184 
188  virtual void registerTaskMsgCallbacks();
189 
192  virtual void emptyVertexList();
193 
194  virtual void processObjectAboutToBeRemoved(DtVrfObject* obj);
195 
196 protected:
200 
204 };

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)