VR-Forces 4.1.1 Class Documentation
surfEntMvToCtl.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 
13 #include "vrfmodel/surfEntPltCtl.h"
14 
15 class DtString;
16 class DtSimManager;
17 
34 {
35 public:
36 
40  DtVrfObject* owner,
41  DtSimManager* simManager,
42  DtComponentDescriptor* desc = 0,
43  DtReaderWriterRegistry* parentRegistry = 0);
44 
47 
50  virtual DtString type() const;
51 
52  virtual void clearTask();
53 
80  virtual void tick();
81 
91  virtual void setupGoalVector(const DtVector & goalPosition);
92 
95  virtual void doMoving (double desiredSpeed);
96 
103  virtual bool passedGoal();
104 
115  virtual bool atGoal();
116 
128  virtual bool nearGoal();
129 
131  virtual double findDesiredSpeed();
132 
141  static void moveToCallback (DtSimMessage* msg, void* user);
142 
143  static void objectAboutToBeRemovedCallback(DtVrfObject* obj, void* usr);
144 
152  virtual void processMoveToTask (DtSimMessage* msg);
153 
157  virtual void registerTaskMsgCallbacks();
158 
162  static DtSimComponent* creator(const DtString& name,
163  DtVrfObject* owner,
164  DtSimManager* simManager,
165  DtComponentDescriptor* desc = 0,
166  DtReaderWriterRegistry* parentRegistry = 0);
167 
168 private:
169 
172 
175 
178  const DtSurfaceEntityMoveToController& orig);
179 
180 protected:
187  virtual bool setupControlPoint();
188 
189 protected:
192  virtual double distanceSquaredToDestination2D(const DtVector& current) const;
193 
195  virtual void getLocalDestination(DtVector& local) const;
196 
197  virtual void processObjectAboutToBeRemoved(DtVrfObject* obj);
198 
199 protected:
200 
205 
208 
209  bool myAtGoal;
212 };
213 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)