13 #include <boost/bind.hpp> 17 #include "TGeoManager.h" 18 #include "TGeoMatrix.h" 19 #include "TEveManager.h" 53 std::shared_ptr<FWGeometryTableViewBase> view;
61 view->setBackgroundColor();
62 m_views.push_back(std::shared_ptr<FWGeometryTableViewBase> (view));
72 for(std::vector<std::shared_ptr<FWGeometryTableViewBase> >::iterator it=
m_views.begin(); it !=
m_views.end(); ++it) {
73 if(it->get() == iView) {
83 for(std::vector<std::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()
~FWGeometryTableViewManager() override
std::vector< std::shared_ptr< FWGeometryTableViewBase > > m_views
FWColorManager & colorManager() const
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()
FWGeometryTableViewManager(FWGUIManager *, std::string fileName, std::string geoName)
static TGeoManager * getGeoMangeur()
static const std::string & idToName(int)
static void setGeoManagerRuntime(TGeoManager *)
FWViewBase * buildView(TEveWindowSlot *iParent, const std::string &type)