An event display window.
More...
#include <DisplayWindow.h>
An event display window.
Definition at line 33 of file DisplayWindow.h.
evdb::DisplayWindow::DisplayWindow |
( |
int |
window = 0 | ) |
|
Definition at line 142 of file DisplayWindow.cxx.
146 <<
" cannot open DisplayWindow";
148 throw cet::exception(
"DisplayWindow") <<
"No ROOT global TClient";
150 const TGWindow* tgw = gClient->GetRoot();
159 fMain =
new TGMainFrame(tgw, w-1, h-1);
170 fMain->MapSubwindows();
180 fMain->Connect(
"CloseWindow()",
"evdb::DisplayWindow",
this,
"CloseWindow()");
MenuBar * fMenuBar
Top menu bar.
void Connect()
Make signal/slot connections.
static std::vector< DisplayWindow * > gsWindows(64)
ButtonBar * fButtonBar
Top button bar.
static std::vector< unsigned int > gsWidth
static std::vector< CanvasCreator_t > gsCanvasCreator
StatusBar * fStatusBar
Status bar running along the bottom.
Canvas * fDisplay
Display of detector event information.
static std::vector< std::string > gsName
TGMainFrame * fMain
Main window.
cet::coded_exception< error, detail::translate > exception
static std::vector< unsigned int > gsHeight
h
training ###############################
evdb::DisplayWindow::~DisplayWindow |
( |
| ) |
|
|
virtual |
Definition at line 196 of file DisplayWindow.cxx.
203 for (
unsigned int i=0; i<
gsWindows.size(); ++i) {
MenuBar * fMenuBar
Top menu bar.
static std::vector< DisplayWindow * > gsWindows(64)
ButtonBar * fButtonBar
Top button bar.
StatusBar * fStatusBar
Status bar running along the bottom.
Canvas * fDisplay
Display of detector event information.
TGMainFrame * fMain
Main window.
void evdb::DisplayWindow::CloseWindow |
( |
| ) |
|
|
virtual |
void evdb::DisplayWindow::Draw |
( |
const char * |
opt = "" | ) |
|
|
virtual |
Definition at line 188 of file DisplayWindow.cxx.
Canvas * fDisplay
Display of detector event information.
virtual void Draw(const char *opt=0)=0
void evdb::DisplayWindow::DrawAll |
( |
const char * |
opt = 0 | ) |
|
|
static |
Definition at line 57 of file DisplayWindow.cxx.
59 for (
size_t i=0; i<
gsWindows.size(); ++i) {
static std::vector< DisplayWindow * > gsWindows(64)
int evdb::DisplayWindow::OpenWindow |
( |
int |
type = 0 | ) |
|
|
static |
Create a window given a system-assigned ID number
Definition at line 116 of file DisplayWindow.cxx.
120 if (
id>=
gsName.size())
return 0;
const art::Event * GetEvent() const
static std::vector< DisplayWindow * > gsWindows(64)
static EventHolder * Instance()
static std::vector< std::string > gsName
EventNumber_t event() const
DisplayWindow(int window=0)
void evdb::DisplayWindow::Raise |
( |
| ) |
|
void evdb::DisplayWindow::Register |
( |
const char * |
name, |
|
|
const char * |
description, |
|
|
unsigned int |
h, |
|
|
unsigned int |
w, |
|
|
CanvasCreator_t |
creator |
|
) |
| |
|
static |
Register a display canvas for use in creating windows
Definition at line 96 of file DisplayWindow.cxx.
static std::vector< DisplayWindow * > gsWindows(64)
static std::vector< unsigned int > gsWidth
static std::vector< CanvasCreator_t > gsCanvasCreator
static std::vector< std::string > gsName
static std::vector< std::string > gsDescription
static std::vector< unsigned int > gsHeight
h
training ###############################
void evdb::DisplayWindow::SetRunEvent |
( |
int |
run, |
|
|
int |
event |
|
) |
| |
Definition at line 66 of file DisplayWindow.cxx.
ButtonBar * fButtonBar
Top button bar.
Event finding and building.
void evdb::DisplayWindow::SetRunEventAll |
( |
int |
run, |
|
|
int |
event |
|
) |
| |
|
static |
Definition at line 48 of file DisplayWindow.cxx.
50 for (
size_t i=0; i<
gsWindows.size(); ++i) {
static std::vector< DisplayWindow * > gsWindows(64)
Event finding and building.
void evdb::DisplayWindow::SetServices |
( |
| ) |
|
void evdb::DisplayWindow::SetServicesAll |
( |
| ) |
|
|
static |
Definition at line 73 of file DisplayWindow.cxx.
75 for (
size_t i=0; i<
gsWindows.size(); ++i) {
static std::vector< DisplayWindow * > gsWindows(64)
Canvas* evdb::DisplayWindow::fDisplay |
|
private |
Display of detector event information.
Definition at line 63 of file DisplayWindow.h.
TGMainFrame* evdb::DisplayWindow::fMain |
|
private |
MenuBar* evdb::DisplayWindow::fMenuBar |
|
private |
The documentation for this class was generated from the following files: