VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sensorGimbalControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
13 #include <readerWriter/rwBoolean.h>
14 #include "readerWriter/rwVector.h"
15 #include <readerWriter/rwString.h>
16 #include "vrfutil/rwColor.h"
17 #include "readerWriter/rwReal.h"
18 #include "vrfobjcore/simObject.h"
21 
26 {
27 public:
30  const DtString& rwName = DtString::nullString(),
31  DtReaderWriterRegistry* parentRegistry = 0);
34  const DtString& rwName = DtString::nullString(),
35  DtReaderWriterRegistry* parentRegistry = 0);
38  const DtSensorGimbalControllerPSR& orig);
40  virtual ~DtSensorGimbalControllerPSR();
41 
44  const DtString& rwName = DtString::nullString(),
45  DtReaderWriterRegistry* parentRegistry = 0) const;
46 
48  virtual DtString type() const;
49 
51  static DtVrfProcessStateRepository* creator(const DtString& rwName,
52  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry = 0);
53 
55 
56  virtual DtVector aimingPoint() const;
57  virtual void setAimingPoint(const DtVector& newValue);
59 
61 
62  virtual DtSimObjectReference objectToTrack() const;
63  virtual void setObjectToTrack(const DtUUID& newValue);
65 
68 
69  virtual double aimingAzimuth() const;
70  virtual void setAimingAzimuth(double az);
72 
75 
76  virtual double aimingElevation() const;
77  virtual void setAimingElevation(double el);
79 
81  virtual bool isScanningLeft() const;
82  virtual void setIsScanningLeft(bool scanLeft);
84 
86 
87  virtual DtSensorTrackingMode aimingMode() const;
88  virtual void setAimingMode(DtSensorTrackingMode stop);
90 
93 
94  virtual double lastKnownAzimuth() const;
95  virtual void setLastKnownAzimuth(double az);
97 
100 
101  virtual double lastKnownElevation() const;
102  virtual void setLastKnownElevation(double az);
104 
107 
108  virtual DtVector lastKnownPositionOffset() const;
109  virtual void setLastKnownPositionOffset(const DtVector& offset);
111 
113 
114  virtual DtSensorManualControlDirection panDirection() const;
115  virtual void setPanDirection(DtSensorManualControlDirection panDir);
117 
119 
120  virtual unsigned rotationRatePercentage() const;
121  virtual void setRotationRatePercentage(unsigned val);
123 
125 
126  virtual double zoomLevel() const;
127  virtual void setZoomLevel(double zoom);
129 
131 
132  virtual double zoomSpeed() const;
133  virtual void setZoomSpeed(double speed);
135 
137 
138  virtual bool manualControl() const;
139  virtual void setManualControl(bool val);
141 
143 
144  virtual const DtRwColor& fieldOfViewColor() const;
145  virtual void setFieldOfViewColor(const DtRwColor& color);
147 
149 
150  virtual bool lasingOn() const;
151  virtual void setLasingOn(bool val);
153 
154 protected:
155 
172 };
173 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwReal myZoomSpeed
Definition: sensorGimbalControllerPSR.h:168
DtRwBoolean myLasingOn
Definition: sensorGimbalControllerPSR.h:171
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Definition: readerWriterRegistry.h:39
DtSensorManualControlDirection
Definition: sensorFieldOfViewEnums.h:18
DtRwVector myAimingPoint
Definition: sensorGimbalControllerPSR.h:156
DtRwReal myAimingElevation
Definition: sensorGimbalControllerPSR.h:159
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
Reader-Writer color specified by red, green, blue components.
Definition: rwColor.h:19
DtRwReal myAimingAzimuth
Definition: sensorGimbalControllerPSR.h:158
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwInt myAimingMode
Definition: sensorGimbalControllerPSR.h:161
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtSensorTrackingMode
Definition: sensorFieldOfViewEnums.h:9
DtRwBoolean myIsScanningLeft
Definition: sensorGimbalControllerPSR.h:160
DtRwVector myLastKnownPositionOffset
Definition: sensorGimbalControllerPSR.h:164
DtRwColor myFieldOfViewColor
Definition: sensorGimbalControllerPSR.h:170
DtRwSimObjectReference myObjectToTrack
Definition: sensorGimbalControllerPSR.h:157
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwInt myPanDirection
Definition: sensorGimbalControllerPSR.h:165
DtRwBoolean myManualControl
Definition: sensorGimbalControllerPSR.h:169
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 myLastKnownElevation
Definition: sensorGimbalControllerPSR.h:163
DtRwInt myRotationRatePercentage
Definition: sensorGimbalControllerPSR.h:166
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
voidpf uLong offset
Definition: ioapi.h:42
DtSensorGimbalControllerPSR is a process state repository which holds state variables for the DtSenso...
Definition: sensorGimbalControllerPSR.h:25
DtRwReal myLastKnownAzimuth
Definition: sensorGimbalControllerPSR.h:162
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
DtRwReal myZoomLevel
Definition: sensorGimbalControllerPSR.h:167

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)