JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RGHistoWindow.hh>
Public Member Functions | |
RGHistoWindow (const TGWindow *main=NULL, TH1 *hptr=NULL, const string plot_opt="", const UInt_t opts=0, const bool construct=true, const bool autostart=true) | |
RGHistoWindow (const RGHistoWindow &original) | |
RGHistoWindow & | operator= (const RGHistoWindow &original) |
virtual | ~RGHistoWindow () |
virtual void | Construct () |
virtual void | ConstructLimits () |
virtual void | MapSubwindows () |
virtual void | RemapToolsFrame () |
virtual void | UpdateWindowTitle () |
virtual void | Request () |
virtual void | Quit () |
TGCompositeFrame * | GetUpperFrame () |
TGHorizontalFrame * | GetMiddleFrame () |
TGCompositeFrame * | GetMiddleLeftFrame () |
TGHorizontalFrame * | GetCenterFrame () |
TGCompositeFrame * | GetUpperCanvasFrame () |
TGVerticalFrame * | GetCanvasFrame () |
TGCompositeFrame * | GetMiddleRightFrame () |
TGCompositeFrame * | GetLowerFrame () |
TGVerticalFrame * | GetToolsFrame () |
TGCompositeFrame * | GetUpperToolsFrame () |
virtual void | PadEvent (Int_t event, Int_t x, Int_t y, TObject *selected) |
virtual void | SetPositionNul () |
virtual void | SetPositionHisto (const Double_t xh, const Double_t yh) |
virtual void | SetPositionXAxis (const Double_t xh) |
virtual void | SetPositionYAxis (const Double_t yh) |
virtual void | SetPositionZAxis (const Double_t zh) |
virtual void | XAxisChanged () |
virtual void | YAxisChanged () |
virtual void | ZAxisChanged () |
virtual void | ArrowKeyLeft () |
virtual void | ArrowKeyRight () |
virtual void | ArrowKeyUp () |
virtual void | ArrowKeyDown () |
virtual void | ZoomInKey () |
virtual void | ZoomOutKey () |
virtual void | Reset () |
virtual Int_t | SetHisto (TH1 *hptr, const bool reset=false) |
virtual Int_t | SetHisto (TH1 *hptr, const bool reset, const bool redraw) |
virtual void | Redraw () |
virtual void | PlotHisto () |
virtual void | UpdateLimits () |
virtual bool | SetXLog (const Bool_t b=kTRUE) |
virtual bool | SetYLog (const Bool_t b=kTRUE) |
virtual bool | SetZLog (const Bool_t b=kTRUE) |
virtual void | SetXFull (const Bool_t redraw) |
virtual void | SetYFull (const Bool_t redraw) |
virtual void | SetZFull (const Bool_t redraw) |
virtual void | SetXFull () |
virtual void | SetYFull () |
virtual void | SetZFull () |
virtual void | LogXToggled (Bool_t b) |
virtual void | LogYToggled (Bool_t b) |
virtual void | LogZToggled (Bool_t b) |
virtual void | XValueChanged () |
virtual void | YValueChanged () |
virtual void | ZValueChanged () |
virtual void | XFullButtonClicked () |
virtual void | YFullButtonClicked () |
virtual void | ZFullButtonClicked () |
virtual void | UnzoomButtonClicked () |
virtual void | AutoButtonClicked () |
virtual void | AnglesChanged () |
ClassDef (RGHistoWindow, 0) | |
![]() | |
RGFrameEvent (TVirtualPad *pad=gPad) | |
RGFrameEvent (const RGFrameEvent &original) | |
RGFrameEvent & | operator= (const RGFrameEvent &original) |
virtual | ~RGFrameEvent () |
virtual void | PadClosed () |
virtual void | KeyPressed (const Int_t x, const Int_t y) |
virtual void | AltKeyPressed () |
virtual void | CtrlKeyPressed () |
virtual void | ShiftKeyPressed () |
virtual void | ReturnKeyPressed () |
virtual void | MouseButton1Up (const Double_t x, const Double_t y) |
virtual void | MouseButton1Down (const Double_t x, const Double_t y) |
virtual void | MouseButton1Double (const Double_t x, const Double_t y) |
virtual void | MouseButton1Locate (const Double_t x, const Double_t y) |
virtual void | MouseButton1Motion (const Double_t x, const Double_t y) |
virtual void | MouseButton2Up (const Double_t x, const Double_t y) |
virtual void | MouseButton2Down (const Double_t x, const Double_t y) |
virtual void | MouseButton2Double (const Double_t x, const Double_t y) |
virtual void | MouseButton2Locate (const Double_t x, const Double_t y) |
virtual void | MouseButton2Motion (const Double_t x, const Double_t y) |
virtual void | MouseButton3Up (const Double_t x, const Double_t y) |
virtual void | MouseButton3Down (const Double_t x, const Double_t y) |
virtual void | MouseButton3Double (const Double_t x, const Double_t y) |
virtual void | MouseButton3Locate (const Double_t x, const Double_t y) |
virtual void | MouseButton3Motion (const Double_t x, const Double_t y) |
virtual void | Locate (const Double_t x, const Double_t y) |
virtual void | AnyEvent (const Double_t x, const Double_t y) |
ClassDef (RGFrameEvent, 0) | |
![]() | |
RGHistoLimits (TH1 *hptr=NULL) | |
RGHistoLimits (const RGHistoLimits &original) | |
RGHistoLimits & | operator= (const RGHistoLimits &original) |
virtual void | Affect (const RGHistoLimits &original) |
virtual | ~RGHistoLimits () |
virtual bool | IsDataSet () const |
virtual void | Unzoom () |
ClassDef (RGHistoLimits, 0) | |
Static Public Attributes | |
static UInt_t | canvas_width = 600 |
Default canvas width. | |
static UInt_t | canvas_height = 900 |
Default canvas height. | |
Protected Member Functions | |
void | ClassInit () |
![]() | |
virtual void | Set1DHisto (const TH1 *hptr) |
virtual void | Set2DHisto (const TH1 *hptr) |
virtual void | Set3DHisto (const TH1 *hptr) |
Protected Attributes | |
UInt_t | options |
Window options. | |
bool | limits_widgets |
Flag indicating if histogram limits widgets are created. | |
TCanvas * | canvas_ptr |
Canvas pointer. | |
TH1 * | histo_ptr |
Histogram pointer. | |
bool | histo_copy |
Flag if the class works with a copy of the histogram. | |
string | plot_mode |
ROOT options for histogram display. | |
bool | inhibit_slot |
Prevents recursive calls. | |
TRootEmbeddedCanvas * | w_canvas |
Pointer to embedded canvas. | |
TGCompositeFrame * | w_upper_frame |
Upper base frame. | |
TGHorizontalFrame * | w_middle_frame |
Middle base frame. | |
TGCompositeFrame * | w_middle_left_frame |
Middle left frame. | |
TGHorizontalFrame * | w_center_frame |
Middle center frame. | |
TGCompositeFrame * | w_upper_canvas_frame |
Base frame on top of pad. | |
TGCompositeFrame * | w_middle_right_frame |
Middle right frame. | |
TGCompositeFrame * | w_lower_frame |
Lower base frame. | |
TGVerticalFrame * | w_canvas_frame |
Canvas frame. | |
TGVSplitter * | w_splitter |
Frames separator. | |
TGVerticalFrame * | w_tools_frame |
Tools frame. | |
TGLabel * | w_position_line |
Position information line. | |
TGCompositeFrame * | w_upper_tools_frame |
Upper frame for additionnal widgets. | |
TGGroupFrame * | w_limits_frame |
Frame for plot limits. | |
TGHorizontalFrame * | w_axis_frame |
Sous-cadre des axes. | |
TGVerticalFrame * | w_axis_name_frame |
Cadre labels des axes. | |
TGLabel * | w_x_label |
Labels. | |
TGLabel * | w_y_label |
Labels. | |
TGLabel * | w_z_label |
Labels. | |
TGVerticalFrame * | w_axis_log_frame |
Cadre boutons échelle log. | |
TGCheckButton * | w_x_log_button |
Bouton échelle log. | |
TGCheckButton * | w_y_log_button |
Bouton échelle log. | |
TGCheckButton * | w_z_log_button |
Bouton échelle log. | |
TGVerticalFrame * | w_axis_min_label |
Cadre labels valeurs min. | |
TGLabel * | w_min_label [3] |
Labels. | |
TGVerticalFrame * | w_axis_min_value |
Cadre valeurs min. | |
TGNumberEntry * | w_x_min_entry |
Saisie valeur mini. | |
TGNumberEntry * | w_y_min_entry |
Saisie valeur mini. | |
TGNumberEntry * | w_z_min_entry |
Saisie valeur mini. | |
TGVerticalFrame * | w_axis_max_label |
Cadre labels valeurs max. | |
TGLabel * | w_max_label [3] |
Labels. | |
TGVerticalFrame * | w_axis_max_value |
Cadre valeurs min. | |
TGNumberEntry * | w_x_max_entry |
Saisie valeur maxi. | |
TGNumberEntry * | w_y_max_entry |
Saisie valeur maxi. | |
TGNumberEntry * | w_z_max_entry |
Saisie valeur maxi. | |
TGVerticalFrame * | w_axis_full_frame |
Cadre boutons pleine échelle. | |
TGTextButton * | w_x_full_button |
Bouton pleine échelle. | |
TGTextButton * | w_y_full_button |
Bouton pleine échelle. | |
TGTextButton * | w_z_full_button |
Bouton pleine échelle. | |
TGVerticalFrame * | w_zoom_frame |
Cadre boutons zoom. | |
TGTextButton * | w_unzoom_button |
Bouton unzoom. | |
TGTextButton * | w_auto_button |
Bouton échelle automatique. | |
TGHorizontalFrame * | w_angles_frame |
Cadre des angles. | |
TGNumberEntry * | w_theta_entry |
Saisie de l'angle. | |
TGNumberEntry * | w_phi_entry |
Saisie de l'angle. | |
![]() | |
TVirtualPad * | pad_ptr |
Pointer to pad where events are processed. | |
![]() | |
Int_t | dimension |
Histogram dimension. | |
Double_t | lim_x_min |
Axis lower limit. | |
Double_t | lim_x_max |
Axis upper limit. | |
Double_t | lim_y_min |
Axis lower limit. | |
Double_t | lim_y_max |
Axis upper limit. | |
Double_t | lim_z_min |
Axis lower limit. | |
Double_t | lim_z_max |
Axis upper limit. | |
Double_t | log_x_min |
Lower limit for log scale. | |
Double_t | log_y_min |
Lower limit for log scale. | |
Double_t | log_z_min |
Lower limit for log scale. | |
bool | allow_x_log |
Test if log scale allowed. | |
bool | allow_y_log |
Test if log scale allowed. | |
bool | allow_z_log |
Test if log scale allowed. | |
Double_t | x_min |
Current display lower bound. | |
Double_t | x_max |
Current display upper bound. | |
Double_t | y_min |
Current display lower bound. | |
Double_t | y_max |
Current display upper bound. | |
Double_t | z_min |
Current display lower bound. | |
Double_t | z_max |
Current display upper bound. | |
bool | x_log |
Log scale status. | |
bool | y_log |
Log scale status. | |
bool | z_log |
Log scale status. | |
Private Member Functions | |
GObject (RGHistoWindow) | |
class RGHistoWindow
This class defines a window with a plotting zone (canvas) to display an histogram, and some widgets zone. Its purpose is to display a single histogram for specific purpose (the pad should not be divided).
The following options are defined:
When cursor in on the plotting area, the histogram display can be moved with keyboard arrow keys. The + and - keys are for zoom in and out.
The (default) interface looks like:
The display limits can also be placed below the plot canvas (the optional area on the right can be used for additional GUI elements - see below):
It also defines various frames in order to add new elements to the graphical interface. The positions of the empty frames are shown here, together with the (non empty) class frames where new elements can be added:
RGHistoWindow::RGHistoWindow | ( | const TGWindow * | main = NULL , |
TH1 * | hptr = NULL , |
||
const string | plot_opt = "" , |
||
const UInt_t | opts = 0 , |
||
const bool | construct = true , |
||
const bool | autostart = true |
||
) |
Constructor.
main | main application window |
hptr | pointer to displayed histogram |
plot_opt | ROOT draw options |
opts | window options |
construct | flag for interface construction |
autostart | flag for request start (if construction is true) |
References ClassInit(), Construct(), options, plot_mode, Request(), and SetHisto().
RGHistoWindow::RGHistoWindow | ( | const RGHistoWindow & | original | ) |
|
virtual |
Destructor.
References histo_copy, histo_ptr, and RGFrameEvent::pad_ptr.
|
private |
Macro from GCpp library that defines the following functions:
RGHistoWindow & RGHistoWindow::operator= | ( | const RGHistoWindow & | original | ) |
Affectation operator (non implémenté).
original | object to copy |
References RGFrameEvent::pad_ptr.
|
protected |
Initialisation function, called by constructor.
References canvas_ptr, histo_copy, histo_ptr, inhibit_slot, limits_widgets, options, RGFrameEvent::pad_ptr, plot_mode, w_angles_frame, w_auto_button, w_axis_frame, w_axis_full_frame, w_axis_log_frame, w_axis_max_label, w_axis_max_value, w_axis_min_label, w_axis_min_value, w_axis_name_frame, w_canvas, w_canvas_frame, w_center_frame, w_limits_frame, w_lower_frame, w_max_label, w_middle_frame, w_middle_left_frame, w_middle_right_frame, w_min_label, w_phi_entry, w_position_line, w_splitter, w_theta_entry, w_tools_frame, w_unzoom_button, w_upper_canvas_frame, w_upper_frame, w_upper_tools_frame, w_x_full_button, w_x_label, w_x_log_button, w_x_max_entry, w_x_min_entry, w_y_full_button, w_y_label, w_y_log_button, w_y_max_entry, w_y_min_entry, w_z_full_button, w_z_label, w_z_log_button, w_z_max_entry, w_z_min_entry, and w_zoom_frame.
Referenced by RGHistoWindow().
|
virtual |
Graphical interface construction main function.
Reimplemented in RGFitBase2D, RGFitBase1D, and RGHistoTools.
References canvas_height, canvas_ptr, canvas_width, ConstructLimits(), inhibit_slot, limits_widgets, options, RGFrameEvent::pad_ptr, SetPositionNul(), w_canvas, w_canvas_frame, w_center_frame, w_lower_frame, w_middle_frame, w_middle_left_frame, w_middle_right_frame, w_position_line, w_splitter, w_tools_frame, w_upper_canvas_frame, w_upper_frame, and w_upper_tools_frame.
Referenced by RGHistoTools::Construct(), and RGHistoWindow().
|
virtual |
Plot limits interface construction.
Reimplemented in RGFitBase2D, and RGFitBase1D.
References limits_widgets, options, rDico, RDico::rghw_angles_phi_txt, RDico::rghw_angles_theta_txt, RDico::rghw_limits_auto, RDico::rghw_limits_auto_tip, RDico::rghw_limits_full, RDico::rghw_limits_full_tip, RDico::rghw_limits_group, RDico::rghw_limits_log, RDico::rghw_limits_log_tip, RDico::rghw_limits_max, RDico::rghw_limits_max_tip, RDico::rghw_limits_min, RDico::rghw_limits_min_tip, RDico::rghw_limits_unzoom, RDico::rghw_limits_unzoom_tip, w_angles_frame, w_auto_button, w_axis_frame, w_axis_full_frame, w_axis_log_frame, w_axis_max_label, w_axis_max_value, w_axis_min_label, w_axis_min_value, w_axis_name_frame, w_canvas_frame, w_limits_frame, w_max_label, w_min_label, w_phi_entry, w_theta_entry, w_tools_frame, w_unzoom_button, w_x_full_button, w_x_label, w_x_log_button, w_x_max_entry, w_x_min_entry, w_y_full_button, w_y_label, w_y_log_button, w_y_max_entry, w_y_min_entry, w_z_full_button, w_z_label, w_z_log_button, w_z_max_entry, w_z_min_entry, and w_zoom_frame.
Referenced by Construct().
|
virtual |
Overload of TGTransientFrame function, to display widgets according to histogram dimension.
Reimplemented in RGHistoTools.
References RemapToolsFrame().
Referenced by RGHistoTools::MapSubwindows(), RGFitDecay::Request(), RGFitGaus2D::Request(), RGFitPeak::Request(), and Request().
|
virtual |
Display widgets according to histogram type (dimension).
Reimplemented in RGHistoTools.
References RGHistoLimits::dimension, limits_widgets, RGFrameEvent::pad_ptr, w_angles_frame, w_axis_full_frame, w_axis_log_frame, w_axis_max_label, w_axis_max_value, w_axis_min_label, w_axis_min_value, w_axis_name_frame, w_center_frame, w_limits_frame, w_max_label, w_middle_frame, w_min_label, w_phi_entry, w_theta_entry, w_tools_frame, w_z_full_button, w_z_label, w_z_log_button, w_z_max_entry, and w_z_min_entry.
Referenced by MapSubwindows(), RGHistoTools::RemapToolsFrame(), and SetHisto().
|
virtual |
Update window title from histogram name.
Reimplemented in RGHistoTools.
References histo_ptr, rDico, RDico::rghw_title, and RDico::rghw_unnamed_histo.
Referenced by Request(), and SetHisto().
|
virtual |
Start the request.
Reimplemented in RGFitBase2D, RGFitBase1D, RGFitPeak, RGFitGaus2D, and RGFitDecay.
References canvas_width, MapSubwindows(), Redraw(), UpdateLimits(), UpdateWindowTitle(), and w_canvas_frame.
Referenced by RGHistoTools::RGHistoTools(), and RGHistoWindow().
|
virtual |
Function called to close the request.
Reimplemented in RGFitBase2D, and RGFitBase1D.
Referenced by RGHistoTools::MenuActivated().
|
inline |
Get pointer on a frame that can include new widgets.
References w_upper_frame.
|
inline |
Get pointer on a frame that can include new widgets.
References w_middle_frame.
|
inline |
Get pointer on a frame that can include new widgets.
References w_middle_left_frame.
|
inline |
Get pointer on a frame that can include new widgets.
References w_center_frame.
|
inline |
Get pointer on a frame that can include new widgets.
References w_upper_canvas_frame.
|
inline |
Get pointer on a frame that can include new widgets.
References w_canvas_frame.
|
inline |
Get pointer on a frame that can include new widgets.
References w_middle_right_frame.
|
inline |
Get pointer on a frame that can include new widgets.
References w_lower_frame.
|
inline |
Get pointer on a frame that can include new widgets.
References w_tools_frame.
|
inline |
Get pointer on a frame that can include new widgets.
References w_upper_tools_frame.
|
virtual |
Process events in the pad. It is overloaded from RGFrameEvent class to process events depending on the type of ROOT objects (axis, histogram, ...).
event | event information (type) |
x | X position information |
y | Y position information |
selected | pointer to selected object |
Reimplemented from RGFrameEvent.
References RGFrameEvent::AltKeyPressed(), RGFrameEvent::AnyEvent(), ArrowKeyDown(), ArrowKeyLeft(), ArrowKeyRight(), ArrowKeyUp(), canvas_ptr, RGFrameEvent::CtrlKeyPressed(), RGHistoLimits::dimension, histo_ptr, RGFrameEvent::KeyPressed(), RGFrameEvent::Locate(), RGFrameEvent::MouseButton1Double(), RGFrameEvent::MouseButton1Down(), RGFrameEvent::MouseButton1Locate(), RGFrameEvent::MouseButton1Motion(), RGFrameEvent::MouseButton1Up(), RGFrameEvent::MouseButton2Double(), RGFrameEvent::MouseButton2Down(), RGFrameEvent::MouseButton2Locate(), RGFrameEvent::MouseButton2Motion(), RGFrameEvent::MouseButton2Up(), RGFrameEvent::MouseButton3Double(), RGFrameEvent::MouseButton3Down(), RGFrameEvent::MouseButton3Locate(), RGFrameEvent::MouseButton3Motion(), RGFrameEvent::MouseButton3Up(), RGFrameEvent::pad_ptr, RGFrameEvent::ReturnKeyPressed(), SetPositionHisto(), SetPositionNul(), SetPositionXAxis(), SetPositionYAxis(), SetPositionZAxis(), RGFrameEvent::ShiftKeyPressed(), w_phi_entry, w_theta_entry, RGHistoLimits::x_log, RGHistoLimits::x_max, RGHistoLimits::x_min, XAxisChanged(), RGHistoLimits::y_log, RGHistoLimits::y_max, RGHistoLimits::y_min, YAxisChanged(), RGHistoLimits::z_log, RGHistoLimits::z_max, RGHistoLimits::z_min, ZAxisChanged(), ZoomInKey(), and ZoomOutKey().
|
virtual |
Set default position display (undefined).
References w_position_line.
Referenced by Construct(), PadEvent(), and SetPositionHisto().
|
virtual |
Set position display in histogram zone.
xh | coordinate in histogram reference frame |
yh | coordinate in histogram reference frame |
References RGHistoLimits::dimension, histo_ptr, SetPositionNul(), and w_position_line.
Referenced by PadEvent().
|
virtual |
Set position display for X axis.
xh | axis coordinate in histogram reference frame |
References histo_ptr, and w_position_line.
Referenced by PadEvent().
|
virtual |
Set position display for Y axis.
yh | axis coordinate in histogram reference frame |
References histo_ptr, and w_position_line.
Referenced by PadEvent().
|
virtual |
Set position display for Z axis.
zh | axis coordinate in histogram reference frame |
References histo_ptr, and w_position_line.
Referenced by PadEvent().
|
virtual |
Slot called when axis boundaries are modified in the pad.
References UpdateLimits().
Referenced by PadEvent().
|
virtual |
Slot called when axis boundaries are modified in the pad.
References UpdateLimits().
Referenced by PadEvent().
|
virtual |
Slot called when axis boundaries are modified in the pad.
References UpdateLimits().
Referenced by PadEvent().
|
virtual |
Slot called when arrow key (move display) is pressed.
References RGHistoLimits::lim_x_max, RGHistoLimits::lim_x_min, RGHistoLimits::log_x_min, Redraw(), RGHistoLimits::x_log, RGHistoLimits::x_max, and RGHistoLimits::x_min.
Referenced by PadEvent().
|
virtual |
Slot called when arrow key (move display) is pressed.
References RGHistoLimits::lim_x_max, RGHistoLimits::lim_x_min, RGHistoLimits::log_x_min, Redraw(), RGHistoLimits::x_log, RGHistoLimits::x_max, and RGHistoLimits::x_min.
Referenced by PadEvent().
|
virtual |
Slot called when arrow key (move display) is pressed.
References RGHistoLimits::dimension, RGHistoLimits::lim_y_max, RGHistoLimits::lim_y_min, RGHistoLimits::log_y_min, Redraw(), RGHistoLimits::y_log, RGHistoLimits::y_max, and RGHistoLimits::y_min.
Referenced by PadEvent().
|
virtual |
Slot called when arrow key (move display) is pressed.
References RGHistoLimits::dimension, RGHistoLimits::lim_y_max, RGHistoLimits::lim_y_min, RGHistoLimits::log_y_min, Redraw(), RGHistoLimits::y_log, RGHistoLimits::y_max, and RGHistoLimits::y_min.
Referenced by PadEvent().
|
virtual |
Slot called when zoom key is pressed.
References RGHistoLimits::dimension, RGHistoLimits::lim_x_max, RGHistoLimits::lim_x_min, RGHistoLimits::lim_y_max, RGHistoLimits::lim_y_min, RGHistoLimits::lim_z_max, RGHistoLimits::lim_z_min, RGHistoLimits::log_x_min, RGHistoLimits::log_y_min, RGHistoLimits::log_z_min, Redraw(), RGHistoLimits::x_log, RGHistoLimits::x_max, RGHistoLimits::x_min, RGHistoLimits::y_log, RGHistoLimits::y_max, RGHistoLimits::y_min, RGHistoLimits::z_log, RGHistoLimits::z_max, and RGHistoLimits::z_min.
Referenced by PadEvent().
|
virtual |
Slot called when zoom key is pressed.
References RGHistoLimits::dimension, RGHistoLimits::lim_x_max, RGHistoLimits::lim_x_min, RGHistoLimits::lim_y_max, RGHistoLimits::lim_y_min, RGHistoLimits::lim_z_max, RGHistoLimits::lim_z_min, RGHistoLimits::log_x_min, RGHistoLimits::log_y_min, RGHistoLimits::log_z_min, Redraw(), RGHistoLimits::x_log, RGHistoLimits::x_max, RGHistoLimits::x_min, RGHistoLimits::y_log, RGHistoLimits::y_max, RGHistoLimits::y_min, RGHistoLimits::z_log, RGHistoLimits::z_max, and RGHistoLimits::z_min.
Referenced by PadEvent().
|
virtual |
Initializes all data, histogram pointer,...
Reimplemented from RGHistoLimits.
References histo_copy, histo_ptr, Redraw(), RGHistoLimits::Reset(), and UpdateLimits().
Referenced by RGHistoTools::Clear(), and SetHisto().
|
inlinevirtual |
Redefinition of RGHistoLimits function, to avoid compilation warning due to -Woverloaded-virtual option.
hptr | histogram pointer |
reset | reset in case of problem |
Reimplemented from RGHistoLimits.
Referenced by RGFitBase1D::Construct(), RGFitBase2D::Construct(), RGHistoWindow(), and RGHistoTools::SetHisto().
|
virtual |
Set the histogram for the window. If option rghwCopyHisto is set, the histogram is dupplicated. The function returns 0 if no error occured, 1 for NULL pointer, 2 for bad dimension, 3 if histogram dimension does not fit selected options.
hptr | histogram pointer |
reset | initialize in case of problem |
redraw | flag indicating if histogram must be redrawn (this could be managed by a derived class) |
References histo_copy, histo_ptr, options, Redraw(), RemapToolsFrame(), Reset(), RGHistoLimits::SetHisto(), UpdateLimits(), and UpdateWindowTitle().
|
virtual |
Replot the histogram.
Reimplemented in RGFitBase2D, and RGFitBase1D.
References canvas_ptr, RGHistoLimits::dimension, histo_ptr, RGHistoLimits::lim_y_max, RGHistoLimits::lim_y_min, RGHistoLimits::lim_z_max, RGHistoLimits::lim_z_min, PlotHisto(), UpdateLimits(), RGHistoLimits::x_log, RGHistoLimits::x_max, RGHistoLimits::x_min, RGHistoLimits::y_log, RGHistoLimits::y_max, RGHistoLimits::y_min, RGHistoLimits::z_log, RGHistoLimits::z_max, and RGHistoLimits::z_min.
Referenced by AnglesChanged(), ArrowKeyDown(), ArrowKeyLeft(), ArrowKeyRight(), ArrowKeyUp(), AutoButtonClicked(), RGHistoTools::HistoAttChanged(), RGHistoTools::HistoSelected(), RGHistoTools::PlotModeChanged(), Request(), Reset(), SetHisto(), SetXFull(), SetXLog(), SetYFull(), SetYLog(), SetZFull(), SetZLog(), UnzoomButtonClicked(), XValueChanged(), YValueChanged(), ZoomInKey(), ZoomOutKey(), and ZValueChanged().
|
virtual |
Effective plot function (called by Redraw function). This function can be overloaded in derived class for more sophisticated plots.
Reimplemented in RGHistoTools.
References histo_ptr, and plot_mode.
Referenced by Redraw().
|
virtual |
Update limits widgets from effective display values.
References RGHistoLimits::dimension, histo_ptr, inhibit_slot, RGHistoLimits::lim_x_max, RGHistoLimits::lim_x_min, RGHistoLimits::lim_y_max, RGHistoLimits::lim_y_min, RGHistoLimits::lim_z_max, limits_widgets, RGHistoLimits::log_x_min, RGHistoLimits::log_y_min, RGHistoLimits::log_z_min, w_x_log_button, w_x_max_entry, w_x_min_entry, w_y_log_button, w_y_max_entry, w_y_min_entry, w_z_log_button, w_z_max_entry, w_z_min_entry, RGHistoLimits::x_log, RGHistoLimits::x_max, RGHistoLimits::x_min, RGHistoLimits::y_log, RGHistoLimits::y_max, RGHistoLimits::y_min, RGHistoLimits::z_log, RGHistoLimits::z_max, and RGHistoLimits::z_min.
Referenced by RGFitBase1D::Redraw(), RGFitBase2D::Redraw(), Redraw(), RGHistoTools::RemapToolsFrame(), Request(), Reset(), SetHisto(), SetXFull(), SetXLog(), SetYFull(), SetYLog(), SetZFull(), SetZLog(), XAxisChanged(), YAxisChanged(), and ZAxisChanged().
|
virtual |
Set log-scale mode for the axis. The function returns true if a change has been done.
b | log scale status |
Reimplemented from RGHistoLimits.
References RGHistoLimits::allow_x_log, histo_ptr, RGHistoLimits::lim_x_max, RGHistoLimits::lim_x_min, RGHistoLimits::log_x_min, Redraw(), UpdateLimits(), RGHistoLimits::x_log, RGHistoLimits::x_max, and RGHistoLimits::x_min.
Referenced by LogXToggled().
|
virtual |
Set log-scale mode for the axis. The function returns true if a change has been done.
b | log scale status |
Reimplemented from RGHistoLimits.
References RGHistoLimits::allow_y_log, RGHistoLimits::dimension, histo_ptr, RGHistoLimits::lim_y_max, RGHistoLimits::lim_y_min, RGHistoLimits::log_y_min, Redraw(), UpdateLimits(), RGHistoLimits::y_log, RGHistoLimits::y_max, and RGHistoLimits::y_min.
Referenced by LogYToggled().
|
virtual |
Set log-scale mode for the axis. The function returns true if a change has been done.
b | log scale status |
Reimplemented from RGHistoLimits.
References RGHistoLimits::allow_z_log, histo_ptr, RGHistoLimits::lim_z_max, RGHistoLimits::lim_z_min, RGHistoLimits::log_z_min, Redraw(), UpdateLimits(), RGHistoLimits::z_log, RGHistoLimits::z_max, and RGHistoLimits::z_min.
Referenced by LogZToggled().
|
virtual |
Set X axis full scale.
redraw | flag for redraw |
References histo_ptr, RGHistoLimits::lim_x_max, RGHistoLimits::lim_x_min, Redraw(), UpdateLimits(), RGHistoLimits::x_max, and RGHistoLimits::x_min.
|
virtual |
Set Y axis full scale.
redraw | flag for redraw |
References histo_ptr, RGHistoLimits::lim_y_max, RGHistoLimits::lim_y_min, RGHistoLimits::log_y_min, Redraw(), UpdateLimits(), RGHistoLimits::y_log, RGHistoLimits::y_max, and RGHistoLimits::y_min.
|
virtual |
Set Z axis full scale.
redraw | flag for redraw |
References histo_ptr, RGHistoLimits::lim_z_max, RGHistoLimits::lim_z_min, RGHistoLimits::log_z_min, Redraw(), UpdateLimits(), RGHistoLimits::z_log, RGHistoLimits::z_max, and RGHistoLimits::z_min.
|
inlinevirtual |
Overload of RGHistoLimits to avoid compilation warning due to hidden function.
Reimplemented from RGHistoLimits.
Referenced by UnzoomButtonClicked(), and XFullButtonClicked().
|
inlinevirtual |
Overload of RGHistoLimits to avoid compilation warning due to hidden function.
Reimplemented from RGHistoLimits.
Referenced by UnzoomButtonClicked(), and YFullButtonClicked().
|
inlinevirtual |
Overload of RGHistoLimits to avoid compilation warnin due to hidden functiong.
Reimplemented from RGHistoLimits.
Referenced by UnzoomButtonClicked(), and ZFullButtonClicked().
|
virtual |
Slot called by log-scale button.
References SetXLog(), w_x_log_button, and RGHistoLimits::x_log.
Referenced by RGFitDecay::SetFitData(), RGFitBase1D::SetFitData(), RGFitGaus2D::SetFitData(), RGFitPeak::SetFitData(), and RGFitBase2D::SetFitData().
|
virtual |
Slot called by log-scale button.
References SetYLog(), w_y_log_button, and RGHistoLimits::y_log.
Referenced by RGFitDecay::SetFitData(), RGFitBase1D::SetFitData(), RGFitGaus2D::SetFitData(), RGFitPeak::SetFitData(), and RGFitBase2D::SetFitData().
|
virtual |
Slot called by log-scale button.
References SetZLog(), w_z_log_button, and RGHistoLimits::z_log.
Referenced by RGFitGaus2D::SetFitData(), and RGFitBase2D::SetFitData().
|
virtual |
Slot called when axis lower or upper limit is changed (with CR or TAB).
References inhibit_slot, Redraw(), w_x_max_entry, w_x_min_entry, RGHistoLimits::x_max, RGHistoLimits::x_min, and XFullButtonClicked().
Referenced by RGFitBase1D::GuiLoadFitData(), RGFitBase2D::GuiLoadFitData(), RGFitDecay::SetFitData(), RGFitBase1D::SetFitData(), RGFitGaus2D::SetFitData(), RGFitPeak::SetFitData(), and RGFitBase2D::SetFitData().
|
virtual |
Slot called when axis lower or upper limit is changed (with CR or TAB).
References inhibit_slot, Redraw(), w_y_max_entry, w_y_min_entry, RGHistoLimits::y_max, RGHistoLimits::y_min, and YFullButtonClicked().
Referenced by RGFitBase2D::GuiLoadFitData(), RGFitGaus2D::SetFitData(), and RGFitBase2D::SetFitData().
|
virtual |
Slot called when axis lower or upper limit is changed (with CR or TAB).
References inhibit_slot, Redraw(), w_z_max_entry, w_z_min_entry, RGHistoLimits::z_max, RGHistoLimits::z_min, and ZFullButtonClicked().
|
virtual |
Slot called when axis full scale button is clicked.
References SetXFull().
Referenced by XValueChanged().
|
virtual |
Slot called when axis full scale button is clicked.
References SetYFull().
Referenced by YValueChanged().
|
virtual |
Slot called when axis full scale button is clicked.
References SetZFull().
Referenced by ZValueChanged().
|
virtual |
Slot called when unzoom button is clicked.
References RGHistoLimits::dimension, Redraw(), SetXFull(), SetYFull(), SetZFull(), RGHistoLimits::y_max, RGHistoLimits::y_min, RGHistoLimits::z_max, and RGHistoLimits::z_min.
|
virtual |
Slot called when autoscale button is clicked.
References RGHistoLimits::dimension, Redraw(), RGHistoLimits::y_max, RGHistoLimits::y_min, RGHistoLimits::z_max, and RGHistoLimits::z_min.
|
virtual |
Slot called when 3D view angles are changed.
References histo_ptr, inhibit_slot, RGFrameEvent::pad_ptr, Redraw(), w_phi_entry, and w_theta_entry.
RGHistoWindow::ClassDef | ( | RGHistoWindow | , |
0 | |||
) |
For ROOT dictionary.