VR-Forces 4.8 Class Documentation
 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 
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 const DtRwVrfObjectReference& route() const;
74  virtual DtRwVrfObjectReference& route();
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 putSelf(std::string& fp, int indentLevel = 0, bool writeUnspecified = false,
113  const DtFilename& path = DtReaderWriter::appPath());
114 
115 public:
116 
118  static DtVrfProcessStateRepository* creator (const DtString& rwName,
119  DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
120 
121 protected:
122 
126 
134 
141 
146 
149 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
DtRwBoolean myRouteIsDiscovered
Definition: aggregatedMoveAlongPSR.h:139
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
File: lclVecIter.h.
Definition: localVectorIterator.h:25
Definition: readerWriterRegistry.h:39
DtLocalVertexList myVertices
my copy of the current route
Definition: aggregatedMoveAlongPSR.h:131
Definition: rwVector.h:23
#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
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: aggregatedMoveAlongPSR.h:148
DtRwInt myCurrentVertex
Read/write variables to capture route state.
Definition: aggregatedMoveAlongPSR.h:133
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.
DtRwVrfObjectReference myRoute
If tasked() is true, this is the name of the route object we&#39;re moving to.
Definition: aggregatedMoveAlongPSR.h:125
Class used as the reader/writer implementation of the DtVrfObjectReference.
Definition: vrfObjectReference.h:204
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories.
Definition: vrfProcessStateRepository.h:43
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwBoolean myReverseFlag
From DtGroundPatrolRouteController (gndPtrlRtCtl.h)
Definition: aggregatedMoveAlongPSR.h:145
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. ...
Definition: aggregatedMoveAlongPSR.h:129
class DtLocalVertexList:
Definition: localVertexList.h:20
File: rwVector.h.
static const DtFilename & appPath()
Gets the current working directory.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)