DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
View3D.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 // Original Author: Matevz Tadel 2009 (MultiView.C)
12 //
13 //==========================================================================
14 
15 // Framework include files
16 #include <DDEve/View3D.h>
17 #include <DDEve/Factories.h>
18 
19 using namespace dd4hep;
20 
23 
24 View3D::View3D(Display* eve, const std::string& nam) : View(eve, nam)
26 {
27 }
28 
30 View3D::~View3D() {
31 }
32 
34 View& View3D::Build(TEveWindow* slot) {
35  return CreateScenes().Map(slot);
36 }
dd4hep::Display
The main class of the DDEve display.
Definition: Display.h:56
DECLARE_VIEW_FACTORY
#define DECLARE_VIEW_FACTORY(x)
Definition: Factories.h:30
dd4hep::View::Map
virtual View & Map(TEveWindow *slot)
Map the view view to the slot.
Definition: View.cpp:334
ClassImp
ClassImp(View3D) View3D
Initializing constructor.
Definition: View3D.cpp:21
Factories.h
slot
View TEveWindowSlot * slot
Definition: MultiView.cpp:28
dd4hep::View3D::Build
virtual View & Build(TEveWindow *slot) override
Build the 3d view and map it to the given slot.
Definition: View3D.cpp:34
dd4hep::View::CreateScenes
virtual View & CreateScenes()
Create the geometry and the event scene.
Definition: View.cpp:306
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::View3D::View3D
View3D(Display *eve, const std::string &name)
Initializing constructor.
dd4hep::View
class View View.h DDEve/View.h
Definition: View.h:45
dd4hep::View3D
class View3D View3D.h DDEve/View3D.h
Definition: View3D.h:30
View3D.h