VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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
class
DtUUID
;
23
24
#include "
vrfmodel/vrfmodelDefines.h
"
25
26
class
DT_DLL_vrfmodel
DtActiveSonarSensor
:
public
DtPassiveSonarSensor
27
{
28
private
:
30
DtActiveSonarSensor
();
31
33
DtActiveSonarSensor
(
const
DtActiveSonarSensor
&
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
127
DtVrfActiveSonarSystem
*
myActiveSonarSystem
;
128
131
DtActiveSonarSensorPSR
*
myActiveSonarSensorPSR
;
132
133
DtActiveSonarSensorDescriptor
*
myDescriptor
;
134
135
DtU8
myActiveSonarSystemId
;
136
137
bool
myInitializeSonar
;
138
};
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)