VR-Forces 4.3 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 class DtString;
18 class DtSimManager;
19 class DtConstrainedAnalogPort;
20 class boolPort;
21 class DtVector;
22 class DtSimMessage;
23 
24 
35 {
36 public:
37 
41  DtVrfObject* owner,
42  DtSimManager* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48 
50  virtual void tick();
51 
54  virtual DtString type() const;
55 
56 
59  virtual void setTargetPoint(const DtVector& targetPoint);
60  virtual const DtVector& targetPoint() const;
61 
63  virtual void setTargetVelocity(const DtVector& arg);
64  virtual const DtVector& targetVelocity() const;
65 
67  virtual void calculateSteering(const DtVector &relativeVelocity,
68  const DtVector &localPosition,
69  const DtVector &targetVelocity,
70  const DtVector &targetPoint,
71  double& maneuverAccelXOut,
72  double& maneuverAccelYOut,
73  double& maneuverAccelZOut);
74 
78  static void targetPointCallback(DtSimMessage * msg, void * usr);
79 
82  virtual void processTargetPointTask(DtSimMessage * msg);
83 
87  static DtSimComponent * creator(const DtString& name,
88  DtVrfObject* owner,
89  DtSimManager* simManager,
90  DtComponentDescriptor* desc = 0,
91  DtReaderWriterRegistry* parentRegistry = 0);
92 
93 protected:
97 
101 
105 
107  virtual void registerTaskMsgCallbacks();
108 
111  virtual bool setupControlPoint();
112 
114  virtual double findDesiredSpeed();
115 
121  virtual void doMoving();
122 
123 protected:
124 
129 
130 };
131 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)