VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rangeLineSettingsRecord.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
6 #pragma once
7 
9 #include <boost/serialization/access.hpp>
10 #include <boost/serialization/nvp.hpp>
11 #include <boost/serialization/list.hpp>
12 #include <boost/serialization/map.hpp>
13 #include <boost/serialization/vector.hpp>
14 #include <boost/serialization/string.hpp>
15 
16 namespace makVrf
17 {
18 
21  {
22  public:
23 
26 
29 
31  DtRangeLineSettingsRecord& operator = ( const DtRangeLineSettingsRecord& obj );
32 
35 
37  bool operator == ( const DtRangeLineSettingsRecord& rhs ) const;
38 
40  inline bool operator != ( const DtRangeLineSettingsRecord& rhs ) const
41  {
42  return !( *this == rhs );
43  }
44 
47 
49  void setRangeLinesVisible( bool enabled );
51  bool rangeLinesVisible() const;
52 
54  void setColor( float r, float g, float b, float a );
56  void color( float& r, float& g, float& b, float& a ) const;
57 
59  void setRangeInfoLabelBackgroundColor( float r, float g, float b, float a );
61  void rangeInfoLabelBackgroundColor( float& r, float& g, float& b, float& a ) const;
62 
64  void setFontColor( float r, float g, float b, float a );
66  void fontColor( float& r, float& g, float& b, float& a ) const;
67 
69  void setFontSize(int);
71  int fontSize() const;
72 
74  void setLineWidth(int);
76  int lineWidth() const;
77 
79  void setHatLinesEnabled( bool hatEnabled );
81  bool hatLinesEnabled() const;
82 
84  void setHatLinesOnSelectionOnly( bool selOnly );
86  bool hatLinesOnSelectionOnly() const;
87 
89 
90  protected:
91 
92  friend class boost::serialization::access;
93 
97  template<class Archive>
98  void serialize(Archive & ar, const unsigned int version)
99  {
100  ar & BOOST_SERIALIZATION_NVP(myColorR);
101  ar & BOOST_SERIALIZATION_NVP(myColorG);
102  ar & BOOST_SERIALIZATION_NVP(myColorB);
103  ar & BOOST_SERIALIZATION_NVP(myColorA);
104  ar & BOOST_SERIALIZATION_NVP(myLineWidth);
105  ar & BOOST_SERIALIZATION_NVP(myHatLinesEnabled);
106  ar & BOOST_SERIALIZATION_NVP(myHatLinesOnSelectionOnly);
107 
108  ar & BOOST_SERIALIZATION_NVP(myFontColorR);
109  ar & BOOST_SERIALIZATION_NVP(myFontColorG);
110  ar & BOOST_SERIALIZATION_NVP(myFontColorB);
111  ar & BOOST_SERIALIZATION_NVP(myFontColorA);
112  ar & BOOST_SERIALIZATION_NVP( myFontSize );
113 
114  ar & BOOST_SERIALIZATION_NVP( myRangeInfoLabelBackgroundColorR );
115  ar & BOOST_SERIALIZATION_NVP( myRangeInfoLabelBackgroundColorG );
116  ar & BOOST_SERIALIZATION_NVP( myRangeInfoLabelBackgroundColorB );
117  ar & BOOST_SERIALIZATION_NVP( myRangeInfoLabelBackgroundColorA );
118 
119  ar & BOOST_SERIALIZATION_NVP( myRangeLinesEnabled );
120  }
121 
122  protected:
123  float myColorR, myColorG, myColorB, myColorA;
124  float myFontColorR, myFontColorG, myFontColorB, myFontColorA;
125  float myBackgroundColorR, myBackgroundColorG, myBackgroundColorB, myBackgroundColorA;
126  float myRangeInfoLabelBackgroundColorR, myRangeInfoLabelBackgroundColorG;
127  float myRangeInfoLabelBackgroundColorB, myRangeInfoLabelBackgroundColorA;
128 
132 
135  };
136 
137 }
138 
int myLineWidth
Definition: rangeLineSettingsRecord.h:131
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 2)
Record class for Range Line settings.
Definition: rangeLineSettingsRecord.h:20
float myRangeInfoLabelBackgroundColorR
Definition: rangeLineSettingsRecord.h:126
int myFontSize
Definition: rangeLineSettingsRecord.h:130
bool myRangeLinesEnabled
Definition: rangeLineSettingsRecord.h:129
bool myHatLinesEnabled
Definition: rangeLineSettingsRecord.h:133
float myColorR
Definition: rangeLineSettingsRecord.h:123
float myFontColorR
Definition: rangeLineSettingsRecord.h:124
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: rangeLineSettingsRecord.h:98
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
float myRangeInfoLabelBackgroundColorB
Definition: rangeLineSettingsRecord.h:127
float myBackgroundColorR
Definition: rangeLineSettingsRecord.h:125
bool myHatLinesOnSelectionOnly
Definition: rangeLineSettingsRecord.h:134

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)