VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
laserDetectorPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
17 #include "vrfobjcore/simObject.h"
18 
19 #include <readerWriter/rwString.h>
20 #include <readerWriter/rwBoolean.h>
21 #include <readerWriter/rwReal.h>
22 #include <readerWriter/rwInt.h>
23 #include "readerWriter/rwVector.h"
24 #include <vrfutil/rwUUID.h>
25 
31 
34 {
35 
36 protected:
39 
40 public:
41  //constructor
43  const DtString& rwName = DtString::nullString(),
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
46  //copy constructor
48  const DtString& rwName = DtString::nullString(),
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
51  //assignment operator
53  const DtLaserDetectorPSR& orig);
54 
55  //destructor
56  virtual ~DtLaserDetectorPSR();
57 
58  //returns a copy of the PSR
60  const DtString& rwName = DtString::nullString(),
61  DtReaderWriterRegistry* parentRegistry = 0) const;
62 
64  virtual DtString type() const;
65 
68  virtual void setDesignatingEntity(const DtUUID&);
69 
71  virtual DtSimObjectReference designatingEntity() const;
72 
74  virtual void setLasedLastTick(DtBoolean val);
75  virtual DtBoolean lasedLastTick() const;
76 
78  virtual void setWavelength(const DtReal wave);
79  virtual const DtReal wavelength() const;
80 
82  virtual void setPower(const DtReal pow);
83  virtual const DtReal power() const;
84 
86  virtual void setDesignatorCode(const int code);
87  virtual const int designatorCode() const;
88 
90  static DtVrfProcessStateRepository* creator(const DtString& name,
91  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
92 
93 protected:
99 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
DtRwReal myWavelength
Definition: laserDetectorPSR.h:96
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DtRwSimObjectReference myDesignatingEntity
Definition: laserDetectorPSR.h:94
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
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
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
DtRwBoolean myLasedLastTick
Definition: laserDetectorPSR.h:95
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
File: laserDetectorPSR.h.
Definition: laserDetectorPSR.h:33
DtRwReal myPower
Definition: laserDetectorPSR.h:97
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwInt myDesignatorCode
Definition: laserDetectorPSR.h:98
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)