VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregatedMoveAlongPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 #pragma once
9 
12 #include "vrfobjcore/simObject.h"
13 #include <readerWriter/rwReal.h>
14 #include <readerWriter/rwInt.h>
15 #include "vrfutil/rwUUID.h"
16 #include <readerWriter/rwBoolean.h>
17 #include <readerWriter/rwString.h>
18 #include "readerWriter/rwVector.h"
22 
31 {
32 public:
33 
36  const DtString& rwName = DtString::nullString(),
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
41  const DtString& rwName = DtString::nullString(),
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45  virtual ~DtAggregatedMoveAlongPSR() override;
46 
49 
52  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
53 
56  virtual DtString type() const override;
57 
63  virtual void setWorldDestination(const DtVector& destination);
64  virtual const DtVector& worldDestination() const;
66 
70  virtual void setRoute(const DtUUID& route);
71 
73  virtual DtSimObjectReference route() const;
75 
79  virtual void setRouteVertices(const DtLocalVectorIterator& routeIterator);
80  virtual void setRouteVertices(const DtLocalVertexList& routeVertices);
81  virtual const DtLocalVertexList& routeVertices() const;
83 
85  virtual void emptyRouteVertices();
86 
89  virtual DtLocalVectorIterator* routeState() const;
90 
93  virtual void setReversePatrol(bool flag);
94  virtual bool reversePatrol() const;
96 
99  virtual void setRouteIsDiscovered(bool value);
100  virtual bool routeIsDiscovered() const;
102 
106  virtual void setCurrentVertex(int vertex);
107  virtual int currentVertex() const;
109 
111  virtual void setTaskStartPoint(const DtVector& loc);
112  virtual const DtVector& taskStartPoint() const;
113 
115  virtual void putSelf(std::string& fp, int indentLevel = 0, bool writeUnspecified = false,
116  const DtFilename& path = DtReaderWriter::appPath()) override;
117 
118 public:
119 
121  static DtVrfProcessStateRepository* creator (const DtString& rwName,
122  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
123 
124 protected:
125 
129 
137 
141 
148 
153 
156 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwBoolean myRouteIsDiscovered
From DtGroundMoveAlongController (gndMvAlgCtl.h)
Definition: aggregatedMoveAlongPSR.h:146
File: lclVecIter.h.
Definition: localVectorIterator.h:25
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
DtLocalVertexList myVertices
my copy of the current route
Definition: aggregatedMoveAlongPSR.h:134
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
class DtAggregatedMoveAlongPSR:
Definition: aggregatedMoveAlongPSR.h:30
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwSimObjectReference myRoute
If tasked() is true, this is the name of the route object we&#39;re moving to.
Definition: aggregatedMoveAlongPSR.h:128
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: aggregatedMoveAlongPSR.h:155
DtRwInt myCurrentVertex
Read/write variables to capture route state.
Definition: aggregatedMoveAlongPSR.h:136
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
DtRwVector myTaskStartPoint
The start point of the move, to determine the direction to the first route point. ...
Definition: aggregatedMoveAlongPSR.h:140
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwBoolean myReverseFlag
From DtGroundPatrolRouteController (gndPtrlRtCtl.h)
Definition: aggregatedMoveAlongPSR.h:152
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
DtLocalVectorIterator * myRouteState
Route state used to get info about the current route we&#39;re trying to follow (e.g. which vertex to mov...
Definition: aggregatedMoveAlongPSR.h:132
class DtLocalVertexList:
Definition: localVertexList.h:20
File: rwVector.h.
static const DtFilename & appPath()
Gets the current working directory. The first time this accessor is called, it determines the current...
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
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)