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);