VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtSharedInterestManagementSettings.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2012 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvCore/vrvCore.h>
00013 
00014 #include <vrvCore/DtSharedSettings.h>
00015 #include <vrvCore/DtRecordSettingsBackup.h>
00016 
00017 #include <makArchives/DtInterestManagementRecord.h>
00018 
00019 #include <string>
00020 #include <vector>
00021 
00022 namespace makVrv
00023 {
00024 
00025    class DtSharedInterestManagementSettings;
00026 
00027    typedef DtSharedRecordSettingsBackup<DtSharedInterestManagementSettings,
00028       makArchives::DtInterestManagementRecord> DtInterestManagementSettingsBackup;
00029 
00033    class DT_DLL_VRVCORE DtSharedInterestManagementSettings
00034       : public DtSharedSettings
00035    {
00036    public:
00037 
00039       virtual ~DtSharedInterestManagementSettings();
00040 
00043 
00044       void setDdmRegionSize( int size );
00045       int ddmRegionSize() const;
00046 
00047       void setRegionUpdateThreshold( int percentage );
00048       int regionUpdateThreshold() const;
00049 
00050       void setAltitudeThresholdEnabled( bool enabled );
00051       bool altitudeThresholdEnabled() const;
00052 
00053       void setAltitudeThreshold( int threshold );
00054       int altitudeThreshold() const;
00055 
00057 
00059       void setFromRecord( const makArchives::DtInterestManagementRecord& rec );
00060 
00062       void getRecord( makArchives::DtInterestManagementRecord& rec ) const;
00063 
00065       virtual const DtInterestManagementSettingsBackup* settingsBackup() const;
00066 
00068       virtual DtInterestManagementSettingsBackup* settingsBackup();
00069 
00071       virtual void backup();
00072 
00074       static std::string className();
00075 
00076    protected:
00077 
00079       friend class DtReadSettingsLock<DtSharedInterestManagementSettings>;
00081       friend class DtWriteSettingsLock<DtSharedInterestManagementSettings>;
00082 
00084       DtSharedInterestManagementSettings( DtSharedSettingsManager& manager );
00085 
00086    protected:
00087 
00088       int myDdmRegionSize;
00089       int myRegionUpdateThreshold;
00090       bool myAltitudeThresholdEnabled;
00091       int myAltitudeThreshold;
00092 
00093       DtInterestManagementSettingsBackup* mySettingsBackup;
00094 
00095    };
00096 
00097 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)