VR-Forces 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>
26 
32 
35 {
36 
37 protected:
40 
41 public:
42  //constructor
44  const DtString& rwName = DtString::nullString(),
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
47  //copy constructor
49  const DtString& rwName = DtString::nullString(),
50  DtReaderWriterRegistry* parentRegistry = 0);
51 
52  //assignment operator
54  const DtLaserDetectorPSR& orig);
55 
56  //destructor
57  virtual ~DtLaserDetectorPSR();
58 
59  //returns a copy of the PSR
61  const DtString& rwName = DtString::nullString(),
62  DtReaderWriterRegistry* parentRegistry = 0) const;
63 
65  virtual DtString type() const;
66 
69  virtual void setDesignatingEntity(const DtUUID&);
70 
72  virtual DtSimObjectReference designatingEntity() const;
73 
75  virtual void setLasedLastTick(DtBoolean val);
76  virtual DtBoolean lasedLastTick() const;
77 
79  virtual void setWavelength(const DtReal wave);
80  virtual const DtReal wavelength() const;
81 
83  virtual void setPower(const DtReal pow);
84  virtual const DtReal power() const;
85 
87  virtual void setDesignatorCode(const int code);
88  virtual const int designatorCode() const;
89 
91  static DtVrfProcessStateRepository* creator(const DtString& name,
92  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
93 
94 protected:
100 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwReal myWavelength
Definition: laserDetectorPSR.h:97
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:95
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: rwSimObjectReference.h:21
#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:96
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:34
DtRwReal myPower
Definition: laserDetectorPSR.h:98
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwInt myDesignatorCode
Definition: laserDetectorPSR.h:99
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)