VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanFollowPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "vrfobjcore/simObject.h"
13 #include <readerWriter/rwString.h>
14 #include "readerWriter/rwVector.h"
15 #include <readerWriter/rwReal.h>
17 #include <vrfutil/rwUUID.h>
18 #include <readerWriter/rwInt.h>
19 
20 class DtObjectIdOutputPort;
21 
26 
28 {
29 public:
30 
32  DtHumanFollowPSR(DtLocalObject* vrfObject,
33  const DtString& rwName = DtString::nullString(),
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
38  const DtString& rwName = DtString::nullString(),
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
42  virtual ~DtHumanFollowPSR();
43 
46 
49  const DtString& rwName = DtString::nullString(),
50  DtReaderWriterRegistry* parentRegistry = 0) const;
51 
54  virtual DtString type() const;
55 
58  virtual void setEntityToFollow(const DtUUID&);
59  virtual DtSimObjectReference entityToFollow() const;
61 
65  virtual void setFollowingOffsetVector(const DtVector& offsetVector);
66  virtual const DtVector& followingOffsetVector() const;
68 
72  virtual void setControlObject(const DtUUID&);
73 
75  virtual DtSimObjectReference controlObject() const;
77 
83  virtual void setWorldDestination(const DtVector& destination);
84  virtual const DtVector& worldDestination() const;
86 
90 
93  virtual void setLocalDestinationVelocity(const DtVector& velocity);
94  virtual const DtVector& localDestinationVelocity() const;
96 
99  virtual void setDestinationSetTime(const double time);
100  virtual const double destinationSetTime()const;
102 
105  virtual void setDisembarkSubtaskId(const int id);
106  virtual const int disembarkSubtaskId()const;
108 
110 
111 public:
112 
114  static DtVrfProcessStateRepository* creator (const DtString& rwName,
115  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
116 
117 protected:
118 
125 
132 
135 
141 
144 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: humanFollowPSR.h:134
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DtRwVector myLocalDestinationVelocity
The vector describing the velocity of the smoothed movement target point during the last tick...
Definition: humanFollowPSR.h:138
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
DtRwVector myOffsetVector
Definition: humanFollowPSR.h:124
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: simObjectReference.h:74
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwSimObjectReference myEntityToFollow
From DtGroundFollowEntityController (gndFollwCtl.h)
Definition: humanFollowPSR.h:123
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
class DtHumanFollowPSR:
Definition: humanFollowPSR.h:27
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myDestinationSetTime
The time that the local destination was last set.
Definition: humanFollowPSR.h:140
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
DtRwSimObjectReference myControlObject
From DtGroundMoveToControllerComponent (gndMvToCntlr.h)
Definition: humanFollowPSR.h:131
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwInt myDisembarkSubtaskId
Id for disembark subtask.
Definition: humanFollowPSR.h:143
File: rwVector.h.
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)