DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDEve
include
DDEve
ViewMenu.h
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
//
12
//==========================================================================
13
#ifndef DDEVE_VIEWMENU_H
14
#define DDEVE_VIEWMENU_H
15
16
// Framework include files
17
#include "
DDEve/Display.h
"
18
#include "
DDEve/PopupMenu.h
"
19
20
// Forward declarations
21
class
TGMenuBar;
22
class
TGMenuEntry;
23
25
namespace
dd4hep
{
26
27
// Forward declarations
28
class
View;
29
31
/*
32
* \author M.Frank
33
* \version 1.0
34
* \ingroup DD4HEP_EVE
35
*/
36
class
ViewMenu
:
public
PopupMenu
{
37
public
:
38
39
protected
:
41
Display
*
m_display
;
43
std::string
m_title
;
44
public
:
46
ViewMenu
(
Display
* eve,
const
std::string& title);
48
virtual
~ViewMenu
();
49
51
virtual
void
Build
(TGMenuBar* menuBar,
int
hints=kLHintsNormal)
override
;
52
54
void
BuildView
(
View
*view)
const
;
56
void
CreateView
(TGMenuEntry* e,
void
* ud);
57
59
View
*
CreateView
(
const
std::string& type,
const
std::string& title);
61
View
*
CreateView3D
(
const
std::string& title);
63
View
*
CreateRhoZProjection
(
const
std::string& title);
65
View
*
CreateRhoPhiProjection
(
const
std::string& title);
66
68
ClassDefOverride
(
ViewMenu
,0);
69
};
70
}
/* End namespace dd4hep */
71
#endif // DDEVE_VIEWMENU_H
72
dd4hep::Display
The main class of the DDEve display.
Definition:
Display.h:56
dd4hep::ViewMenu::m_title
std::string m_title
Menu title.
Definition:
ViewMenu.h:43
dd4hep::ViewMenu::m_display
Display * m_display
Reference to display manager.
Definition:
ViewMenu.h:41
dd4hep::ViewMenu::Build
virtual void Build(TGMenuBar *menuBar, int hints=kLHintsNormal) override
Add the menu to the menu bar.
Definition:
ViewMenu.cpp:54
dd4hep::ViewMenu::~ViewMenu
virtual ~ViewMenu()
Default destructor.
Definition:
ViewMenu.cpp:49
dd4hep::ViewMenu::CreateView3D
View * CreateView3D(const std::string &title)
Specialization: Create a new 3D view.
Definition:
ViewMenu.cpp:82
dd4hep::ViewMenu
class ViewMenu ViewMenu.h DDEve/ViewMenu.h
Definition:
ViewMenu.h:36
dd4hep::ViewMenu::ClassDefOverride
ClassDefOverride(ViewMenu, 0)
ROOT implementation macro.
dd4hep::ViewMenu::CreateRhoZProjection
View * CreateRhoZProjection(const std::string &title)
Specialization: Create a new R-Z view.
Definition:
ViewMenu.cpp:87
dd4hep::ViewMenu::CreateRhoPhiProjection
View * CreateRhoPhiProjection(const std::string &title)
Specialization: Create a new R-Phi view.
Definition:
ViewMenu.cpp:92
dd4hep::ViewMenu::CreateView
void CreateView(TGMenuEntry *e, void *ud)
Menu callback: Create a generic view using the user data.
Definition:
ViewMenu.cpp:69
Display.h
PopupMenu.h
dd4hep::ViewMenu::BuildView
void BuildView(View *view) const
Import Geometry data and build the view.
Definition:
ViewMenu.cpp:97
dd4hep::PopupMenu
class PopupMenu PopupMenu.h DDEve/PopupMenu.h
Definition:
PopupMenu.h:36
dd4hep::ViewMenu::ViewMenu
ViewMenu(Display *eve, const std::string &title)
Standard constructor.
dd4hep
Namespace for the AIDA detector description toolkit.
Definition:
AlignmentsCalib.h:28
dd4hep::View
class View View.h DDEve/View.h
Definition:
View.h:45
Generated on Tue Dec 10 2024 18:30:08 for DD4hep by
1.8.18