VR-Forces 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"
20 
24 {
25 public:
28  const DtString& rwName = DtString::nullString(),
29  DtReaderWriterRegistry* parentRegistry = 0);
32  const DtString& rwName = DtString::nullString(),
33  DtReaderWriterRegistry* parentRegistry = 0);
36  const DtLookAtPointControllerPSR& orig);
38  virtual ~DtLookAtPointControllerPSR();
39 
42  const DtString& rwName = DtString::nullString(),
43  DtReaderWriterRegistry* parentRegistry = 0) const;
44 
46  virtual DtString type() const;
47 
49  static DtVrfProcessStateRepository* creator(const DtString& rwName,
50  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry = 0);
51 
54  virtual DtVector lookAtPoint() const;
55  virtual void setLookAtPoint(const DtVector& newValue);
57 
61  virtual DtSimObjectReference target() const;
62 
64  virtual void setTarget(const DtUUID& newValue);
66 
72  virtual double lookingAzimuth() const;
73  virtual void setLookingAzimuth(double az);
75 
81  virtual double lookingElevation() const;
82  virtual void setLookingElevation(double el);
84 
87  virtual DtSetLookAtPointRequest::LookAtType lookAtType() const;
88  virtual void setLookAtType(DtSetLookAtPointRequest::LookAtType stop);
90 
92  virtual void shakeHead(double minRange, double maxRange, double rate);
93 
95  virtual void nodHead(double minRange, double maxRange, double rate);
96 
98  virtual void setNodOrShakeEndTime(double);
99  virtual double nodOrShakeEndTime() const;
100 
102  virtual void getNodShakeData(int& nodOrShake, double& minRange, double& maxRange, double& rate);
103 
105  virtual void clearNodOrShakeData();
106 
107 protected:
116 };
117 
DtRwReal myLookingElevation
Definition: lookAtPointControllerPSR.h:111
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwReal myNodOrShakeEndTime
Definition: lookAtPointControllerPSR.h:115
DtRwSimObjectReference myTarget
Definition: lookAtPointControllerPSR.h:109
DtRwReal myLookingAzimuth
Definition: lookAtPointControllerPSR.h:110
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:113
Definition: readerWriterRegistry.h:39
LookAtType
Definition: setLookAtPointRequest.h:35
DtRwInt myNodOrShake
Definition: lookAtPointControllerPSR.h:114
DtRwVector myLookAtPoint
Definition: lookAtPointControllerPSR.h:108
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
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:112
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:23
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)