13 #include <boost/bind.hpp> 17 #include "TGeoManager.h" 18 #include "TGeoMatrix.h" 19 #include "TEveManager.h" 52 std::shared_ptr<FWGeometryTableViewBase> view;
60 view->setBackgroundColor();
61 m_views.push_back(std::shared_ptr<FWGeometryTableViewBase> (view));
71 for(std::vector<std::shared_ptr<FWGeometryTableViewBase> >::iterator it=
m_views.begin(); it !=
m_views.end(); ++it) {
72 if(it->get() == iView) {
82 for(std::vector<std::shared_ptr<FWGeometryTableViewBase> >::iterator it=
m_views.begin(); it !=
m_views.end(); ++it)
83 (*it)->setBackgroundColor();
114 throw std::runtime_error(
"No root file.");
120 throw std::runtime_error(
"Can't find TGeoManager object in selected file.");
123 catch (std::runtime_error &
e)
125 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()
~FWGeometryTableViewManager() override
std::vector< std::shared_ptr< FWGeometryTableViewBase > > m_views
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)
static TGeoManager * s_geoManager
void colorsChanged() override
void setGeoManagerFromFile()
static TGeoManager * getGeoMangeur()
static const std::string & idToName(int)
static void setGeoManagerRuntime(TGeoManager *)
FWViewBase * buildView(TEveWindowSlot *iParent, const std::string &type)