16#include "trg/cdc/DisplayHough.h"
26 TRGCDCDisplayHough::TRGCDCDisplayHough(
const std::string& name,
28 : TRGCDCDisplay(name, size, 10),
30 _adjustment(1., 1., 50.0, 0.1),
34 _w.set_size_request(size, size);
36 _scaler.set_update_policy(Gtk::UPDATE_CONTINUOUS);
37 _scaler.set_digits(3);
38 _scaler.set_value_pos(Gtk::POS_LEFT);
39 _scaler.set_draw_value();
40 _scaler.set_size_request(200, 30);
42 .signal_value_changed()
43 .connect(sigc::mem_fun(*
this,
44 & TRGCDCDisplayHough::on_scale_value_changed));
46 _bottom.pack_start(_scaler, Gtk::PACK_SHRINK, 5);
47 _bottom.pack_start(_buttonPositionReset, Gtk::PACK_EXPAND_WIDGET, 2);
48 _bottom.pack_start(_buttonWireName, Gtk::PACK_SHRINK, 2);
50 _box0.pack_start(_menuButtons, Gtk::PACK_SHRINK, 5);
51 _box0.pack_start(_label, Gtk::PACK_EXPAND_WIDGET, 5);
52 _box0.pack_start(_w, Gtk::PACK_EXPAND_WIDGET, 5);
53 _box0.pack_start(_bottom, Gtk::PACK_SHRINK, 5);
60 TRGCDCDisplayHough::~TRGCDCDisplayHough()
65 TRGCDCDisplayHough::on_scale_value_changed(
void)
67 const double val = scale();
69 cout <<
"TRGCDCDisplayHough ... scale value=" << val << endl;
70 _w.on_expose_event((GdkEventExpose*) NULL);
74 TRGCDCDisplayHough::on_positionReset(
void)
76 area().resetPosition();
77 const double val = _w.scale();
79 _w.on_expose_event((GdkEventExpose*) NULL);
Abstract base class for different kinds of events.