15#ifndef TRGCDCDisplay_FLAG_
16#define TRGCDCDisplay_FLAG_
20#ifdef TRGCDC_SHORT_NAMES
21#define TCDisplay TRGCDCDisplay
29 class TRGCDCDisplayDrawingArea;
30 class TRGCDCDisplayRphi;
31 class TRGCDCDisplayHough;
42 class TRGCDCDisplay :
public Gtk::Window {
47 TRGCDCDisplay(
const std::string& name,
52 virtual ~TRGCDCDisplay();
60 virtual void clear(
void);
63 void beginningOfEvent(
void);
66 void endOfEvent(
void);
69 bool skip(
void)
const;
75 bool wireName(
void)
const;
83 void stage(
const std::string& stage);
86 void information(
const std::string& information);
91 virtual TRGCDCDisplayDrawingArea& area(
void) = 0;
94 void link(TRGCDCDisplayRphi&);
97 TRGCDCDisplayRphi* rphi(
void);
102 virtual void on_next(
void);
105 virtual void on_endOfEvent(
void);
108 virtual void on_nextEvent(
void);
111 virtual void on_nonStop(
void);
114 virtual void on_positionReset(
void);
117 virtual void on_wireName(
void);
131 static bool _endOfEvent;
134 static bool _endOfEventFlag;
137 static bool _skipEvent;
140 static bool _nonStop;
154 Gtk::HBox _menuButtons;
157 Gtk::Button _buttonNext;
160 Gtk::Button _buttonEndOfEvent;
163 Gtk::Button _buttonNextEvent;
166 Gtk::Button _buttonNonStop;
175 Gtk::Button _buttonPositionReset;
178 Gtk::CheckButton _buttonWireName;
181 friend class TRGCDCDisplayRphi;
184 friend class TRGCDCDisplayHough;
187 TRGCDCDisplayRphi* _rphi;
194 TRGCDCDisplay::stage(
const std::string& a)
197 Glib::ustring s =
"Stage : " + _stage +
"\nInformation : " + _info;
203 TRGCDCDisplay::information(
const std::string& a)
207 Glib::ustring s =
"Stage : " + _stage +
"\nInformation : " + _info;
213 TRGCDCDisplay::skip(
void)
const
220 TRGCDCDisplay::skip(
bool a)
227 TRGCDCDisplay::wireName(
void)
const
234 TRGCDCDisplay::beginningOfEvent(
void)
242 TRGCDCDisplay::endOfEvent(
void)
249 TRGCDCDisplay::link(TRGCDCDisplayRphi& a)
256 TRGCDCDisplay::rphi(
void)
Abstract base class for different kinds of events.