VR-Link API Documentation for DIS
dEmittrSysEnc.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 
00010 
00011 #ifndef DtEmitterSystemStateEncoder_H_
00012 #define DtEmitterSystemStateEncoder_H_
00013 
00014 #if DtDIS
00015 
00016 #include "dStateEncoder.h"
00017 #include "emitterSysSR.h"
00018 #include "elecEmitPdu.h"
00019 #include "elecEmitPdu.h"
00020 
00021 
00026 class DT_DLL_VL DtEmitterSystemStateEncoder : public DtStateEncoder
00027 {
00028 public:
00030    DtEmitterSystemStateEncoder();
00031 
00033    virtual ~DtEmitterSystemStateEncoder();
00034 
00036    DtEmitterSystemStateEncoder(const DtEmitterSystemStateEncoder& orig);
00037 
00039    DtEmitterSystemStateEncoder& operator=(const DtEmitterSystemStateEncoder& orig);
00040 
00045    virtual DtElectromagneticEmissionPdu* stateMsg(
00046       const DtEmitterSystemRepository& stateRep,
00047       const DtEmitterSystemRepository& asSeenByRemote);
00048 
00051    virtual void setAzimuthThreshold(double threshold);
00052 
00054    virtual double azimuthThreshold() const;
00055 
00058    virtual void setElevationThreshold(double threshold);
00059 
00061    virtual double elevationThreshold() const;
00062 
00063 protected:
00065    virtual bool sendNeeded( const DtEmitterSystemRepository& stateRep,
00066                                  const DtEmitterSystemRepository& asSeenByRemote);
00067 
00069    virtual void fillOut(
00070                         const DtEmitterSystemRepository& stateRep,
00071                         const DtEmitterSystemRepository& asSeenByRemote,
00072                         DtElectromagneticEmissionPdu* pdu);
00073 
00074 protected:
00075    DtElectromagneticEmissionPdu myAsPdu;
00076    double myAzimuthThreshold;
00077    double myElevationThreshold;
00078 };
00079 
00080 
00081 #endif
00082 #endif
00083 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)