VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
passiveSonarSensor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 
14 class DtVrfEmitterSystem;
17 class DtSimMessage;
18 class DtVrfObjectMessage;
20 
32 {
33 private:
36 
39  orig);
40 
42  const DtPassiveSonarSensor & operator=(const
43  DtPassiveSonarSensor & orig);
44 
45 public:
46 
49  DtPassiveSonarSensor(const DtString& name,
50  DtVrfObject* owner,
51  DtSimManager* simManager,
52  DtComponentDescriptor* desc = 0,
53  DtReaderWriterRegistry* parentRegistry = 0);
54 
56  virtual ~DtPassiveSonarSensor();
57 
58  virtual bool init();
59 
62  virtual const char* type() const;
63 
65  virtual int sensorType() const;
66 
67  static void setSonarDepthCallback(DtSimMessage * msg, void * usrData);
68  virtual void processSetSonarDepth(DtSimMessage * msg);
69 
70  virtual double sonarDepth() const;
71  virtual void setSonarDepth(double depth);
72  virtual void setSonarToEntityDepth();
73 
74  virtual DtVector localSonarLocation() const;
75 
76  virtual bool sonarInWater() const;
77 
79  double apparentSignature(const DtVrfObject* object,
80  bool losValueIfTerrainUnavailable, double sensorSensitivity) const;
81 
85  static DtSimComponent * creator(const DtString& name,
86  DtVrfObject* owner,
87  DtSimManager* simManager,
88  DtComponentDescriptor* desc = 0,
89  DtReaderWriterRegistry* parentRegistry = 0);
90 
91 protected:
94  virtual bool detectObject(const DtVrfObject* object, DtRwSensorContactInfo* contactInfo);
95 
99  DtRwSensorContactInfo* contactInfo,
100  bool& contactInfoModified);
101 
103  virtual const char* defaultPSRType() const;
104 
105 protected:
106 
111  virtual bool sonarCanDetectObjects() const;
112 
113 protected:
118 };
virtual int sensorType() const
Returns the enumerated type of this sensor.
const DtSignatureObjectSensor & operator=(const DtSignatureObjectSensor &orig)
assignment operator; not implemented
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual bool init()
Calls createPSR(), createDetectableObjectList(), createAndInitSensorMonitor() and initSensorGeometry(...
DtPassiveSonarSensorPSR * myPassiveSonarPSR
DtObjectSensor's myProcessState cast to our PSR type.
Definition: passiveSonarSensor.h:117
virtual double apparentSignature(const DtVrfObject *object, bool losValueIfTerrainUnavailable, double sensorSensitivity) const
Returns the apparent signature of the specified object using sensorSignatureManager::apparentObjectSi...
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual const char * type() const
Returns a string identifies the class type of component.
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:67
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Process State Repository for the DtPassiveRadarSensor component.
Definition: passiveSonarSensorPSR.h:16
DtVrfEmitterSystem manages a VR-Link emitter system publisher, and sets all the values associated wit...
Definition: vrfEmitterSystem.h:37
virtual ContinueDetectingResult continueDetectingObject(const DtVrfObject *object, DtRwSensorContactInfo *contactInfo, bool &contactInfoModified)
Same as detectObject except it is checking for objects we had previously detected.
DtPassiveSonarSensorDescriptor; descriptor for the DtPassiveSonarSensor component.
Definition: passiveSonarSensorDescriptor.h:19
A sensor component which uses the VR-Forces Sensor Signature model for detecting object.
Definition: signatureObjectSensor.h:41
File: simMsg.h.
Definition: simMessage.h:35
The base class for all messages to/from a specific DtVrfObject.
Definition: vrfObjectMessage.h:30
virtual bool detectObject(const DtVrfObject *object, DtRwSensorContactInfo *contactInfo)
Returns true if object is detected.
ContinueDetectingResult
Definition: objectSensor.h:66
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The central class of a DtVrfObject for all communications to and from the object. ...
Definition: vrfObjectCommunicationInterface.h:45
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
const DtPassiveSonarSensorDescriptor * myPassiveSonarSensorDescriptor
Definition: passiveSonarSensor.h:114
DtPassiveSonarSensor.
Definition: passiveSonarSensor.h:31
virtual const char * defaultPSRType() const

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)