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>
34 DtTerrainProfileShowObjectsNearLine = 0x00000001,
35 DtTerrainProfileShowWhenCreatingIntervisibilityLine = 0x00000002,
36 DtTerrainProfileShowWhenCreatingRoute = 0x00000004,
37 DtTerrainProfileShowWhenEditingRoute = 0x00000040,
38 DtTerrainProfileShowVertices = 0x00000400,
39 DtTerrainProfileDefaults = DtTerrainProfileShowWhenCreatingIntervisibilityLine | DtTerrainProfileShowObjectsNearLine | DtTerrainProfileShowVertices
50 virtual void setFlag(
int flag,
bool set);
51 TerrainProfileDisplayOptions displayOptions()
const;
55 void setShowObjectsNearLine(
bool);
56 bool showObjectsNearLine()
const;
59 void setShowVertices(
bool);
60 bool showVertices()
const;
64 void setShowObjectsWithinRange(
double);
65 double showObjectsWithinRange()
const;
69 void setSamplingRate(
double);
70 double samplingRate()
const;
73 void setMaximumNumberOfSamplePoints(
int);
74 int maximumNumberOfSamplePoints()
const;
76 void setShowWhenCreatingIntervisibilityLine(
bool);
77 bool showWhenCreatingIntervisibilityLine()
const;
79 void setShowWhenCreatingRoute(
bool);
80 bool showWhenCreatingRoute()
const;
82 void setShowWhenEditingRoute(
bool);
83 bool showWhenEditingRoute()
const;
89 friend class boost::serialization::access;
94 template<
class Archive>
95 void serialize(Archive & ar,
const unsigned int version)
97 ar & BOOST_SERIALIZATION_NVP(myDisplayOptions);
98 ar & BOOST_SERIALIZATION_NVP(myShowWithinRange);
99 ar & BOOST_SERIALIZATION_NVP(mySamplingRate);
100 ar & BOOST_SERIALIZATION_NVP(myMaximumNumberOfSamplePoints);
119 static std::string className();