VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanMoveAlongPSR.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 <readerWriter/rwReal.h>
13 #include <readerWriter/rwInt.h>
14 #include <readerWriter/rwBoolean.h>
15 #include <readerWriter/rwString.h>
16 #include "readerWriter/rwVector.h"
20 #include <vrfutil/rwUUID.h>
21 
27 {
28 public:
29 
31  DtHumanMoveAlongPSR(DtVrfObject* vrfObject,
32  const DtString& rwName = DtString::nullString(),
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
37  const DtString& rwName = DtString::nullString(),
38  DtReaderWriterRegistry* parentRegistry = 0);
39 
41  virtual ~DtHumanMoveAlongPSR();
42 
45 
48  const DtString& rwName = DtString::nullString(),
49  DtReaderWriterRegistry* parentRegistry = 0) const;
50 
53  virtual DtString type() const;
54 
60  virtual void setWorldDestination(const DtVector& destination);
61  virtual const DtVector& worldDestination() const;
63 
67  virtual void setRoute(const DtUUID&);
68 
70  virtual const DtRwVrfObjectReference& route() const;
71  virtual DtRwVrfObjectReference& route();
73 
77  virtual void setMoveToPoint(const DtUUID&);
78 
80  virtual const DtRwVrfObjectReference& moveToPoint() const;
81  virtual DtRwVrfObjectReference& moveToPoint();
83 
87  virtual void setRouteVertices(const DtLocalVectorIterator& routeIterator);
88  virtual void setRouteVertices(const DtLocalVertexList& routeVertices);
89  virtual const DtLocalVertexList& routeVertices() const;
91 
93  virtual void emptyRouteVertices();
94 
97  virtual DtLocalVectorIterator* routeState() const;
98 
101  virtual void setReversePatrol(bool flag);
102  virtual bool reversePatrol() const;
104 
108  virtual void setCurrentVertex(int vertex);
109  virtual int currentVertex() const;
111 
114  virtual void setSpeedOverride(double speed);
115  virtual double speedOverride() const;
116  virtual void setIsSpeedOverrideSpecified(bool o);
117  virtual bool isSpeedOverrideSpecified() const;
119 
121  virtual void putSelf(std::string& fp, int indentLevel = 0, bool writeUnspecified = false,
122  const DtFilename& path = DtReaderWriter::appPath());
123 
124 public:
125 
127  static DtVrfProcessStateRepository* creator (const DtString& rwName,
128  DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
129 
130 protected:
131 
135 
138 
146 
151 
154 
157 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
DtRwReal mySpeedOverride
The speed override.
Definition: humanMoveAlongPSR.h:156
DtRwVrfObjectReference myMoveToPoint
When the move to subtask is issued, this is the point moving to.
Definition: humanMoveAlongPSR.h:137
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
DtRwVrfObjectReference myRoute
If tasked() is true, this is the name of the route object we&#39;re moving to.
Definition: humanMoveAlongPSR.h:134
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: humanMoveAlongPSR.h:153
Definition: readerWriterRegistry.h:39
Definition: rwVector.h:23
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwBoolean myReverseFlag
From DtGroundPatrolRouteController (gndPtrlRtCtl.h)
Definition: humanMoveAlongPSR.h:150
DtRwInt myCurrentVertex
Read/write variables to capture route state.
Definition: humanMoveAlongPSR.h:145
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.
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Class used as the reader/writer implementation of the DtVrfObjectReference.
Definition: vrfObjectReference.h:204
class DtHumanMoveAlongPSR:
Definition: humanMoveAlongPSR.h:26
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories.
Definition: vrfProcessStateRepository.h:43
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
class DtLocalVertexList:
Definition: localVertexList.h:20
DtLocalVertexList myVertices
my copy of the current route
Definition: humanMoveAlongPSR.h:143
File: rwVector.h.
static const DtFilename & appPath()
Gets the current working directory.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
DtLocalVectorIterator * myRouteState
Route state used to get info about the current route we&#39;re trying to follow (e.g. ...
Definition: humanMoveAlongPSR.h:141

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)