VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Simple Radar Warning Descriptor
DtRadarWarningReceiverDescriptor
Header file:
/*******************************************************************************
** Copyright (c) 2012 MAK Technologies, Inc.
** All rights reserved.
*******************************************************************************/
#pragma once
#include "
vrfobjparam/componentDescriptor.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 Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)