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) 2023 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 
108  void setFromRecord( const makArchives::DtAggregateSettingsRecord& rec );
109 
111  void getRecord( makArchives::DtAggregateSettingsRecord& rec ) const;
112 
114  virtual const DtAggregateStateSettingsBackup* settingsBackup() const;
115 
117  virtual DtAggregateStateSettingsBackup* settingsBackup();
118 
120  virtual void backup();
121 
123  static const std::string& className();
124 
125  protected:
126 
131  friend class DtBaseSharedSettingsManager<makArchives::DtAggregateSettingsRecord, DtSharedAggregateDisplaySettings>;
132 
134  DtSharedAggregateDisplaySettings( DtSharedSettingsManager& manager );
135 
140  bool applyFactoryOverrides(
141  makArchives::DtAggregateSettingsRecord& rec) const;
142 
143  protected:
144 
145  int myFlags;
146  int myEchelonLevel;
147  double myGhostingTransparency;
148  DtColorizedModelColorType myColorizedModelColorType;
149 
150  DtAggregateStateSettingsBackup* myAggregateSettingsBackup;
151 
152  };
153 
154 }
Base class for shared settings managers. Extends the functionality provided by the DtCommonBaseSettin...
Definition: DtBaseSettingsManager.h:372
a read settings lock on a setting object. The object can only get read access aka const functions...
Definition: DtReadSettingsLock.h:48
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:45
#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:197
Contains the DtAggregateSettingsRecord class declaration.
Contains the DtBaseSettingsManager class declaration.
Contains DLL export macros.

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)