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) 2021 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 
108 
109  protected:
110 
111  friend class boost::serialization::access;
112 
116  template<class Archive>
117  void serialize(Archive & ar, const unsigned int version)
118  {
119  ar & BOOST_SERIALIZATION_NVP(myFlags);
120  ar & BOOST_SERIALIZATION_NVP(myEchelonLevel);
121  ar & BOOST_SERIALIZATION_NVP(myGhostingTransparency);
122  ar & BOOST_SERIALIZATION_NVP(myColorizedModelColorType);
123  }
124 
125  protected:
126 
127  int myFlags;
131 
132  };
133 
134 }
135 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
DisplayFlags
Definition: DtAggregateSettingsRecord.h:23
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:127
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
double myGhostingTransparency
Definition: DtAggregateSettingsRecord.h:129
Contains DLL export macros.
int myEchelonLevel
Definition: DtAggregateSettingsRecord.h:128
int flags() const
Get the state flags for the various boolean settings.
Definition: DtAggregateSettingsRecord.h:102
unsigned char myColorizedModelColorType
Definition: DtAggregateSettingsRecord.h:130
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
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:117
void setFlags(int f)
Set the state flags for the various boolean settings.
Definition: DtAggregateSettingsRecord.h:96

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)