42 void setEnabledFlag(
bool enabled);
43 bool enabledFlag()
const;
46 void setType(
const std::string& type );
47 const std::string& type()
const;
50 void setPosition(
double x,
double y,
double z);
51 void setPosition(
double position[3]);
54 const double* position()
const;
57 void setWidth(
double w);
58 void setLength(
double l);
59 void setThickness(
double t);
62 double length()
const;
63 double thickness()
const;
66 void setDensity(
float density);
67 float density()
const;
71 friend class boost::serialization::access;
76 template<
class Archive>
77 void serialize(Archive & ar,
const unsigned int version)
79 ar & BOOST_SERIALIZATION_NVP(myEnabledFlag);
80 ar & BOOST_SERIALIZATION_NVP(myType);
84 ar & boost::serialization::make_nvp(
"myOriginX", myPosition[0]);
85 ar & boost::serialization::make_nvp(
"myOriginY", myPosition[1]);
86 ar & boost::serialization::make_nvp(
"myAltitude", myPosition[2]);
90 ar & BOOST_SERIALIZATION_NVP(myPosition);
93 ar & BOOST_SERIALIZATION_NVP(myWidth);
94 ar & BOOST_SERIALIZATION_NVP(myLength);
95 ar & BOOST_SERIALIZATION_NVP(myThickness);
97 ar & BOOST_SERIALIZATION_NVP(myDensity);
107 double myPosition[3];