VR-Forces 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>
19 
22 {
27 };
28 
35 {
36 public:
38  DtBombPSR(DtLocalObject* vrfObject,
39  const DtString& rwName = DtString::nullString(),
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  DtBombPSR(const DtBombPSR& orig,
44  const DtString& rwName = DtString::nullString(),
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
48  virtual ~DtBombPSR();
49 
51  DtBombPSR& operator=(const DtBombPSR& orig);
52 
55  const DtString& rwName = DtString::nullString(),
56  DtReaderWriterRegistry* parentRegistry = 0) const;
57 
60  virtual DtString type() const;
61 
64  virtual void setTargetLocation(const DtVector& targetLocation);
65  virtual const DtVector& targetLocation() const;
67 
71  virtual void setTarget(const DtUUID& arget);
72 
74  virtual DtSimObjectReference target() const;
76 
79  virtual void setLaserCode(int code);
80  virtual int laserCode() const;
82 
85  virtual void setTrackingMode(DtTargetTrackingMode mode);
86  virtual DtTargetTrackingMode trackingMode() const;
88 
92  virtual void setTargetCircleCenter(const DtVector& center);
93  virtual const DtVector& targetCircleCenter() const;
95 
99  virtual void setTargetCircleRadius(const DtReal& radius);
100  virtual DtReal targetCircleRadius() const;
102 
104  static DtVrfProcessStateRepository* creator (const DtString& rwName,
105  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
106 
107 protected:
111 
115 
118 
121 
130 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwVector myTargetLocation
Target point (meters, database coordinates), only used when in DtTrackLocation mode.
Definition: bombPSR.h:110
DtRwInt myLaserCode
Code of laser being tracked, only used when in DtTrackLaserSpot mode.
Definition: bombPSR.h:117
class DtBombPSR:
Definition: bombPSR.h:34
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:25
Definition: readerWriterRegistry.h:39
Definition: bombPSR.h:23
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: rwSimObjectReference.h:21
#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:21
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:114
DtRwReal myTargetCircleRadius
The circle which encompasses the possible landing area based on the launch position &amp; altitude...
Definition: bombPSR.h:128
DtRwInt myTrackingMode
Current tracking mode (based on #DtBombTrackingMode)
Definition: bombPSR.h:120
Definition: bombPSR.h:24
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:127
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:26
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)