VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAggregateSettingsRecord.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 
13 
14 namespace makArchives
15 {
16 
20  {
21  public:
22 
24  {
25  DisplayBoundingBoxes = 0x00000001,
26  DisplayBoundingBoxesForSelected = 0x00000002,
27  GhostEchelonLevelItems = 0x00000004,
28  InitiallyDisplayExpanded = 0x00000008,
29  DisplayMainIcon = 0x00000010,
30  DisplayLeafLevelItems = 0x00000020,
31  AllowSelectingOfGhostedItems = 0x00000040,
32  DisplayAggregates = 0x00000080,
33  GhostEchelonLevelItemLabels = 0x00000100
34  };
35 
36  public:
37 
40 
43 
46 
48  DtAggregateSettingsRecord& operator = ( const DtAggregateSettingsRecord& obj );
49 
50  bool operator == ( const DtAggregateSettingsRecord& rhs ) const;
51  inline bool operator != ( const DtAggregateSettingsRecord& rhs ) const
52  {
53  return !( *this == rhs );
54  }
55 
58 
59  double ghostingTransparency() const;
60  void setGhostingTransparency( double transparency );
61 
62  bool ghostEchelonLevelItems() const;
63  void setGhostEchelonLevelItems( bool enabled );
64 
65  bool ghostEchelonLevelItemLabels() const;
66  void setGhostEchelonLevelItemLabels(bool enabled);
67 
68  int echelonLevel() const;
69  void setEchelonLevel( int level );
70 
71  bool displayAggregates() const;
72  void setDisplayAggregates( bool enabled );
73 
74  bool displayBoundingBoxes() const;
75  void setDisplayBoundingBoxes( bool enabled );
76 
77  bool displayLeafNodes() const;
78  void setDisplayLeafNodes( bool enabled );
79 
80  bool displayBoundingBoxesForSelected() const;
81  void setDisplayBoundingBoxesForSelected( bool enabled );
82 
83  bool initiallyDisplayExpanded() const;
84  void setInitiallyDisplayExpanded( bool enabled );
85 
86  bool allowSelectingOfGhostedItems() const;
87  void setAllowSelectingOfGhostedItems( bool enabled );
88 
89  bool displayMainIcon() const;
90  void setDisplayMainIcon( bool enabled );
91 
92  unsigned char colorizedModelColorType() const;
93  void setColorizedModelColorType( unsigned char colorMode );
94 
96  inline void setFlags( int f )
97  {
98  myFlags = f;
99  }
100 
102  inline int flags() const
103  {
104  return myFlags;
105  }
106 
109  using MapScaleCollapse = std::map<int, double>;
112  virtual void setCollapseLevelsAboveMapScales(const MapScaleCollapse&);
114  {
115  return myMapScaleCollapse;
116  }
117 
119  virtual void setAutoCollapseExpandEnabled(bool);
121  {
122  return myAutoCollapseExpandEnabled;
123  }
125 
128  int maxEchelonGhostingLevel() const;
129  void setMaxEchelonGhostingLevel( int level );
131  protected:
132 
133  friend class boost::serialization::access;
134 
138  template<class Archive>
139  void serialize(Archive & ar, const unsigned int version)
140  {
141  ar & BOOST_SERIALIZATION_NVP(myFlags);
142  ar & BOOST_SERIALIZATION_NVP(myEchelonLevel);
143  ar & BOOST_SERIALIZATION_NVP(myGhostingTransparency);
144  ar & BOOST_SERIALIZATION_NVP(myColorizedModelColorType);
145 
146  if (version >= 2)
147  {
148  ar & BOOST_SERIALIZATION_NVP( myMapScaleCollapse );
149  ar & BOOST_SERIALIZATION_NVP( myAutoCollapseExpandEnabled );
150  ar & BOOST_SERIALIZATION_NVP( myMaxEchelonGhostingLevel );
151  }
152  }
153 
154  protected:
155 
156  int myFlags;
161 
164  };
165 
166 }
167 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
DisplayFlags
Definition: DtAggregateSettingsRecord.h:23
std::map< int, double > MapScaleCollapse
Automatic collapse expand.
Definition: DtAggregateSettingsRecord.h:109
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
int myFlags
Definition: DtAggregateSettingsRecord.h:156
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
double myGhostingTransparency
Definition: DtAggregateSettingsRecord.h:159
Contains DLL export macros.
const MapScaleCollapse & collapseLevelsAboveMapScales() const
Automatic collapse expand.
Definition: DtAggregateSettingsRecord.h:113
int myEchelonLevel
Definition: DtAggregateSettingsRecord.h:157
bool myAutoCollapseExpandEnabled
Definition: DtAggregateSettingsRecord.h:163
int flags() const
Get the state flags for the various boolean settings.
Definition: DtAggregateSettingsRecord.h:102
unsigned char myColorizedModelColorType
Definition: DtAggregateSettingsRecord.h:160
bool autoCollapseExpandEnabled() const
Automatic collapse expand.
Definition: DtAggregateSettingsRecord.h:120
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
Record class for aggregate settings.
Definition: DtAggregateSettingsRecord.h:19
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
int myMaxEchelonGhostingLevel
Definition: DtAggregateSettingsRecord.h:158
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the &amp; operator is defined similar to &lt;&lt;...
Definition: DtAggregateSettingsRecord.h:139
MapScaleCollapse myMapScaleCollapse
Definition: DtAggregateSettingsRecord.h:162
void setFlags(int f)
Set the state flags for the various boolean settings.
Definition: DtAggregateSettingsRecord.h:96

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)