VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
98  virtual bool continueDetectingObject(DtVrfObject* object, DtRwSensorContactInfo* contactInfo,
99  bool& contactInfoModified);
100 
102  virtual const char* defaultPSRType() const;
103 
104 protected:
105 
110  virtual bool sonarCanDetectObjects() const;
111 
116 };

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)