- add_type<GL::Material>().creator(&Catalogue3D::create<GL::Material>);
- add_type<GL::Mesh>().creator(&Catalogue3D::create<GL::Mesh>);
- add_type<GL::Object>().creator(&Catalogue3D::create<GL::Object>);
- add_type<GL::Program>().creator(&Catalogue3D::create<GL::Program>);
- add_type<GL::Technique>().creator(&Catalogue3D::create<GL::Technique>);
-
- catalogue.signal_track_added.connect(sigc::mem_fun(this, &Catalogue3D::track_added));
- catalogue.signal_vehicle_added.connect(sigc::mem_fun(this, &Catalogue3D::vehicle_added));
- catalogue.signal_signal_added.connect(sigc::mem_fun(this, &Catalogue3D::signal_added));
-
- const Catalogue::TrackMap &trks = catalogue.get_tracks();
- for(Catalogue::TrackMap::const_iterator i=trks.begin(); i!=trks.end(); ++i)
- track_added(*i->second);
- const Catalogue::SignalMap &sigs = catalogue.get_signals();
- for(Catalogue::SignalMap::const_iterator i=sigs.begin(); i!=sigs.end(); ++i)
- signal_added(*i->second);
-
- build_endpoint_mesh();
+ 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));
+
+ set_srgb_conversion(true);