VR-Forces 4.10 Class Documentation
 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 
20 class DtSimManager;
21 class DtSimMessage;
22 
44 {
45 
46 public:
47 
51  static DtSimComponent * creator(const DtString& name,
52  DtVrfObject* owner,
53  DtSimManager* simManager,
54  DtComponentDescriptor* desc = 0,
55  DtReaderWriterRegistry* parentRegistry = 0);
56 
60  DtVrfObject* owner,
61  DtSimManager* simManager,
62  DtComponentDescriptor* desc = 0,
63  DtReaderWriterRegistry* parentRegistry = 0);
64 
67 
70  virtual const char* type() const;
71 
80  static void patrolRouteCallback(DtSimMessage * msg, void * usrData);
81 
94  virtual void processPatrolRouteTask(DtSimMessage * msg);
95 
99  virtual void registerTaskMsgCallbacks();
100 
104 
107  virtual void moveToMiddleOrFinalPoint();
108 
117  virtual bool targetNextVertex();
118 
119 protected:
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
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *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:42
DtSurfaceEntityPatrolRouteController is a controller that models patrolling along a route for surface...
Definition: surfaceEntityPatrolRouteController.h:42
Definition: readerWriterRegistry.h:39
virtual const char * type() const
Returns a string identifies the class type of component.
virtual bool targetNextVertex()
virtual void doMoving(double desiredSpeed);
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
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtSurfaceEntityMoveAlongController & operator=(const DtSurfaceEntityMoveAlongController &orig)
assignment operator; not implemented
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
virtual void registerTaskMsgCallbacks()
Registers interest in move along tasks by calling addTaskProcessorCallback with moveAlongCallback as ...

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)