14 #include <boost/serialization/access.hpp>
15 #include <boost/serialization/nvp.hpp>
16 #include <boost/serialization/list.hpp>
17 #include <boost/serialization/map.hpp>
18 #include <boost/serialization/vector.hpp>
19 #include <boost/serialization/string.hpp>
31 DtTerrainProfileShowObjectsNearLine = 0x00000001,
32 DtTerrainProfileShowWhenCreatingIntervisibilityLine = 0x00000002,
33 DtTerrainProfileShowWhenCreatingRoute = 0x00000004,
34 DtTerrainProfileShowWhenEditingRoute = 0x00000040,
35 DtTerrainProfileShowVertices = 0x00000400,
36 DtTerrainProfileUseBackedForProfile = 0x00000800,
37 DtTerrainProfileDefaults = DtTerrainProfileShowWhenCreatingIntervisibilityLine | DtTerrainProfileShowObjectsNearLine | DtTerrainProfileShowVertices | DtTerrainProfileUseBackedForProfile
48 virtual void setFlag(
int flag,
bool set);
49 TerrainProfileDisplayOptions displayOptions()
const;
53 void setShowObjectsNearLine(
bool);
54 bool showObjectsNearLine()
const;
57 void setShowVertices(
bool);
58 bool showVertices()
const;
62 void setShowObjectsWithinRange(
double);
63 double showObjectsWithinRange()
const;
67 void setSamplingRate(
double);
68 double samplingRate()
const;
71 void setMaximumNumberOfSamplePoints(
int);
72 int maximumNumberOfSamplePoints()
const;
74 void setShowWhenCreatingIntervisibilityLine(
bool);
75 bool showWhenCreatingIntervisibilityLine()
const;
77 void setShowWhenCreatingRoute(
bool);
78 bool showWhenCreatingRoute()
const;
80 void setShowWhenEditingRoute(
bool);
81 bool showWhenEditingRoute()
const;
83 void setUseBackendForTerrainProfileInformation(
bool);
84 bool useBackendForTerrainProfileInformation()
const;
90 friend class boost::serialization::access;
95 template<
class Archive>
96 void serialize(Archive & ar,
const unsigned int version)
98 ar & BOOST_SERIALIZATION_NVP(myDisplayOptions);
99 ar & BOOST_SERIALIZATION_NVP(myShowWithinRange);
100 ar & BOOST_SERIALIZATION_NVP(mySamplingRate);
101 ar & BOOST_SERIALIZATION_NVP(myMaximumNumberOfSamplePoints);
103 if ((version < 2) && Archive::is_loading::value)
105 int doOpt = myDisplayOptions;
106 doOpt |= DtTerrainProfileUseBackedForProfile;
127 static std::string className();
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
The shared settings manager, is the global object responsible for managing any shared settings object...
Definition: DtSharedSettingsManager.h:45
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Definition: terrainProfileSettingsRecord.h:118
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 2)
The base class for all shared settings.
Definition: DtSharedSettings.h:45
double myShowWithinRange
Definition: terrainProfileSettingsRecord.h:113
Contains the DtSharedSettings class declaration.
TerrainProfileDisplayOptions myDisplayOptions
Definition: terrainProfileSettingsRecord.h:112
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the & operator is defined similar to <<...
Definition: terrainProfileSettingsRecord.h:96
TerrainProfileDisplayOptions
Definition: terrainProfileSettingsRecord.h:29
double mySamplingRate
Definition: terrainProfileSettingsRecord.h:114
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
Contains makVrf::DtTerrainProfileSettingsRecord class.
Definition: terrainProfileSettingsRecord.h:26
DtTerrainProfileSettingsRecord myTerrainProfileSettings
Definition: terrainProfileSettingsRecord.h:130
int myMaximumNumberOfSamplePoints
Definition: terrainProfileSettingsRecord.h:115