![]() |
VR-Forces 4.0.4 Class Documentation
|
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; };