VR-Forces 5.0.3 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"
21 
30 {
31 public:
32 
35  const DtString& rwName = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
40  const DtString& rwName = DtString::nullString(),
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
44  virtual ~DtAggregatedMoveAlongPSR();
45 
48 
51  const DtString& rwName = DtString::nullString(),
52  DtReaderWriterRegistry* parentRegistry = 0) const;
53 
56  virtual DtString type() const;
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 putSelf(std::string& fp, int indentLevel = 0, bool writeUnspecified = false,
112  const DtFilename& path = DtReaderWriter::appPath());
113 
114 public:
115 
117  static DtVrfProcessStateRepository* creator (const DtString& rwName,
118  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
119 
120 protected:
121 
125 
133 
140 
145 
148 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
DtRwBoolean myRouteIsDiscovered
From DtGroundMoveAlongController (gndMvAlgCtl.h)
Definition: aggregatedMoveAlongPSR.h:138
File: lclVecIter.h.
Definition: localVectorIterator.h:25
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
DtLocalVertexList myVertices
my copy of the current route
Definition: aggregatedMoveAlongPSR.h:130
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: simObjectReference.h:74
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
class DtAggregatedMoveAlongPSR:
Definition: aggregatedMoveAlongPSR.h:29
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:124
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: aggregatedMoveAlongPSR.h:147
DtRwInt myCurrentVertex
Read/write variables to capture route state.
Definition: aggregatedMoveAlongPSR.h:132
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...
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:144
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.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:128
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. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)