VR-Forces 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>
20 
21 class DtObjectIdOutputPort;
22 
27 
29 {
30 public:
31 
33  DtHumanFollowPSR(DtLocalObject* vrfObject,
34  const DtString& rwName = DtString::nullString(),
35  DtReaderWriterRegistry* parentRegistry = 0);
36 
39  const DtString& rwName = DtString::nullString(),
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtHumanFollowPSR();
44 
47 
50  const DtString& rwName = DtString::nullString(),
51  DtReaderWriterRegistry* parentRegistry = 0) const;
52 
55  virtual DtString type() const;
56 
59  virtual void setEntityToFollow(const DtUUID&);
60  virtual DtSimObjectReference entityToFollow() const;
62 
66  virtual void setFollowingOffsetVector(const DtVector& offsetVector);
67  virtual const DtVector& followingOffsetVector() const;
69 
73  virtual void setControlObject(const DtUUID&);
74 
76  virtual DtSimObjectReference controlObject() const;
78 
84  virtual void setWorldDestination(const DtVector& destination);
85  virtual const DtVector& worldDestination() const;
87 
91 
94  virtual void setLocalDestinationVelocity(const DtVector& velocity);
95  virtual const DtVector& localDestinationVelocity() const;
97 
100  virtual void setDestinationSetTime(const double time);
101  virtual const double destinationSetTime()const;
103 
106  virtual void setDisembarkSubtaskId(const int id);
107  virtual const int disembarkSubtaskId()const;
109 
111 
112 public:
113 
115  static DtVrfProcessStateRepository* creator (const DtString& rwName,
116  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
117 
118 protected:
119 
126 
133 
136 
142 
145 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: humanFollowPSR.h:135
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:139
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
DtRwVector myOffsetVector
Definition: humanFollowPSR.h:125
Definition: rwVector.h:23
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
DtRwSimObjectReference myEntityToFollow
From DtGroundFollowEntityController (gndFollwCtl.h)
Definition: humanFollowPSR.h:124
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:28
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myDestinationSetTime
The time that the local destination was last set.
Definition: humanFollowPSR.h:141
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:132
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:144
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)