VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fixedWingPatrolBetweenController.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 
15 
16 #include <vlutil/vlString.h>
17 
19 class DtSimMessage;
20 
21 
22 
32 {
33 
34 public:
35 
39  DtLocalObject* owner,
40  DtSimulationServices* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45  virtual ~DtFixedWingPatrolBetweenController() override;
46 
49  virtual const char* type() const override;
50 
51  static void patrolBetweenCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
52 
53  virtual DtSimTaskStatePtr currentTaskState() const override;
54 
55  virtual DtUUID firstWaypoint() const;
56  virtual void setFirstWaypoint(const DtUUID& waypoint);
57 
58  virtual DtUUID secondWaypoint() const;
59  virtual void setSecondWaypoint(const DtUUID& waypoint);
60 
64  static DtSimComponent * creator(const DtString& name,
65  DtLocalObject* owner,
66  DtSimulationServices* simManager,
67  DtComponentDescriptor* desc = 0,
68  DtReaderWriterRegistry* parentRegistry = 0);
69 
71  virtual void registerTaskMsgCallbacks() override;
72 
75  virtual void doFinishing() override;
76 
77 protected:
78  virtual void processPatrolBetween(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
79 
83 
86  orig);
87 
91 };
92 
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 doFinishing()
Based on the current Movement status of the entity, calls the appropriate doFinishing function...
DtFixedWingMoveToController & operator=(const DtFixedWingMoveToController &orig)
assignment operator
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
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
DtFixedWingPatrolBetweenController is a controller that models patrolling between waypoint behavior f...
Definition: fixedWingPatrolBetweenController.h:31
File: simMsg.h.
Definition: simMessage.h:35
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual DtSimTaskStatePtr currentTaskState() const
DtFixedWingMoveToController is a controller used to model the movement of a fixed wing entity to a sp...
Definition: fixedWingMoveToController.h:28
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 and all other messages described in...
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
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)