VR-Forces 4.8 Class Documentation
 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 
19 class DtSimManager;
20 class DtSimMessage;
21 
22 
33 {
34 
35 public:
36 
40  DtVrfObject* owner,
41  DtSimManager* simManager,
42  DtComponentDescriptor* desc = 0,
43  DtReaderWriterRegistry* parentRegistry = 0);
44 
47 
50  virtual void tick();
51 
54  virtual const char* type() const;
55 
56  static void patrolBetweenCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
57 
58  virtual DtSimTaskStatePtr currentTaskState() const;
59 
61  virtual const DtUUID& firstWaypoint() const;
62  virtual void setFirstWaypoint(const DtUUID& waypoint);
63 
65  virtual const DtUUID& secondWaypoint() const;
66  virtual void setSecondWaypoint(const DtUUID& waypoint);
67 
71  static DtSimComponent * creator(const DtString& name,
72  DtVrfObject* owner,
73  DtSimManager* 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();
94 
99  virtual void reverse();
100 
101 public:
104  static DtReal theDefaultRadius;
105 
106 };
107 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual void registerTaskMsgCallbacks()
Overrides this so it can register its interest in MoveTo commands.
static DtReal theDefaultRadius
Deprecated.
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:42
Definition: readerWriterRegistry.h:39
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
File: simMsg.h.
Definition: simMessage.h:35
virtual const char * type() const
Returns a string identifies the class type of component.
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
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void tick()
Sets the desired position and velocity for use by the parent controller, then calls the parent&#39;s tick...
A DtTaskMsg is a DtRadioMsg with a pointer to a task.
Definition: taskMessage.h:19
DtRotaryWingPatrolBetweenController is a controller used to model patrolling between waypoints for a ...
Definition: rotaryWingPatrolBetweenController.h:31

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)