VR-Forces Developer's Guide
 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 
13 #include "vrfobjcore/simObject.h"
14 #include <readerWriter/rwBoolean.h>
15 #include <readerWriter/rwString.h>
16 #include <readerWriter/rwReal.h>
20 
22 class DtEntityIdentifier;
23 
25 {
26 public:
27 
30  const DtString& rwName = DtString::nullString(),
31  DtReaderWriterRegistry* parentRegistry = 0);
32 
35  const DtString& rwName = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
39  virtual ~DtAggregatedMovementActuatorPSR() override;
40 
43 
46  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
47 
49  virtual DtString type() const override;
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 DtSimObjectReference blockingObstacle() const;
72  virtual void setBlockingObstacle(const DtUUID& obstacleName);
74 
77  virtual DtTime timeHalted() const;
78  virtual void setTimeHalted(DtTime timeHalted);
80 
83  virtual const DtRwNLengthStringVector& obstaclesToIgnore() const;
84  virtual void setObstaclesToIgnore(const DtRwNLengthStringVector& obstacleNames);
85  virtual void addObstacleToIgnore(const DtString& obstacleName);
86  virtual void removeObstacleToIgnore(const DtString& obstacleName);
87  virtual void clearObstaclesToIgnore();
89 
92  virtual const DtRwNLengthStringVector& unencounteredObstaclesToIgnore() const;
93  virtual void setUnencounteredObstaclesToIgnore(const DtRwNLengthStringVector& obstacleNames);
94  virtual void addUnencounteredObstacleToIgnore(const DtString& obstacleName);
95  virtual void removeUnencounteredObstacleToIgnore(const DtString& obstacleName);
96  virtual void clearUnencounteredObstaclesToIgnore();
98 
100  static DtVrfProcessStateRepository* creator (const DtString& rwName,
101  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
102 
103 protected:
106 
110 
113 
116 
119 
122 
126 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
Definition: aggregatedMovementActuatorPSR.h:24
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:112
DtRwString myObstacleQueryName
The feature query name for obstacles for which the actuator should halt if myHaltMovementForObstacles...
Definition: aggregatedMovementActuatorPSR.h:109
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:121
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
DtRwBoolean myHaltMovementForObstacles
Whether the actuator should halt movement when encountering obstacles.
Definition: aggregatedMovementActuatorPSR.h:105
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:118
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
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
DtRwNLengthStringVector myUnencounteredObstaclesToIgnore
List of obstacle names which do not need to be halted for that we have not yet encountered.
Definition: aggregatedMovementActuatorPSR.h:125
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
DtRwSimObjectReference myBlockingObstacle
The name of the obstacle that is currently causing us to halt.
Definition: aggregatedMovementActuatorPSR.h:115
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)