VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSharedInterestManagementSettings.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
16 
18 
20 
21 #include <string>
22 #include <vector>
23 
24 namespace makVrv
25 {
26 
28 
31 
36  : public DtSharedSettings
37  {
38  public:
39 
42 
45 
46  void setDdmRegionSize( int size );
47  int ddmRegionSize() const;
48 
49  void setRegionUpdateThreshold( int percentage );
50  int regionUpdateThreshold() const;
51 
52  void setAltitudeThresholdEnabled( bool enabled );
53  bool altitudeThresholdEnabled() const;
54 
55  void setAltitudeThreshold( int threshold );
56  int altitudeThreshold() const;
57 
59 
61  void setFromRecord( const makArchives::DtInterestManagementRecord& rec );
62 
64  void getRecord( makArchives::DtInterestManagementRecord& rec ) const;
65 
67  virtual const DtInterestManagementSettingsBackup* settingsBackup() const;
68 
70  virtual DtInterestManagementSettingsBackup* settingsBackup();
71 
73  virtual void backup();
74 
76  static const std::string& className();
77 
78  protected:
79 
84  friend class DtBaseSharedSettingsManager<makArchives::DtInterestManagementRecord, DtSharedInterestManagementSettings>;
85 
87  DtSharedInterestManagementSettings( DtSharedSettingsManager& manager );
88 
93  bool applyFactoryOverrides(
94  makArchives::DtInterestManagementRecord& rec) const;
95 
96  protected:
97 
98  int myDdmRegionSize;
99  int myRegionUpdateThreshold;
100  bool myAltitudeThresholdEnabled;
101  int myAltitudeThreshold;
102 
104 
105  };
106 
107 }
Base class for shared settings managers. Extends the functionality provided by the DtCommonBaseSettin...
Definition: DtBaseSettingsManager.h:364
a read settings lock on a setting object. The object can only get read access aka const functions...
Definition: DtReadSettingsLock.h:48
Contains makArchives::DtInterestManagementRecord class.
voidpf void uLong size
Definition: ioapi.h:39
The base class for all shared settings. Actual settings class should have the following members/decla...
Definition: DtSharedSettings.h:45
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtSharedRecordSettingsBackup< DtSharedInterestManagementSettings, makArchives::DtInterestManagementRecord > DtInterestManagementSettingsBackup
Definition: DtSharedInterestManagementSettings.h:27
Contains the DtSharedSettings class declaration.
a write settings lock on a setting object. The object can be read and modified, but no other threads ...
Definition: DtWriteSettingsLock.h:47
The makVrv::DtSharedRecordSettingsBackup is a templaced class that settings records will use in order...
Definition: DtRecordSettingsBackup.h:223
Record of interest management / DDM settings.
Definition: DtInterestManagementRecord.h:19
Contains the DtBaseSettingsManager class declaration.
Object responsible for storing the settings regarding interest management (DDM).
Definition: DtSharedInterestManagementSettings.h:35
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)