VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bombPSR.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/rwReal.h>
14 #include "readerWriter/rwVector.h"
15 #include <readerWriter/rwString.h>
16 #include <readerWriter/rwInt.h>
17 #include <vrfutil/rwUUID.h>
18 
21 {
26 };
27 
34 {
35 public:
37  DtBombPSR(DtLocalObject* vrfObject,
38  const DtString& rwName = DtString::nullString(),
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
42  DtBombPSR(const DtBombPSR& orig,
43  const DtString& rwName = DtString::nullString(),
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
47  virtual ~DtBombPSR();
48 
50  DtBombPSR& operator=(const DtBombPSR& orig);
51 
54  const DtString& rwName = DtString::nullString(),
55  DtReaderWriterRegistry* parentRegistry = 0) const;
56 
59  virtual DtString type() const;
60 
63  virtual void setTargetLocation(const DtVector& targetLocation);
64  virtual const DtVector& targetLocation() const;
66 
70  virtual void setTarget(const DtUUID& arget);
71 
73  virtual DtSimObjectReference target() const;
75 
78  virtual void setLaserCode(int code);
79  virtual int laserCode() const;
81 
84  virtual void setTrackingMode(DtTargetTrackingMode mode);
85  virtual DtTargetTrackingMode trackingMode() const;
87 
91  virtual void setTargetCircleCenter(const DtVector& center);
92  virtual const DtVector& targetCircleCenter() const;
94 
98  virtual void setTargetCircleRadius(const DtReal& radius);
99  virtual DtReal targetCircleRadius() const;
101 
103  static DtVrfProcessStateRepository* creator (const DtString& rwName,
104  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
105 
106 protected:
110 
114 
117 
120 
129 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
DtRwVector myTargetLocation
Target point (meters, database coordinates), only used when in DtTrackLocation mode.
Definition: bombPSR.h:109
DtRwInt myLaserCode
Code of laser being tracked, only used when in DtTrackLaserSpot mode.
Definition: bombPSR.h:116
class DtBombPSR:
Definition: bombPSR.h:33
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Definition: bombPSR.h:24
Definition: readerWriterRegistry.h:39
Definition: bombPSR.h:22
Contains the DtUUID class declaration.
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
DtTargetTrackingMode
Enumerations of the different tracking modes for the DtBombController.
Definition: bombPSR.h:20
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwSimObjectReference myTarget
The object name of the target being tracked, only used when in DtTrackTarget mode.
Definition: bombPSR.h:113
DtRwReal myTargetCircleRadius
The circle which encompasses the possible landing area based on the launch position &amp; altitude...
Definition: bombPSR.h:127
DtRwInt myTrackingMode
Current tracking mode (based on #DtBombTrackingMode)
Definition: bombPSR.h:119
Definition: bombPSR.h:23
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
DtRwVector myTargetCircleCenter
The circle which encompasses the possible landing area based on the launch position &amp; altitude...
Definition: bombPSR.h:126
const char int mode
Definition: ioapi.h:38
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
Definition: bombPSR.h:25
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)