VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
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
14
#include "
vrfmodel/passiveSonarSensor.h
"
15
16
class
DtVrfActiveSonarSystem
;
17
class
DtActiveSonarSensorPSR
;
18
class
DtSimMessage
;
19
class
DtVrfObjectMessage
;
20
class
DtVrfObjectCommunicationInterface
;
21
class
DtActiveSonarSensorDescriptor
;
22
23
#include "
vrfmodel/vrfmodelDefines.h
"
24
25
class
DT_DLL_vrfmodel
DtActiveSonarSensor
:
public
DtPassiveSonarSensor
26
{
27
private
:
29
DtActiveSonarSensor
();
30
32
DtActiveSonarSensor
(
const
DtActiveSonarSensor
&
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
127
DtVrfActiveSonarSystem
*
myActiveSonarSystem
;
128
131
DtActiveSonarSensorPSR
*
myActiveSonarSensorPSR
;
132
133
DtActiveSonarSensorDescriptor
*
myDescriptor
;
134
135
DtU8
myActiveSonarSystemId
;
136
137
bool
myInitializeSonar
;
138
};
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)