VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSharedAggregateDisplaySettings.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2025 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
15 
17 
19 
20 class DtEntityType;
21 
22 namespace makVrv
23 {
24 
25  class DtEntityTypeMapper;
26  class DtSharedAggregateDisplaySettings;
28 
31 
35  : public DtSharedSettings
36  {
37  public:
38 
41 
44 
46  virtual bool displayAggregates() const;
48  virtual void setDisplayAggregates( bool enabled );
49 
51  virtual bool displayAggregateLeafNodes() const;
53  virtual void setDisplayAggregateLeafNodes( bool enabled );
54 
56  virtual bool displayInitiallyExpanded() const;
58  virtual void setDisplayInitiallyExpanded( bool enabled );
59 
61  virtual bool displayAggregateBoundingBoxes() const;
63  virtual void setDisplayAggregateBoundingBoxes( bool enabled );
64 
66  virtual bool displayAggregateBoundingBoxesForSelected() const;
68  virtual void setDisplayAggregateBoundingBoxesForSelected( bool enabled );
69 
71  virtual bool displayMainIcon() const;
73  virtual void setDisplayMainIcon( bool enabled );
74 
76  virtual bool ghostEchelonLevelItems() const;
78  virtual void setGhostEchelonLevelItems( bool enabled );
79 
81  virtual bool ghostEchelonLevelItemLabels() const;
83  virtual void setGhostEchelonLevelItemLabels(bool enabled);
84 
86  virtual bool allowSelectionOfGhostedItems() const;
88  virtual void setAllowSelectionOfGhostedItems( bool enabled );
89 
91  virtual int echelonLevel() const;
93  virtual void setEchelonLevel( int level );
94 
96  virtual double ghostingTransparency() const;
98  virtual void setGhostingTransparency( double transparency );
99 
101  virtual DtColorizedModelColorType colorizedModelColorTypeForAggregates() const;
103  virtual void setColorizedModelColorTypeForAggregates( DtColorizedModelColorType type );
104 
106  virtual bool autoCollapseExpandEnabled() const;
108  virtual void setAutoCollapseExpandEnabled( bool enabled );
109 
111  virtual const makArchives::DtAggregateSettingsRecord::MapScaleCollapse& collapseLevelsAboveMapScales() const;
113  virtual void setCollapseLevelsAboveMapScales( const makArchives::DtAggregateSettingsRecord::MapScaleCollapse& mapScaleCollapse );
114 
116  virtual int maxEchelonGhostingLevel() const;
118  virtual void setMaxEchelonGhostingLevel( int level );
119 
121 
123  void setFromRecord( const makArchives::DtAggregateSettingsRecord& rec );
124 
126  void getRecord( makArchives::DtAggregateSettingsRecord& rec ) const;
127 
129  virtual const DtAggregateStateSettingsBackup* settingsBackup() const;
130 
132  virtual DtAggregateStateSettingsBackup* settingsBackup();
133 
135  virtual void backup();
136 
138  static const std::string& className();
139 
140  protected:
141 
146  friend class DtBaseSharedSettingsManager<makArchives::DtAggregateSettingsRecord, DtSharedAggregateDisplaySettings>;
147 
149  DtSharedAggregateDisplaySettings( DtSharedSettingsManager& manager );
150 
155  bool applyFactoryOverrides(
156  makArchives::DtAggregateSettingsRecord& rec) const;
157 
158  protected:
159 
160  int myFlags;
161  int myEchelonLevel;
162  int myMaxEchelonGhostingLevel;
163  double myGhostingTransparency;
164  DtColorizedModelColorType myColorizedModelColorType;
165 
166  bool myAutoCollapseExpandEnabled;
168 
169  DtAggregateStateSettingsBackup* myAggregateSettingsBackup;
170 
171  };
172 
173 }
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
std::map< int, double > MapScaleCollapse
Automatic collapse expand.
Definition: DtAggregateSettingsRecord.h:109
DtSharedRecordSettingsBackup< DtSharedAggregateDisplaySettings, makArchives::DtAggregateSettingsRecord > DtAggregateStateSettingsBackup
Definition: DtSharedAggregateDisplaySettings.h:27
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
DtColorizedModelColorType
Enumeration for the model coloring mode.
Definition: DtSharedEntityDisplaySettings.h:38
The shared aggregate display settings object.
Definition: DtSharedAggregateDisplaySettings.h:34
The base class for all shared settings. Actual settings class should have the following members/decla...
Definition: DtSharedSettings.h:48
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
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
Record class for aggregate settings.
Definition: DtAggregateSettingsRecord.h:19
The makVrv::DtSharedRecordSettingsBackup is a templaced class that settings records will use in order...
Definition: DtRecordSettingsBackup.h:223
Contains the DtAggregateSettingsRecord class declaration.
Contains the DtBaseSettingsManager class declaration.
Contains DLL export macros.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)