+#include "trackappearance.h"
+
+using namespace std;
+using namespace Msp;
+
+namespace R2C2 {
+
+float TrackAppearance::get_rail_elevation() const
+{
+ return ballast_profile.get_height()+rail_profile.get_height();
+}
+
+
+TrackAppearance::Loader::Loader(TrackAppearance &a):
+ ObjectLoader<TrackAppearance>(a)
+{
+ add("ballast_profile", &Loader::ballast_profile);
+ add("rail_profile", &Loader::rail_profile);
+ add("technique", &TrackAppearance::technique);
+}
+
+void TrackAppearance::Loader::ballast_profile()
+{
+ load_sub(obj.ballast_profile);
+}
+
+void TrackAppearance::Loader::rail_profile()
+{
+ load_sub(obj.rail_profile);
+}
+
+} // namespace R2C2