VR-Forces 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() override;
78 
80  virtual const DtSetMessageType& type() const override;
81 
83  virtual DtSetDataRequest * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
84 
86  virtual DtString stringRep() const override;
87 
92  virtual DtReal scanCenter() const;
93  virtual void setScanCenter(DtReal scanCenter);
94 
97  virtual DtReal scanAmount() const;
98  virtual void setScanAmount(DtReal scanAmount);
99 
102  virtual int netRepSize() const override;
103 
105  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
106 
109  virtual bool setToNet() override;
110 
111  static DtSetDataRequest * creator();
112 
113 protected:
114 
117 
118 };
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:115
DtRwReal myScanAmount
Definition: setScanSectorRequest.h:116
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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)