42 void setEnabledFlag(
bool enabled);
43 bool enabledFlag()
const;
46 void setInfiniteFlag(
bool infinite);
47 bool infiniteFlag()
const;
50 void setType(
const std::string& type );
51 const std::string& type()
const;
54 void setPosition(
double x,
double y,
double z);
55 void setPosition(
double position[3]);
58 const double* position()
const;
61 void setWidth(
double w);
62 void setLength(
double l);
63 void setThickness(
double t);
66 double length()
const;
67 double thickness()
const;
70 void setDensity(
float density);
71 float density()
const;
75 friend class boost::serialization::access;
80 template<
class Archive>
81 void serialize(Archive & ar,
const unsigned int version)
83 ar & BOOST_SERIALIZATION_NVP(myEnabledFlag);
84 ar & BOOST_SERIALIZATION_NVP(myType);
88 ar & boost::serialization::make_nvp(
"myOriginX", myPosition[0]);
89 ar & boost::serialization::make_nvp(
"myOriginY", myPosition[1]);
90 ar & boost::serialization::make_nvp(
"myAltitude", myPosition[2]);
94 ar & BOOST_SERIALIZATION_NVP(myPosition);
97 ar & BOOST_SERIALIZATION_NVP(myWidth);
98 ar & BOOST_SERIALIZATION_NVP(myLength);
99 ar & BOOST_SERIALIZATION_NVP(myThickness);
101 ar & BOOST_SERIALIZATION_NVP(myDensity);
111 double myPosition[3];