VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingLandingController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
12 
13 #pragma once
14 
15 
17 
18 class DtString;
20 class DtSimMessage;
21 
35 {
36 public:
37 
41  DtLocalObject* owner,
42  DtSimulationServices* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48 
50  virtual bool init();
51 
54  virtual void tick();
55 
58  virtual const char* type() const;
59 
60  virtual void clearTask();
61 
65  static DtSimComponent * creator(const DtString& name,
66  DtLocalObject* owner,
67  DtSimulationServices* simManager,
68  DtComponentDescriptor* desc = 0,
69  DtReaderWriterRegistry* parentRegistry = 0);
70 
71 protected:
73  virtual void registerTaskMsgCallbacks();
74 
76  static void landingTaskCallback(DtSimMessage* msg, void* usr);
77 
79  virtual void processLandingTask(DtSimMessage* msg);
80 
82  static void taskCompleteReportCallback(DtSimMessage* msg, void* usr);
83 
85  virtual void processTaskCompleteReport(DtSimMessage* msg);
86 
89  virtual bool startMovingToLandingPosition();
90 
97  virtual bool sendMoveSubtask(const DtUUID& destination);
98 
102  virtual void settle();
103 
105  virtual void doLanding();
106 
110  virtual bool landingPosition(DtVector& localPosition);
111 
113  virtual bool landingPointValid(const DtUUID&) const;
114 
118  virtual DtVector getApproachPosFromControlPoint(const DtVector& point);
119 
126  virtual void pilotProperties();
127 
128 private:
133  const DtRotaryWingLandingController & orig);
137 
138 protected:
140 
143 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void registerTaskMsgCallbacks()
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual void clearTask()
Overridden to deactivate the port group when this controller completes a task.
Definition: readerWriterRegistry.h:39
const DtRotaryWingTaskController & operator=(const DtRotaryWingTaskController &orig)
assignment operator; not implemented
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtRotaryWingLandingController models landing behavior for rotary-wing entities.
Definition: rotaryWingLandingController.h:34
File: simMsg.h.
Definition: simMessage.h:35
The DtRotaryWingTaskController class creates the rotary-wing-control port group needed to control rot...
Definition: rotaryWingTaskController.h:31
double myHeightAboveGroundSupport
Cached value from heightAboveGroundSupport.
Definition: rotaryWingLandingController.h:142
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:95
DtSimObjectReference myLandingPoint
Definition: rotaryWingLandingController.h:139
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
virtual bool init()
Overridden to initialize myRotaryWingEntityState.
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)