VR-Forces 4.6.1 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(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(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 };

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)