VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfmodel
nbcSensor.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
10
11
#pragma once
12
13
#include "
vrfmodel/objectSensor.h
"
14
#include "
vrfmodel/vrfmodelDefines.h
"
15
16
#include "boost/optional.hpp"
17
20
21
class
DtNbcSensorDescriptor
;
22
23
class
DT_DLL_vrfmodel
DtNbcSensor
:
public
DtObjectSensor
24
{
25
private
:
27
DtNbcSensor
();
28
30
DtNbcSensor
(
const
DtNbcSensor
& orig);
31
33
const
DtNbcSensor
&
operator=
(
const
DtNbcSensor
& orig);
34
35
public
:
36
39
DtNbcSensor
(
const
DtString
& name,
40
DtVrfObject
* owner,
41
DtSimManager
* simManager,
42
DtComponentDescriptor
* desc = 0,
43
DtReaderWriterRegistry
* parentRegistry = 0);
44
46
virtual
~
DtNbcSensor
();
47
48
virtual
bool
init
();
49
52
virtual
const
char
*
type
()
const
;
53
55
virtual
int
sensorType
()
const
;
56
58
virtual
void
tick
();
59
63
static
DtSimComponent
*
creator
(
const
DtString
& name,
64
DtVrfObject
* owner,
65
DtSimManager
* simManager,
66
DtComponentDescriptor
* desc = 0,
67
DtReaderWriterRegistry
* parentRegistry = 0);
68
69
protected
:
70
73
virtual
bool
detectObject
(
DtVrfObject
*
object
,
DtRwSensorContactInfo
* contactInfo);
74
77
virtual
ContinueDetectingResult
continueDetectingObject
(
DtVrfObject
*
object
,
78
DtRwSensorContactInfo
* contactInfo,
79
bool
& contactInfoModified);
80
82
virtual
int
detectionLevel(
const
DtVrfObject
*
object
);
83
85
virtual
void
updateSensorContactInfo(
DtVrfObject
*
object
,
86
DtRwSensorContactInfo
* contactInfo,
int
level
);
87
88
protected
:
89
90
DtNbcSensorDescriptor
*
myDescriptor
;
91
94
boost::optional<double>
myFootprintProp
;
95
};
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
)