VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lookAtPointControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
15 #include <readerWriter/rwBoolean.h>
16 #include "readerWriter/rwVector.h"
17 #include <readerWriter/rwString.h>
18 #include "vrfobjcore/simObject.h"
19 
23 {
24 public:
27  const DtString& rwName = DtString::nullString(),
28  DtReaderWriterRegistry* parentRegistry = 0);
31  const DtString& rwName = DtString::nullString(),
32  DtReaderWriterRegistry* parentRegistry = 0);
35  const DtLookAtPointControllerPSR& orig);
37  virtual ~DtLookAtPointControllerPSR();
38 
41  const DtString& rwName = DtString::nullString(),
42  DtReaderWriterRegistry* parentRegistry = 0) const;
43 
45  virtual DtString type() const;
46 
48  static DtVrfProcessStateRepository* creator(const DtString& rwName,
49  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry = 0);
50 
53  virtual DtVector lookAtPoint() const;
54  virtual void setLookAtPoint(const DtVector& newValue);
56 
60  virtual DtSimObjectReference target() const;
61 
63  virtual void setTarget(const DtUUID& newValue);
65 
71  virtual double lookingAzimuth() const;
72  virtual void setLookingAzimuth(double az);
74 
80  virtual double lookingElevation() const;
81  virtual void setLookingElevation(double el);
83 
86  virtual DtSetLookAtPointRequest::LookAtType lookAtType() const;
87  virtual void setLookAtType(DtSetLookAtPointRequest::LookAtType stop);
89 
91  virtual void shakeHead(double minRange, double maxRange, double rate);
92 
94  virtual void nodHead(double minRange, double maxRange, double rate);
95 
97  virtual void setNodOrShakeEndTime(double);
98  virtual double nodOrShakeEndTime() const;
99 
101  virtual void getNodShakeData(int& nodOrShake, double& minRange, double& maxRange, double& rate);
102 
104  virtual void clearNodOrShakeData();
105 
106 protected:
115 };
116 
DtRwReal myLookingElevation
Definition: lookAtPointControllerPSR.h:110
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
DtRwReal myNodOrShakeEndTime
Definition: lookAtPointControllerPSR.h:114
DtRwSimObjectReference myTarget
Definition: lookAtPointControllerPSR.h:108
DtRwReal myLookingAzimuth
Definition: lookAtPointControllerPSR.h:109
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DtRwVector myNodShakeValues
Definition: lookAtPointControllerPSR.h:112
Definition: readerWriterRegistry.h:39
LookAtType
Definition: setLookAtPointRequest.h:35
DtRwInt myNodOrShake
Definition: lookAtPointControllerPSR.h:113
DtRwVector myLookAtPoint
Definition: lookAtPointControllerPSR.h:107
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
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
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
DtRwInt myLookAtType
Definition: lookAtPointControllerPSR.h:111
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtLookAtPointControllerPSR is a process state repository which holds state variables for the DtLookAt...
Definition: lookAtPointControllerPSR.h:22
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)