VR-Forces 4.10 Class Documentation
 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) 2012 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  };
34 
35  public:
36 
39 
42 
45 
47  DtAggregateSettingsRecord& operator = ( const DtAggregateSettingsRecord& obj );
48 
49  bool operator == ( const DtAggregateSettingsRecord& rhs ) const;
50  inline bool operator != ( const DtAggregateSettingsRecord& rhs ) const
51  {
52  return !( *this == rhs );
53  }
54 
57 
58  double ghostingTransparency() const;
59  void setGhostingTransparency( double transparency );
60 
61  bool ghostEchelonLevelItems() const;
62  void setGhostEchelonLevelItems( bool enabled );
63 
64  int echelonLevel() const;
65  void setEchelonLevel( int level );
66 
67  bool displayAggregates() const;
68  void setDisplayAggregates( bool enabled );
69 
70  bool displayBoundingBoxes() const;
71  void setDisplayBoundingBoxes( bool enabled );
72 
73  bool displayLeafNodes() const;
74  void setDisplayLeafNodes( bool enabled );
75 
76  bool displayBoundingBoxesForSelected() const;
77  void setDisplayBoundingBoxesForSelected( bool enabled );
78 
79  bool initiallyDisplayExpanded() const;
80  void setInitiallyDisplayExpanded( bool enabled );
81 
82  bool allowSelectingOfGhostedItems() const;
83  void setAllowSelectingOfGhostedItems( bool enabled );
84 
85  bool displayMainIcon() const;
86  void setDisplayMainIcon( bool enabled );
87 
88  unsigned char colorizedModelColorType() const;
89  void setColorizedModelColorType( unsigned char colorMode );
90 
92  inline void setFlags( int f )
93  {
94  myFlags = f;
95  }
96 
98  inline int flags() const
99  {
100  return myFlags;
101  }
102 
104 
105  protected:
106 
107  friend class boost::serialization::access;
108 
112  template<class Archive>
113  void serialize(Archive & ar, const unsigned int version)
114  {
115  ar & BOOST_SERIALIZATION_NVP(myFlags);
116  ar & BOOST_SERIALIZATION_NVP(myEchelonLevel);
117  ar & BOOST_SERIALIZATION_NVP(myGhostingTransparency);
118  ar & BOOST_SERIALIZATION_NVP(myColorizedModelColorType);
119  }
120 
121  protected:
122 
123  int myFlags;
127 
128  };
129 
130 }
131 
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:123
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
double myGhostingTransparency
Definition: DtAggregateSettingsRecord.h:125
Contains DLL export macros.
int myEchelonLevel
Definition: DtAggregateSettingsRecord.h:124
int flags() const
Get the state flags for the various boolean settings.
Definition: DtAggregateSettingsRecord.h:98
unsigned char myColorizedModelColorType
Definition: DtAggregateSettingsRecord.h:126
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:113
void setFlags(int f)
Set the state flags for the various boolean settings.
Definition: DtAggregateSettingsRecord.h:92

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)