VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregatedMovementActuatorPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
11 
14 #include <readerWriter/rwBoolean.h>
15 #include <readerWriter/rwString.h>
16 #include <readerWriter/rwReal.h>
19 
21 class DtEntityIdentifier;
22 
24 {
25 public:
26 
29  const DtString& rwName = DtString::nullString(),
30  DtReaderWriterRegistry* parentRegistry = 0);
31 
34  const DtString& rwName = DtString::nullString(),
35  DtReaderWriterRegistry* parentRegistry = 0);
36 
39 
42 
45  const DtString& rwName = DtString::nullString(),
46  DtReaderWriterRegistry* parentRegistry = 0) const;
47 
49  virtual DtString type() const;
50 
53  virtual bool haltMovementForObstacles() const;
54  virtual void setHaltMovementForObstacles(bool value);
56 
59  virtual const DtString& obstacleQueryName() const;
60  virtual void setObstacleQueryName(const DtString& objectTypes);
62 
65  virtual bool isHalted() const;
66  virtual void setIsHalted(bool value);
68 
71  virtual const DtRwVrfObjectReference& blockingObstacle() const;
72  virtual DtRwVrfObjectReference& blockingObstacle();
73  virtual void setBlockingObstacle(const DtUUID& obstacleName);
75 
78  virtual DtTime timeHalted() const;
79  virtual void setTimeHalted(DtTime timeHalted);
81 
84  virtual const DtRwNLengthStringVector& obstaclesToIgnore() const;
85  virtual void setObstaclesToIgnore(const DtRwNLengthStringVector& obstacleNames);
86  virtual void addObstacleToIgnore(const DtString& obstacleName);
87  virtual void removeObstacleToIgnore(const DtString& obstacleName);
88  virtual void clearObstaclesToIgnore();
90 
93  virtual const DtRwNLengthStringVector& unencounteredObstaclesToIgnore() const;
94  virtual void setUnencounteredObstaclesToIgnore(const DtRwNLengthStringVector& obstacleNames);
95  virtual void addUnencounteredObstacleToIgnore(const DtString& obstacleName);
96  virtual void removeUnencounteredObstacleToIgnore(const DtString& obstacleName);
97  virtual void clearUnencounteredObstaclesToIgnore();
99 
101  static DtVrfProcessStateRepository* creator (const DtString& rwName,
102  DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
103 
104 protected:
107 
111 
114 
117 
120 
123 
127 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
Definition: aggregatedMovementActuatorPSR.h:23
DtRwNLengthStringVector is a named, readable/writable vector of strings of arbitrary length...
Definition: rwNLengthStringVector.h:28
DtRwBoolean myIsHalted
Whether the actuator is currently halted due to obstacles.
Definition: aggregatedMovementActuatorPSR.h:113
DtRwString myObstacleQueryName
The feature query name for obstacles for which the actuator should halt if myHaltMovementForObstacles...
Definition: aggregatedMovementActuatorPSR.h:110
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
DtRwNLengthStringVector myObstaclesToIgnore
List of obstacle names which do not need to be halted for.
Definition: aggregatedMovementActuatorPSR.h:122
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwBoolean myHaltMovementForObstacles
Whether the actuator should halt movement when encountering obstacles.
Definition: aggregatedMovementActuatorPSR.h:106
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwReal myTimeHalted
The time that the actuator halted due to an obstacle.
Definition: aggregatedMovementActuatorPSR.h:119
DtRwVrfObjectReference myBlockingObstacle
The name of the obstacle that is currently causing us to halt.
Definition: aggregatedMovementActuatorPSR.h:116
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
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
DtRwNLengthStringVector myUnencounteredObstaclesToIgnore
List of obstacle names which do not need to be halted for that we have not yet encountered.
Definition: aggregatedMovementActuatorPSR.h:126
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
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)