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 
47  virtual ~DtRotaryWingLandingController() override;
48 
50  virtual bool init() override;
51 
54  virtual void tick() override;
55 
58  virtual const char* type() const override;
59 
60  virtual void clearTask() override;
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() override;
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()
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 const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init() override
Overridden to initialize myRotaryWingEntityState.
Definition: readerWriterRegistry.h:39
const DtRotaryWingTaskController & operator=(const DtRotaryWingTaskController &orig)
assignment operator; not implemented
DtRotaryWingLandingController models landing behavior for rotary-wing entities.
Definition: rotaryWingLandingController.h:34
File: simMsg.h.
Definition: simMessage.h:35
virtual void clearTask() override
Overridden to deactivate the port group when this controller completes a task.
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:96
DtSimObjectReference myLandingPoint
Definition: rotaryWingLandingController.h:139
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
virtual void tick() override
This gives the thread of control to the component. The component is ticked once each simulation from ...
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)