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
vrfobjcore
laserDetectorIOPort.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: laserDetectorPort.h,v $ $Revision: 1.1 $ $State: Exp $
7
*******************************************************************************/
8
11
14
15
#ifndef DtLaserDetectorPort_H_
16
#define DtLaserDetectorPort_H_
17
18
#include "
vrfobjcore/singleConnectionInputPort.h
"
19
#include "
vrfobjcore/outputPort.h
"
20
#include "
vrfobjcore/portData.h
"
21
#include "
vrfutil/rwReal.h
"
22
23
#include "
vrfutil/rwTemplatedList.h
"
24
25
extern
const
char
*
DtLaserSpotPortDatatype
;
26
27
//each laser spot report has this information
28
//no virtual functions-do not derive from this class
29
30
#include "
vrfobjcore/vrfobjcoreDefines.h
"
31
class
DT_DLL_vrfobjcore
DtLaserSpotData
:
public
DtReaderWriter
32
{
33
public
:
34
//constructors
35
DtLaserSpotData
();
36
DtLaserSpotData
(
const
DtString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
37
DtLaserSpotData
(
const
DtSymbolString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
38
39
//copy and assignment
40
DtLaserSpotData
(
const
DtLaserSpotData
& target,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
41
DtLaserSpotData
&
operator=
(
const
DtLaserSpotData
& d);
42
43
~
DtLaserSpotData
();
44
45
//distance from the object being lased to the designator
46
void
setDistance(
double
d);
47
double
distance
()
const
;
48
49
//azimuth from the object being lased to the designator
50
void
setAzimuth(
double
a);
51
double
azimuth()
const
;
52
53
protected
:
54
DtRwReal
myDistance
;
55
DtRwReal
myAzimuth
;
56
57
public
:
58
};
59
60
typedef
DtRwTemplatedListPtr<DtLaserSpotData, true>
DtLaserSpotList
;
61
65
class
DT_DLL_vrfobjcore
DtLaserSpotListPortData
:
public
DtPortData
66
{
67
public
:
69
DtLaserSpotListPortData
();
71
virtual
~
DtLaserSpotListPortData
();
73
DtLaserSpotListPortData
(
const
DtLaserSpotListPortData
& orig);
75
DtLaserSpotListPortData
&
operator=
(
const
DtLaserSpotListPortData
& orig);
76
78
virtual
const
DtString
type
()
const
;
79
81
virtual
void
setValue(
DtLaserSpotList
* v);
82
84
virtual
DtLaserSpotList
* value()
const
;
85
87
virtual
DtPortData
*
clone
()
const
;
88
89
protected
:
90
DtLaserSpotList
*
myValue
;
91
};
92
96
class
DT_DLL_vrfobjcore
DtLaserDetectorInputPort
:
public
DtSingleConnectionInputPort
97
{
98
public
:
99
DtLaserDetectorInputPort
(
const
DtString
& portName);
100
virtual
~
DtLaserDetectorInputPort
();
101
103
virtual
bool
acceptType
(
const
DtString
& type)
const
;
104
106
virtual
const
DtLaserSpotList
* value()
const
;
107
};
108
112
class
DT_DLL_vrfobjcore
DtLaserDetectorOutputPort
:
public
DtOutputPort
113
{
114
public
:
115
DtLaserDetectorOutputPort
(
const
DtString
& portName);
116
virtual
~
DtLaserDetectorOutputPort
();
117
119
virtual
const
DtString
type
()
const
;
120
122
virtual
void
createPortData
();
123
126
virtual
void
emptyList();
127
129
virtual
void
addSpotReport(
const
DtLaserSpotData
& spot);
130
133
virtual
void
removeSpotReport(
const
DtLaserSpotData
& spot);
134
135
virtual
const
DtLaserSpotList
* value()
const
;
136
137
protected
:
138
DtLaserSpotList
mySpotReportList
;
139
};
140
141
142
#endif
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
)