VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
surfaceEntityPatrolRouteController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 
13 #pragma once
14 
16 
17 #include <vlutil/vlString.h>
18 #include <matrix/vlVector.h>
19 
21 class DtSimMessage;
22 
44 {
45 
46 public:
47 
51  static DtSimComponent * creator(const DtString& name,
52  DtLocalObject* owner,
53  DtSimulationServices* simManager,
54  DtComponentDescriptor* desc = 0,
55  DtReaderWriterRegistry* parentRegistry = 0);
56 
60  DtLocalObject* owner,
61  DtSimulationServices* simManager,
62  DtComponentDescriptor* desc = 0,
63  DtReaderWriterRegistry* parentRegistry = 0);
64 
66  virtual ~DtSurfaceEntityPatrolRouteController() override;
67 
70  virtual const char* type() const override;
71 
80  static void patrolRouteCallback(DtSimMessage * msg, void * usrData);
81 
94  virtual void processPatrolRouteTask(DtSimMessage * msg);
95 
99  virtual void registerTaskMsgCallbacks() override;
100 
104 
107  virtual void moveToMiddleOrFinalPoint() override;
108 
117  virtual bool targetNextVertex() override;
118 
119 private:
122 
126 
130 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtSurfaceEntityMoveAlongController is a controller that models movement of a ship along a route...
Definition: surfaceEntityMoveAlongController.h:39
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtSurfaceEntityPatrolRouteController is a controller that models patrolling along a route for surface...
Definition: surfaceEntityPatrolRouteController.h:42
Definition: readerWriterRegistry.h:39
virtual bool targetNextVertex()
virtual void doMoving(double desiredSpeed);
virtual void registerTaskMsgCallbacks() override
Registers interest in move along tasks by calling addTaskProcessorCallback with moveAlongCallback as ...
virtual void moveToMiddleOrFinalPoint()
Checks the PSR routeState to see if the current target point is the last in the route or not...
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...
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
const DtSurfaceEntityMoveAlongController & operator=(const DtSurfaceEntityMoveAlongController &orig)
assignment operator; not implemented
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)