VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 class DtUUID;
23 
25 
27 {
28 private:
31 
34  orig);
35 
37  const DtActiveSonarSensor & operator=(const
38  DtActiveSonarSensor & orig);
39 
40 public:
41 
44  DtActiveSonarSensor(const DtString& name,
45  DtVrfObject* owner,
46  DtSimManager* simManager,
47  DtComponentDescriptor* desc = 0,
48  DtReaderWriterRegistry* parentRegistry = 0);
49 
51  virtual ~DtActiveSonarSensor();
52 
53  virtual bool init();
54 
57  virtual const char* type() const;
58 
60  virtual int sensorType() const;
61 
62  virtual void tick();
63 
67  static DtSimComponent * creator(const DtString& name,
68  DtVrfObject* owner,
69  DtSimManager* simManager,
70  DtComponentDescriptor* desc = 0,
71  DtReaderWriterRegistry* parentRegistry = 0);
72 
74  virtual void setSensorEnabled(bool);
75 
76 protected:
81  virtual bool detectObject(DtVrfObject* object, DtRwSensorContactInfo* contactInfo);
82 
88  DtRwSensorContactInfo* contactInfo,
89  bool& contactInfoModified);
90 
92  virtual const char* defaultPSRType() const;
93 
97  virtual void createAndInitActiveSonarSystem();
98 
100  virtual void destroyActiveSonarSystem();
101 
104  static void setActiveSonarModeCallback(DtSimMessage *msg, void * usrData);
105 
108  virtual void processSetActiveSonarMode(DtSimMessage *msg);
109 
110  static void requestActiveSonarModesCallback(const DtVrfObjectMessage* msg, void* usr);
111  virtual void processRequestActiveSonarModes(const DtUUID& receiver,
112  const DtUUID& sender,
113  const DtVrfObjectMessage* msg);
114 
123  virtual void updateActiveSonarMode(const DtString modeToUse = "");
124 
126  virtual void timedTick();
127 
128 protected:
129 
132 
136 
138 
140 
142 };

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)