VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
localEntitySetControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "readerWriter/rwVector.h"
13 #include <readerWriter/rwBoolean.h>
14 #include <readerWriter/rwReal.h>
15 
21 
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 
40 
43  const DtLocalEntitySetControllerPSR& orig);
44 
47  const DtString& rwName = DtString::nullString(),
48  DtReaderWriterRegistry* parentRegistry = 0) const;
49 
52  virtual DtString type() const;
53 
55  virtual bool pendingSetLocationRequest() const;
58  virtual void setPendingSetLocationRequest(bool requestPending);
60 
62  virtual DtVector pendingSetLocation() const;
64  virtual void setPendingSetLocation(DtVector geocentricLocation);
66 
68  virtual bool pendingKeepGroundClamped() const;
70  virtual void setPendingKeepGroundClamped(bool);
72 
74  virtual bool pendingSetHeadingRequest() const;
77  virtual void setPendingSetHeadingRequest(bool requestPending);
79 
81  virtual DtReal pendingSetHeading() const;
83  virtual void setPendingSetHeading(DtReal heading);
85 
86 public:
87 
89  static DtVrfProcessStateRepository* creator (const DtString& rwName,
90  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
91 
92 protected:
93 
97 
101 
105 
109 
111 };
112 
class DtLocalEntitySetControllerPSR:
Definition: localEntitySetControllerPSR.h:23
DtRwVector myPendingSetLocation
When myPendingSetLocationRequest is set, the value from the message (in geocentric coordinates) is st...
Definition: localEntitySetControllerPSR.h:100
Definition: readerWriterRegistry.h:39
DtRwBoolean myPendingSetLocationRequest
Set by processSetLocation when terrain has not yet been paged in for the requested location...
Definition: localEntitySetControllerPSR.h:96
DtRwBoolean myPendingSetHeadingRequest
Set by processSetHeading when terrain has not yet been paged in for the requested heading...
Definition: localEntitySetControllerPSR.h:104
Definition: rwVector.h:23
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwBoolean myPendingKeepGroundClamped
Definition: localEntitySetControllerPSR.h:110
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
DtRwReal myPendingSetHeading
When myPendingSetHeadingRequest is set, the value from the message (in geocentric coordinates) is sto...
Definition: localEntitySetControllerPSR.h:108
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
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)