VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setScanSectorRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
16 
18 #include <readerWriter/rwReal.h>
19 #include <vlpi/netStructs.h>
20 
21 
22 
26 {
27  DtNetFloat64 myScanCenter;
28  DtNetFloat64 myScanAmount;
29 };
30 
53 
56 {
57 
58 public:
59 
62 
65  DtSetScanSectorRequest(const DtString & writeName,
66  DtReaderWriterRegistry * parentRegistry = 0);
67 
69  DtSetScanSectorRequest(const DtString & writeName, const
71  parentRegistry = 0);
72 
75  orig);
76 
77  virtual ~DtSetScanSectorRequest();
78 
80  virtual const DtSetMessageType& type() const;
81 
83  virtual DtSetDataRequest * clone(const DtString & name,
84  DtReaderWriterRegistry * parentRegistry = 0) const;
85 
87  virtual DtString stringRep() const;
88 
93  virtual DtReal scanCenter() const;
94  virtual void setScanCenter(DtReal scanCenter);
95 
98  virtual DtReal scanAmount() const;
99  virtual void setScanAmount(DtReal scanAmount);
100 
103  virtual int netRepSize() const;
104 
106  virtual bool setFromNet(const char* contentBuffer,
107  unsigned contentSize);
108 
111  virtual bool setToNet();
112 
113  static DtSetDataRequest * creator();
114 
115 protected:
116 
119 
120 };
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
DtRwReal myScanCenter
Definition: setScanSectorRequest.h:117
DtRwReal myScanAmount
Definition: setScanSectorRequest.h:118
Definition: readerWriterRegistry.h:39
DtNetFloat64 myScanAmount
Definition: setScanSectorRequest.h:28
virtual int netRepSize() const
DtSetScanSectorRequest is used to specify a scan sector for a (usually turreted) entity. The sector of responsibility is used by individual entities when they compute the probability of detection of hostile entities. One detection table is used for detection in-sector, while another is used for out-of-sector detection. Normally, the probability of detection outside an entity’s sector of responsibility is lower. The DtTurretScanController slews the turret within this sector. It inherits read/writableness from DtSetDataRequest, and includes the center of the scan sector (in radians, 0. out the vehicle front, clockwise) and the size of the sector (scan amount, radians).
Definition: setScanSectorRequest.h:55
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
File: setScan.h.
Definition: setScanSectorRequest.h:25
virtual const DtSetMessageType & type() const =0
What kind of setDataRequest am I? (from radioMsgTypes.h). Returns a string representing the kind of d...
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this request. Returns a pointer to a newly created copy of this data request...
const DtSetDataRequest & operator=(const DtSetDataRequest &orig)
assignment operator; same as copy costructor.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer. Base class does nothing and return...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...
DtNetFloat64 myScanCenter
Definition: setScanSectorRequest.h:27

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)