DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep
Rev:Unversioneddirectory
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DDEve
include
DDEve
DD4hepMenu.h
Go to the documentation of this file.
1
// $Id: $
2
//==========================================================================
3
// AIDA Detector description implementation for LCD
4
//--------------------------------------------------------------------------
5
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6
// All rights reserved.
7
//
8
// For the licensing terms see $DD4hepINSTALL/LICENSE.
9
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10
//
11
// Author : M.Frank
12
//
13
//==========================================================================
14
#ifndef DD4HEP_DDEVE_DD4HEPMENU_H
15
#define DD4HEP_DDEVE_DD4HEPMENU_H
16
17
// Framework include files
18
#include "
DDEve/Display.h
"
19
#include "
DDEve/PopupMenu.h
"
20
21
// Forward declarations
22
class
TGMenuBar;
23
class
TGMenuEntry;
24
26
namespace
DD4hep {
27
28
// Forward declarations
29
class
View;
30
class
EventControl;
31
33
/*
34
* \author M.Frank
35
* \version 1.0
36
* \ingroup DD4HEP_EVE
37
*/
38
class
DD4hepMenu
:
public
PopupMenu
{
39
public
:
40
41
protected
:
43
Display
*
m_display
;
44
EventControl
*
m_evtCtrl
;
45
public
:
47
DD4hepMenu
(
Display
* eve);
49
virtual
~DD4hepMenu
();
50
52
virtual
void
Build
(TGMenuBar*
bar
,
int
hints=kLHintsNormal);
54
void
OnLoadXML
(TGMenuEntry* entry,
void
* ptr);
56
void
OnLoadRootGeometry
(TGMenuEntry* entry,
void
* ptr);
58
void
OnCreateEventIO
(TGMenuEntry* entry,
void
* ptr);
60
void
OnOpenEventData
(TGMenuEntry* entry,
void
* ptr);
62
void
OnNextEvent
(TGMenuEntry* entry,
void
* ptr);
64
void
OnPreviousEvent
(TGMenuEntry* entry,
void
* ptr);
66
void
OnExit
(TGMenuEntry* entry,
void
* ptr);
67
69
void
OnGeometryLoaded
();
71
ClassDef
(
DD4hepMenu
,0);
72
};
73
74
}
/* End namespace DD4hep */
75
76
77
#endif
/* DD4HEP_DDEVE_DD4HEPMENU_H */
78
PopupMenu.h
DD4hep::DD4hepMenu::~DD4hepMenu
virtual ~DD4hepMenu()
Default destructor.
Definition:
DD4hepMenu.cpp:52
DD4hep::DD4hepMenu::OnExit
void OnExit(TGMenuEntry *entry, void *ptr)
Callback when exiting the display.
Definition:
DD4hepMenu.cpp:139
DD4hep::DD4hepMenu::ClassDef
ClassDef(DD4hepMenu, 0)
ROOT implementation macro.
DD4hep::DD4hepMenu::OnPreviousEvent
void OnPreviousEvent(TGMenuEntry *entry, void *ptr)
Callback when loading the previous event.
Definition:
DD4hepMenu.cpp:134
DD4hep::DD4hepMenu
DD4hep Menu for the ROOT browser.
Definition:
DD4hepMenu.h:38
DD4hep::DD4hepMenu::DD4hepMenu
DD4hepMenu(Display *eve)
Standard constructor.
DD4hep::DD4hepMenu::Build
virtual void Build(TGMenuBar *bar, int hints=kLHintsNormal)
Add the menu to the menu bar.
Definition:
DD4hepMenu.cpp:58
DD4hep::DD4hepMenu::OnCreateEventIO
void OnCreateEventIO(TGMenuEntry *entry, void *ptr)
Callback to show the event I/O panel.
Definition:
DD4hepMenu.cpp:103
DD4hep::DD4hepMenu::OnOpenEventData
void OnOpenEventData(TGMenuEntry *entry, void *ptr)
Callback when loading a new event data file.
Definition:
DD4hepMenu.cpp:116
Display.h
DD4hep::DD4hepMenu::m_evtCtrl
EventControl * m_evtCtrl
Definition:
DD4hepMenu.h:44
DD4hep::PopupMenu
class PopupMenu PopupMenu.h DDEve/PopupMenu.h
Definition:
PopupMenu.h:37
DD4hep::DD4hepMenu::OnLoadXML
void OnLoadXML(TGMenuEntry *entry, void *ptr)
Callback when loading the configuration.
Definition:
DD4hepMenu.cpp:86
dd4hep::bar
static const double bar
Definition:
DD4hepUnits.h:180
DD4hep::EventControl
Definition:
EventControl.h:37
DD4hep::DD4hepMenu::OnGeometryLoaded
void OnGeometryLoaded()
Callback when the geometry was loaded.
Definition:
DD4hepMenu.cpp:76
DD4hep::DD4hepMenu::OnLoadRootGeometry
void OnLoadRootGeometry(TGMenuEntry *entry, void *ptr)
Callback when loading the configuration.
Definition:
DD4hepMenu.cpp:95
DD4hep::Display
The main class of the DDEve display.
Definition:
Display.h:57
DD4hep::DD4hepMenu::m_display
Display * m_display
Reference to display manager.
Definition:
DD4hepMenu.h:43
DD4hep::DD4hepMenu::OnNextEvent
void OnNextEvent(TGMenuEntry *entry, void *ptr)
Callback when loading the next event.
Definition:
DD4hepMenu.cpp:129
Generated on Fri Dec 2 2016 12:31:08 for DD4hep by
1.8.6