VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
radarWarnRx
radarWarningReceiverDesc.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include "
vrfobjparam/compDesc.h
"
12
#include "
vrfutil/rwReal.h
"
13
14
//This is the string that is registered along with the creator function below.
15
//It must match the component-descriptor-type string specified in the object
16
//parameter database when using this descriptor to specify a
17
//simple-radar-warning-receiver
18
const
char
DtRadarWarningReceiverDescriptorType
[] =
"radar-warn-receiver-descriptor"
;
19
20
class
DtRadarWarningReceiverDescriptor
:
public
DtComponentDescriptor
21
{
22
public
:
23
//real constructor
24
DtRadarWarningReceiverDescriptor
(
const
DtString
&
name
,
25
DtReaderWriterRegistry
* parentRegistry = 0);
26
27
//All component descriptors must provide a valid copy constructor
28
DtRadarWarningReceiverDescriptor
(
const
DtRadarWarningReceiverDescriptor
& orig,
29
DtReaderWriterRegistry
* parentRegistry = 0);
30
31
//All component descriptors must provide a valid assignment operator
32
DtRadarWarningReceiverDescriptor
&
operator=
(
const
33
DtRadarWarningReceiverDescriptor
& orig);
34
35
//All component descriptors must provide a valid clone function
36
virtual
DtComponentDescriptor
*
clone
(
DtReaderWriterRegistry
*
37
parentRegistry = 0)
const
;
38
39
virtual
~DtRadarWarningReceiverDescriptor
();
40
41
//returns the type of descriptor. This will be used
42
//to create the descriptor on read from an mtl file
43
virtual
DtString
type
()
const
;
44
45
//Provide an accessor and mutator for the parameter value
46
virtual
void
setEmitterDetectionRange
(
double
range);
47
virtual
double
emitterDetectionRange
()
const
;
48
49
//Creator function to be registered with DtSimComponentDescriptorFactory
50
static
DtComponentDescriptor
*
creator
();
51
52
protected
:
53
54
DtRwReal
myEmitterDetectionRange
;
55
};
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)