VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
activeSonarSensor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 
18 class DtSimMessage;
19 class DtVrfObjectMessage;
22 
24 
26 {
27 private:
30 
33  orig);
34 
36  const DtActiveSonarSensor & operator=(const
37  DtActiveSonarSensor & orig);
38 
39 public:
40 
43  DtActiveSonarSensor(const DtString& name,
44  DtVrfObject* owner,
45  DtSimManager* simManager,
46  DtComponentDescriptor* desc = 0,
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
50  virtual ~DtActiveSonarSensor();
51 
52  virtual bool init();
53 
56  virtual DtString type() const;
57 
59  virtual int sensorType() const;
60 
61  virtual void tick();
62 
66  static DtSimComponent * creator(const DtString& name,
67  DtVrfObject* owner,
68  DtSimManager* simManager,
69  DtComponentDescriptor* desc = 0,
70  DtReaderWriterRegistry* parentRegistry = 0);
71 
72 protected:
77  virtual bool detectObject(DtVrfObject* object, DtRwSensorContactInfo* contactInfo);
78 
83  virtual bool continueDetectingObject(DtVrfObject* object, DtRwSensorContactInfo* contactInfo,
84  bool& contactInfoModified);
85 
87  virtual const char* defaultPSRType() const;
88 
92  virtual void createAndInitActiveSonarSystem();
93 
95  virtual void destroyActiveSonarSystem();
96 
99  static void setActiveSonarModeCallback(DtSimMessage *msg, void * usrData);
100 
103  virtual void processSetActiveSonarMode(DtSimMessage *msg);
104 
105  static void requestActiveSonarModesCallback(const DtVrfObjectMessage* msg, void* usr);
106  virtual void processRequestActiveSonarModes(DtString receiver,
107  DtString sender,
108  bool isEchelonId,
109  const DtVrfObjectMessage* msg);
110 
119  virtual void updateActiveSonarMode(const DtString modeToUse = "");
120 
122  virtual void timedTick();
123 
124 protected:
125 
128 
132 
134 
136 
138 };

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)