VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateFollowController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 
17 
20 class DtOutputPortGroup;
21 class DtAnalogOutputPort;
22 class DtVectorOutputPort;
24 
26 {
27 public:
31  DtVrfObject* owner,
32  DtSimManager* simManager,
33  DtComponentDescriptor* desc = 0,
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
36  virtual ~DtAggregateFollowController();
37 
40  virtual const char* type() const;
41 
43  virtual bool init();
44 
46  virtual bool createPorts();
47 
49  virtual bool createPortGroups();
50 
52  virtual void tick();
53 
55  virtual double desiredHeading();
56 
58  virtual double desiredSpeed();
59 
63  static void followEntityCallback(DtSimMessage* msg, void* usrData);
64  virtual void processFollowEntityTask(DtSimMessage* msg);
65 
70  virtual const DtUUID& entityToFollow() const;
71  virtual void setEntityToFollow(const DtUUID& entity);
72 
74  virtual double followDistance() const;
75  virtual void setFollowDistance(double distance);
76 
78  virtual void registerTaskMsgCallbacks();
79 
81  virtual void clearTask();
82 
86  static DtSimComponent * creator(const DtString& name,
87  DtVrfObject* owner,
88  DtSimManager* simManager,
89  DtComponentDescriptor* desc = 0,
90  DtReaderWriterRegistry* parentRegistry = 0);
91 
92 protected:
96 
99 
108 
114 
119 
127 };
128 

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)