14 #include <boost/bind.hpp>
18 #include "TGeoManager.h"
19 #include "TGeoMatrix.h"
20 #include "TEveManager.h"
53 boost::shared_ptr<FWGeometryTableViewBase> view;
61 view->setBackgroundColor();
62 m_views.push_back(boost::shared_ptr<FWGeometryTableViewBase> (view));
72 for(std::vector<boost::shared_ptr<FWGeometryTableViewBase> >::iterator it=
m_views.begin(); it !=
m_views.end(); ++it) {
73 if(it->get() == iView) {
83 for(std::vector<boost::shared_ptr<FWGeometryTableViewBase> >::iterator it=
m_views.begin(); it !=
m_views.end(); ++it)
84 (*it)->setBackgroundColor();
115 throw std::runtime_error(
"No root file.");
121 throw std::runtime_error(
"Can't find TGeoManager object in selected file.");
124 catch (std::runtime_error &
e)
126 fwLog(
fwlog::kError) <<
"Failed to find simulation geomtery file. Please set the file path with --sim-geom-file option.\n";
static TFile * findFile(const char *fileName)
TGeoManager * FWGeometryTableViewManager_GetGeoManager()
FWColorManager & colorManager() const
FWGeometryTableViewManager(FWGUIManager *, std::string fileName)
boost::function2< FWViewBase *, TEveWindowSlot *, const std::string & > ViewBuildFunctor
void registerViewBuilder(const std::string &iName, ViewBuildFunctor &iBuilder)
static std::string sName[kTypeSize]
void beingDestroyed(const FWViewBase *iView)
virtual ~FWGeometryTableViewManager()
static TGeoManager * s_geoManager
void setGeoManagerFromFile()
static TGeoManager * getGeoMangeur()
std::vector< boost::shared_ptr< FWGeometryTableViewBase > > m_views
static const std::string & idToName(int)
virtual void colorsChanged()
static void setGeoManagerRuntime(TGeoManager *)
FWViewBase * buildView(TEveWindowSlot *iParent, const std::string &type)