17 #include <boost/serialization/access.hpp>
18 #include <boost/serialization/nvp.hpp>
19 #include <boost/serialization/list.hpp>
20 #include <boost/serialization/map.hpp>
21 #include <boost/serialization/vector.hpp>
22 #include <boost/serialization/string.hpp>
35 DtRangeRingsFill2D = 0x00000001,
36 DtRangeRingsShowRangeSphere = 0x00000002,
37 DtRangeRingsShowWeaponNameLabel = 0x00000004,
38 DtRangeRingsShowEntityNameLabel = 0x00000008,
39 DtRangeRingsShowRangeValueLabel = 0x00000010,
40 DtRangeRingsShowByDefault = 0x00000020,
41 DtRangeRingsShowWhenSelected = 0x00000040,
42 DtRangeRingsShowPhysicalFootprint = 0x00000080,
59 friend class boost::serialization::access;
64 template<
class Archive>
65 void serialize(Archive & ar,
const unsigned int version)
67 ar & BOOST_SERIALIZATION_NVP(color);
69 if (Archive::is_loading::value)
72 ar & BOOST_SERIALIZATION_NVP(serLabel);
78 std::string serLabel = label.
toAscii();
79 ar & BOOST_SERIALIZATION_NVP(serLabel);
84 ar & BOOST_SERIALIZATION_NVP(visible);
99 virtual void setFlag(
int flag,
bool set);
102 void setFill2D(
bool);
105 void setShowRangeSphere(
bool );
106 bool showRangeSphere()
const;
108 void setShowWeaponNameLabel(
bool );
109 bool showWeaponNameLabel()
const;
111 void setShowEntityNameLabel(
bool );
112 bool showEntityNameLabel()
const;
114 void setShowRangeValueLabel(
bool );
115 bool showRangeValueLabel()
const;
117 void setShowByDefault(
bool );
118 bool showByDefault()
const;
120 void setShowForSelected(
bool );
121 bool showForSelected()
const;
123 void setShowPhysicalFootprint(
bool );
124 bool showPhysicalFootprint()
const;
128 void addColorOption(
const std::string& type,
int color,
const makVrv::DtUnicode&);
129 bool getColorOption(
const std::string& type,
int& color,
makVrv::DtUnicode&)
const;
131 void removeColorOption(
const std::string& type);
133 void setVisible(
const std::string& type,
bool);
134 bool visible(
const std::string& type)
const;
136 void setSphereOpacityModifier(
double);
137 double sphereOpacityModifier()
const;
144 return myColorOptionsNew;
148 friend class boost::serialization::access;
153 template<
class Archive>
154 void serialize(Archive & ar,
const unsigned int version)
156 ar & BOOST_SERIALIZATION_NVP(myDisplayOptions);
159 ar & BOOST_SERIALIZATION_NVP(myColorOptionsNew);
161 if (Archive::is_loading::value && (version < 3))
163 setShowForSelected(
true);
164 setShowPhysicalFootprint(
true);
169 ar & BOOST_SERIALIZATION_NVP(mySphereOpacityModifier);
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
double mySphereOpacityModifier
Definition: rangeRingsSettingsRecord.h:177
Definition: rangeRingsSettingsRecord.h:45
int color
Definition: rangeRingsSettingsRecord.h:53
const int DEFAULT_OPACITY
Definition: paletteInformationSettingsRecord.h:26
bool visible
Definition: rangeRingsSettingsRecord.h:56
ColorOption & operator=(const ColorOption &c)
Definition: rangeRingsSettingsRecord.h:51
DT_DLL_VRFGUICORE bool operator==(const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &lhs, const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &rhs)
const ColorOptions & colorOptions() const
Definition: rangeRingsSettingsRecord.h:142
ColorOption()
Definition: rangeRingsSettingsRecord.h:47
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
RangeRingsDisplayOptions
Definition: rangeRingsSettingsRecord.h:32
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the & operator is defined similar to <<...
Definition: rangeRingsSettingsRecord.h:154
void toAscii(std::string &str) const
Decode via specifying encoding.
ColorOptions myColorOptionsNew
Definition: rangeRingsSettingsRecord.h:175
const int USING_FORCE_COLOR
Definition: paletteInformationSettingsRecord.h:25
makVrv::DtUnicode label
Definition: rangeRingsSettingsRecord.h:55
DT_DLL_VRFGUICORE bool operator!=(const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &lhs, const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &rhs)
ColorOption(int c, const makVrv::DtUnicode &v, bool visible=true)
Definition: rangeRingsSettingsRecord.h:48
ColorOption(const ColorOption &c)
Definition: rangeRingsSettingsRecord.h:49
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the & operator is defined similar to <<...
Definition: rangeRingsSettingsRecord.h:65
Definition: rangeRingsSettingsRecord.h:29
static DtUnicode fromAscii(const std::string &ascii)
Create a unicode string from an ascii string, the string MUST be zero terminated if the length is not...
std::map< std::string, ColorOption > ColorOptions
Definition: rangeRingsSettingsRecord.h:89
RangeRingsDisplayOptions myDisplayOptions
Definition: rangeRingsSettingsRecord.h:176
bool operator==(const ColorOption &c) const
Definition: rangeRingsSettingsRecord.h:53