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();
46 
49 
52  const DtString& rwName = DtString::nullString(),
53  DtReaderWriterRegistry* parentRegistry = 0) const;
54 
57  virtual DtString type() const;
58 
64  virtual void setWorldDestination(const DtVector& destination);
65  virtual const DtVector& worldDestination() const;
67 
71  virtual void setRoute(const DtUUID& route);
72 
74  virtual DtSimObjectReference route() const;
76 
80  virtual void setRouteVertices(const DtLocalVectorIterator& routeIterator);
81  virtual void setRouteVertices(const DtLocalVertexList& routeVertices);
82  virtual const DtLocalVertexList& routeVertices() const;
84 
86  virtual void emptyRouteVertices();
87 
90  virtual DtLocalVectorIterator* routeState() const;
91 
94  virtual void setReversePatrol(bool flag);
95  virtual bool reversePatrol() const;
97 
100  virtual void setRouteIsDiscovered(bool value);
101  virtual bool routeIsDiscovered() const;
103 
107  virtual void setCurrentVertex(int vertex);
108  virtual int currentVertex() const;
110 
112  virtual void setTaskStartPoint(const DtVector& loc);
113  virtual const DtVector& taskStartPoint() const;
114 
116  virtual void putSelf(std::string& fp, int indentLevel = 0, bool writeUnspecified = false,
117  const DtFilename& path = DtReaderWriter::appPath());
118 
119 public:
120 
122  static DtVrfProcessStateRepository* creator (const DtString& rwName,
123  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
124 
125 protected:
126 
130 
138 
142 
149 
154 
157 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwBoolean myRouteIsDiscovered
From DtGroundMoveAlongController (gndMvAlgCtl.h)
Definition: aggregatedMoveAlongPSR.h:147
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:135
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:129
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: aggregatedMoveAlongPSR.h:156
DtRwInt myCurrentVertex
Read/write variables to capture route state.
Definition: aggregatedMoveAlongPSR.h:137
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:141
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:153
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:133
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)