13 #include <boost/bind.hpp> 17 #include "TGeoManager.h" 18 #include "TGeoMatrix.h" 19 #include "TEveManager.h" 46 std::shared_ptr<FWGeometryTableViewBase> view;
55 view->setBackgroundColor();
56 m_views.push_back(std::shared_ptr<FWGeometryTableViewBase>(view));
63 for (std::vector<std::shared_ptr<FWGeometryTableViewBase> >::iterator it =
m_views.begin(); it !=
m_views.end();
65 if (it->get() == iView) {
73 for (std::vector<std::shared_ptr<FWGeometryTableViewBase> >::iterator it =
m_views.begin(); it !=
m_views.end(); ++it)
74 (*it)->setBackgroundColor();
105 throw std::runtime_error(
"Can't find TGeoManager object in selected file.");
107 }
catch (std::runtime_error&
e) {
static TFile * findFile(const char *fileName)
TGeoManager * FWGeometryTableViewManager_GetGeoManager()
~FWGeometryTableViewManager() override
std::vector< std::shared_ptr< FWGeometryTableViewBase > > m_views
FWColorManager & colorManager() const
void registerViewBuilder(const std::string &iName, ViewBuildFunctor &iBuilder)
static std::string sName[kTypeSize]
void beingDestroyed(const FWViewBase *iView)
boost::function2< FWViewBase *, TEveWindowSlot *, const std::string & > ViewBuildFunctor
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)