VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
Simple Radar Warning Descriptor
DtRadarWarningReceiverDescriptor
Header file:
/*******************************************************************************
** Copyright (c) 2012 MAK Technologies, Inc.
** All rights reserved.
*******************************************************************************/
#pragma once
#include "
vrfobjparam/compDesc.h
"
#include "
vrfutil/rwReal.h
"
//This is the string that is registered along with the creator function below.
//It must match the component-descriptor-type string specified in the object
//parameter database when using this descriptor to specify a
//simple-radar-warning-receiver
const
char
DtRadarWarningReceiverDescriptorType
[] =
"radar-warn-receiver-descriptor"
;
class
DtRadarWarningReceiverDescriptor
:
public
DtComponentDescriptor
{
public
:
//real constructor
DtRadarWarningReceiverDescriptor
(
const
DtString
& name,
DtReaderWriterRegistry
* parentRegistry = 0);
//All component descriptors must provide a valid copy constructor
DtRadarWarningReceiverDescriptor
(
const
DtRadarWarningReceiverDescriptor
& orig,
DtReaderWriterRegistry
* parentRegistry = 0);
//All component descriptors must provide a valid assignment operator
DtRadarWarningReceiverDescriptor
&
operator=
(
const
DtRadarWarningReceiverDescriptor
& orig);
//All component descriptors must provide a valid clone function
virtual
DtComponentDescriptor
*
clone
(
DtReaderWriterRegistry
*
parentRegistry = 0)
const
;
virtual
~DtRadarWarningReceiverDescriptor
();
//returns the type of descriptor. This will be used
//to create the descriptor on read from an mtl file
virtual
DtString
type
()
const
;
//Provide an accessor and mutator for the parameter value
virtual
void
setEmitterDetectionRange
(
double
range);
virtual
double
emitterDetectionRange
()
const
;
//Creator function to be registered with DtSimComponentDescriptorFactory
static
DtComponentDescriptor
*
creator
();
protected
:
DtRwReal
myEmitterDetectionRange
;
};
Implementation:
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
)