VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lasingPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include "vrfobjcore/simObject.h"
15 #include <readerWriter/rwString.h>
16 #include <readerWriter/rwBoolean.h>
17 #include <readerWriter/rwReal.h>
18 #include <readerWriter/rwInt.h>
19 #include "readerWriter/rwVector.h"
21 #include <vrfutil/rwUUID.h>
23 
26 {
27 
28 protected:
30  DtLasingPSR();
31 
32 public:
33  //constructor
34  DtLasingPSR(DtLocalObject* vrfObject,
35  const DtString& rwName = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
38  //copy constructor
39  DtLasingPSR(const DtLasingPSR& orig,
40  const DtString& rwName = DtString::nullString(),
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
43  //assignment operator
44  const DtLasingPSR& operator=(
45  const DtLasingPSR& orig);
46 
47  //Destructor
48  virtual ~DtLasingPSR();
49 
52  const DtString& rwName = DtString::nullString(),
53  DtReaderWriterRegistry* parentRegistry = 0) const;
54 
56  virtual DtString type() const;
57 
60  virtual void setCurrentLasedTarget(const DtUUID&);
61 
63  virtual DtSimObjectReference currentLasedTarget() const;
64 
66  virtual void setSpotLocation(const DtVector & spotLocal);
67  virtual const DtVector & spotLocation() const;
68 
70  virtual void setAmLasing(DtBoolean lasing);
71  virtual DtBoolean amLasing() const;
72 
74  virtual void setAmLasingTarget(DtBoolean lasingTarget);
75  virtual DtBoolean amLasingTarget() const;
76 
78  virtual void setDesignatorCode(const int code);
79  virtual const int designatorCode() const;
80 
82  virtual void setAutonomous(const bool);
83  virtual const bool autonomous() const;
84 
86  virtual void setPower(double);
87  virtual double power() const;
88 
90  virtual void setWavelength(double);
91  virtual double wavelength() const;
92 
94  static DtVrfProcessStateRepository* creator(const DtString& name,
95  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
96 
97 protected:
98 
107 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwSimObjectReference myCurrentLasedTarget
Definition: lasingPSR.h:99
DtRwVector mySpotLocation
Definition: lasingPSR.h:102
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
Contains the DtUUID class declaration.
DtRwBoolean myAmLasing
Definition: lasingPSR.h:100
DtRwBoolean myAmLasingTarget
Definition: lasingPSR.h:101
DtRwBoolean myIsAutonomous
Definition: lasingPSR.h:104
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
DtRwReal myPower
Definition: lasingPSR.h:105
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwInt myDesignatorCode
Definition: lasingPSR.h:103
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myWavelength
Definition: lasingPSR.h:106
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
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtLasingPSR.
Definition: lasingPSR.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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)