![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2012 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 00008 00009 #pragma once 00010 00011 #include "vrfobjparam/compDesc.h" 00012 #include "vrfutil/rwReal.h" 00013 00014 //This is the string that is registered along with the creator function below. 00015 //It must match the component-descriptor-type string specified in the object 00016 //parameter database when using this descriptor to specify a 00017 //simple-radar-warning-receiver 00018 const char DtRadarWarningReceiverDescriptorType[] = "radar-warn-receiver-descriptor"; 00019 00020 class DtRadarWarningReceiverDescriptor : public DtComponentDescriptor 00021 { 00022 public: 00023 //real constructor 00024 DtRadarWarningReceiverDescriptor(const DtString& name, 00025 DtReaderWriterRegistry * parentRegistry = 0); 00026 00027 //All component descriptors must provide a valid copy constructor 00028 DtRadarWarningReceiverDescriptor(const DtRadarWarningReceiverDescriptor & orig, 00029 DtReaderWriterRegistry * parentRegistry = 0); 00030 00031 //All component descriptors must provide a valid assignment operator 00032 DtRadarWarningReceiverDescriptor & operator=(const 00033 DtRadarWarningReceiverDescriptor & orig); 00034 00035 //All component descriptors must provide a valid clone function 00036 virtual DtComponentDescriptor * clone(DtReaderWriterRegistry * 00037 parentRegistry = 0) const; 00038 00039 virtual ~DtRadarWarningReceiverDescriptor(); 00040 00041 //returns the type of descriptor. This will be used 00042 //to create the descriptor on read from an mtl file 00043 virtual DtString type() const; 00044 00045 //Provide an accessor and mutator for the parameter value 00046 virtual void setEmitterDetectionRange(double range); 00047 virtual double emitterDetectionRange() const; 00048 00049 //Creator function to be registered with DtSimComponentDescriptorFactory 00050 static DtComponentDescriptor * creator(); 00051 00052 protected: 00053 00054 DtRwReal myEmitterDetectionRange; 00055 };