VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingPatrolBetweenController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 
16 
17 #include <vlutil/vlString.h>
18 
20 class DtSimMessage;
21 
22 
33 {
34 
35 public:
36 
40  DtLocalObject* owner,
41  DtSimulationServices* simManager,
42  DtComponentDescriptor* desc = 0,
43  DtReaderWriterRegistry* parentRegistry = 0);
44 
46  virtual ~DtRotaryWingPatrolBetweenController() override;
47 
50  virtual void tick() override;
51 
54  virtual const char* type() const override;
55 
56  static void patrolBetweenCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
57 
58  virtual DtSimTaskStatePtr currentTaskState() const override;
59 
61  virtual DtUUID firstWaypoint() const;
62  virtual void setFirstWaypoint(const DtUUID& waypoint);
63 
65  virtual DtUUID secondWaypoint() const;
66  virtual void setSecondWaypoint(const DtUUID& waypoint);
67 
71  static DtSimComponent * creator(const DtString& name,
72  DtLocalObject* owner,
73  DtSimulationServices* simManager,
74  DtComponentDescriptor* desc = 0,
75  DtReaderWriterRegistry* parentRegistry = 0);
76 
77 protected:
78  virtual void processPatrolBetween(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
79 
83 
87 
91 
93  virtual void registerTaskMsgCallbacks() override;
94 
99  virtual void reverse();
100 
101 public:
104  static DtReal theDefaultRadius;
105 
106 };
107 
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 const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void tick() override
Sets the desired position and velocity for use by the parent controller, then calls the parent&#39;s tick...
static DtReal theDefaultRadius
Deprecated. The transition radius in the descriptor is used to determine when the entity has gotten c...
Definition: rotaryWingPatrolBetweenController.h:104
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
std::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
File: simMsg.h.
Definition: simMessage.h:35
const DtRotaryWingMoveToControllerComponent & operator=(const DtRotaryWingMoveToControllerComponent &orig)
assignment operator; see comments on copy constructor!
virtual DtSimTaskStatePtr currentTaskState() const
DtRotaryWingMoveToControllerComponent is a controller used to model the movement of a helicopter alon...
Definition: rotaryWingMoveToControllerComponent.h:27
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
virtual void registerTaskMsgCallbacks() override
Overrides this so it can register its interest in MoveTo commands.
A DtTaskMsg is a DtRadioMsg with a pointer to a task. The type of the taskMsg is just the type of the...
Definition: taskMessage.h:21
DtRotaryWingPatrolBetweenController is a controller used to model patrolling between waypoints for a ...
Definition: rotaryWingPatrolBetweenController.h:31
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)