|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
49 TEveWindowSlot* new_slot;
53 TEveWindowPack *pack = ((TEveWindowSlot*)
slot)->MakePack();
54 pack->SetElementName(
m_name.c_str());
55 pack->SetHorizontal();
56 pack->SetShowTitleBar(kFALSE);
59 pack = pack->NewSlot()->MakePack();
60 pack->SetShowTitleBar(kFALSE);
64 _V::const_iterator icfg = view_cfg.find(
m_name);
65 if ( icfg != view_cfg.end() ) {
66 const _C& c = (*icfg).second.subdetectors;
67 for(_C::const_iterator i = c.begin(); i!=c.end();++i) {
72 if ( panels.size()>0) {
74 std::string typ =
"DD4hep_DDEve_"+cfg.
use;
75 v = PluginService::Create<View*>(typ.c_str(),
m_eve,cfg.
name.c_str());
78 v = PluginService::Create<View*>(
"DD4hep_DDEve_RhoZProjection",
m_eve,(
m_name+
" - RhoZ View").c_str());
80 (new_slot = pack->NewSlot())->MakeCurrent();
84 if ( panels.size()>1) {
86 std::string typ =
"DD4hep_DDEve_"+cfg.
use;
87 v = PluginService::Create<View*>(typ.c_str(),
m_eve,cfg.
name.c_str());
90 v = PluginService::Create<View*>(
"DD4hep_DDEve_RhoPhiProjection",
m_eve,(
m_name+
" - RPhi View").c_str());
92 (new_slot = pack->NewSlot())->MakeCurrent();
The main class of the DDEve display.
#define DECLARE_VIEW_FACTORY(x)
class MultiView MultiView.h DDEve/MultiView.h
virtual View & Map(TEveWindow *slot)
Map the view view to the slot.
virtual View & Build(TEveWindow *slot)
Build the view view and map it to the given slot.
virtual void ConfigureGeometryFromInfo()
Configure a view with geo info. Used configuration if present.
std::map< std::string, ViewConfig > ViewConfigurations
const ViewConfigurations & viewConfigurations() const
Access View configurations.
View TEveWindowSlot * slot
virtual View & Build(TEveWindow *slot) override
Build the 3d view and map it to the given slot.
virtual void ConfigureEventFromInfo()
Configure a view with event info. Used configuration if present.
Container with full display configuration.
virtual ~MultiView()
Default destructor.
virtual View & CreateScenes()
Create the geometry and the event scene.
std::string m_name
The name of the view.
Namespace for the AIDA detector description toolkit.
virtual void Initialize()
Initialize the view port.
class View View.h DDEve/View.h
ClassImp(MultiView) static void _build(Display *display
Import Geometry data.
MultiView(Display *eve, const std::string &name)
Initializing constructor.
virtual void RegisterEvents(View *view)
Register to the main event scene on new events.
std::vector< Config > Configurations