Go to the documentation of this file.
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 const std::string & idToName(int)
static TGeoManager * getGeoMangeur()
void registerViewBuilder(const std::string &iName, ViewBuildFunctor &iBuilder)
FWColorManager & colorManager() const
FWViewBase * buildView(TEveWindowSlot *iParent, const std::string &type)
std::vector< std::shared_ptr< FWGeometryTableViewBase > > m_views
FWGeometryTableViewManager(FWGUIManager *, std::string fileName, std::string geoName)
void setGeoManagerFromFile()
static std::string sName[kTypeSize]
void colorsChanged() override
static TFile * findFile(const char *fileName)
static TGeoManager * s_geoManager
static void setGeoManagerRuntime(TGeoManager *)
boost::function2< FWViewBase *, TEveWindowSlot *, const std::string & > ViewBuildFunctor
TGeoManager * FWGeometryTableViewManager_GetGeoManager()
void beingDestroyed(const FWViewBase *iView)
~FWGeometryTableViewManager() override