VR-Forces Development_Version 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 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 
73 protected:
78  virtual bool detectObject(DtVrfObject* object, DtRwSensorContactInfo* contactInfo);
79 
84  virtual bool continueDetectingObject(DtVrfObject* object, DtRwSensorContactInfo* contactInfo,
85  bool& contactInfoModified);
86 
88  virtual const char* defaultPSRType() const;
89 
93  virtual void createAndInitActiveSonarSystem();
94 
96  virtual void destroyActiveSonarSystem();
97 
100  static void setActiveSonarModeCallback(DtSimMessage *msg, void * usrData);
101 
104  virtual void processSetActiveSonarMode(DtSimMessage *msg);
105 
106  static void requestActiveSonarModesCallback(const DtVrfObjectMessage* msg, void* usr);
107  virtual void processRequestActiveSonarModes(const DtUUID& receiver,
108  const DtUUID& sender,
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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)