- catalogue.signal_track_added.connect(sigc::mem_fun(this, &Catalogue3D::track_added));
- catalogue.signal_vehicle_added.connect(sigc::mem_fun(this, &Catalogue3D::vehicle_added));
-
- const Catalogue::TrackMap &trks = catalogue.get_tracks();
- for(Catalogue::TrackMap::const_iterator i=trks.begin(); i!=trks.end(); ++i)
- track_added(*i->second);
-
- ballast_material.set_diffuse(GL::Color(0.25, 0.25, 0.25));
- rail_material.set_diffuse(GL::Color(0.85, 0.85, 0.85));
+ const list<DataFile::CollectionSource *> &src = catalogue.get_sources();
+ for(list<DataFile::CollectionSource *>::const_iterator i=src.begin(); i!=src.end(); ++i)
+ add_source(**i);
+ catalogue.signal_source_added.connect(sigc::mem_fun(static_cast<DataFile::Collection *>(this), &Catalogue3D::add_source));