VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
missileMoveToControllerComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 
16 
17 #include <matrix/vlVector.h>
18 
19 class DtString;
20 class DtSimManager;
21 class DtConstrainedAnalogPort;
22 class boolPort;
23 class DtSimMessage;
24 
25 
36 {
37 public:
38 
42  DtVrfObject* owner,
43  DtSimManager* simManager,
44  DtComponentDescriptor* desc = 0,
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
49 
51  virtual void tick();
52 
55  virtual const char* type() const;
56 
57 
60  virtual void setTargetPoint(const DtVector& targetPoint);
61  virtual const DtVector& targetPoint() const;
62 
64  virtual void setTargetVelocity(const DtVector& arg);
65  virtual const DtVector& targetVelocity() const;
66 
68  virtual void calculateSteering(const DtVector &relativeVelocity,
69  const DtVector &localPosition,
70  const DtVector &targetVelocity,
71  const DtVector &targetPoint,
72  double& maneuverAccelXOut,
73  double& maneuverAccelYOut,
74  double& maneuverAccelZOut);
75 
79  static void targetPointCallback(DtSimMessage * msg, void * usr);
80 
83  virtual void processTargetPointTask(DtSimMessage * msg);
84 
88  static DtSimComponent * creator(const DtString& name,
89  DtVrfObject* owner,
90  DtSimManager* simManager,
91  DtComponentDescriptor* desc = 0,
92  DtReaderWriterRegistry* parentRegistry = 0);
93 
94 protected:
98 
102 
106 
108  virtual void registerTaskMsgCallbacks();
109 
112  virtual bool setupControlPoint();
113 
115  virtual double findDesiredSpeed();
116 
122  virtual void doMoving();
123 
124 protected:
125 
130 
131 };
132 

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)