|
musrfit 1.10.0
|
Helper class for managing plot axis ranges. More...
#include <PMusrCanvas.h>


Public Member Functions | |
| PMusrCanvasPlotRange () | |
| Default constructor. | |
| virtual | ~PMusrCanvasPlotRange () |
| Destructor. | |
| virtual void | SetXRange (Double_t xmin, Double_t xmax) |
| Sets X-axis range and marks it as present. | |
| virtual void | SetYRange (Double_t ymin, Double_t ymax) |
| Sets Y-axis range and marks it as present. | |
| virtual Bool_t | IsXRangePresent () |
| Returns true if X-axis range has been explicitly set. | |
| virtual Bool_t | IsYRangePresent () |
| Returns true if Y-axis range has been explicitly set. | |
| virtual Double_t | GetXmin () |
| Returns minimum X value. | |
| virtual Double_t | GetXmax () |
| Returns maximum X value. | |
| virtual Double_t | GetYmin () |
| Returns minimum Y value. | |
| virtual Double_t | GetYmax () |
| Returns maximum Y value. | |
Private Attributes | |
| Bool_t | fXRangePresent |
| Flag: true if X-range explicitly set. | |
| Bool_t | fYRangePresent |
| Flag: true if Y-range explicitly set. | |
| Double_t | fXmin |
| Minimum X value. | |
| Double_t | fXmax |
| Maximum X value. | |
| Double_t | fYmin |
| Minimum Y value. | |
| Double_t | fYmax |
| Maximum Y value. | |
Helper class for managing plot axis ranges.
Stores and manages X and Y axis ranges for plots, allowing explicit range specification from MSR file PLOT blocks or automatic range determination based on data.
Definition at line 102 of file PMusrCanvas.h.
| PMusrCanvasPlotRange::PMusrCanvasPlotRange | ( | ) |
Default constructor.
|
inlinevirtual |
Destructor.
Definition at line 108 of file PMusrCanvas.h.
|
inlinevirtual |
Returns maximum X value.
Definition at line 123 of file PMusrCanvas.h.
References fXmax.
Referenced by PMusrCanvas::HandleNonMusrDataSet().
|
inlinevirtual |
Returns minimum X value.
Definition at line 121 of file PMusrCanvas.h.
References fXmin.
Referenced by PMusrCanvas::HandleNonMusrDataSet().
|
inlinevirtual |
Returns maximum Y value.
Definition at line 127 of file PMusrCanvas.h.
References fYmax.
Referenced by PMusrCanvas::HandleNonMusrDataSet().
|
inlinevirtual |
Returns minimum Y value.
Definition at line 125 of file PMusrCanvas.h.
References fYmin.
Referenced by PMusrCanvas::HandleNonMusrDataSet().
|
inlinevirtual |
Returns true if X-axis range has been explicitly set.
Definition at line 116 of file PMusrCanvas.h.
References fXRangePresent.
|
inlinevirtual |
Returns true if Y-axis range has been explicitly set.
Definition at line 118 of file PMusrCanvas.h.
References fYRangePresent.
|
virtual |
Sets X-axis range and marks it as present.
Sets the X-axis range and marks it as present.
Automatically swaps values if xmin > xmax to ensure proper ordering. Outputs a warning to stderr when swapping occurs.
| xmin | Minimum X value |
| xmax | Maximum X value |
Definition at line 81 of file PMusrCanvas.cpp.
References fXmax, fXmin, and fXRangePresent.
Referenced by PMusrCanvas::HandleDataSet(), and PMusrCanvas::HandleNonMusrDataSet().
|
virtual |
Sets Y-axis range and marks it as present.
Sets the Y-axis range and marks it as present.
Automatically swaps values if ymin > ymax to ensure proper ordering. Outputs a warning to stderr when swapping occurs.
| ymin | Minimum Y value |
| ymax | Maximum Y value |
Definition at line 106 of file PMusrCanvas.cpp.
References fYmax, fYmin, and fYRangePresent.
Referenced by PMusrCanvas::HandleDataSet(), and PMusrCanvas::HandleNonMusrDataSet().
|
private |
Maximum X value.
Definition at line 133 of file PMusrCanvas.h.
Referenced by ClassImp(), GetXmax(), and SetXRange().
|
private |
Minimum X value.
Definition at line 132 of file PMusrCanvas.h.
Referenced by ClassImp(), GetXmin(), and SetXRange().
|
private |
Flag: true if X-range explicitly set.
Definition at line 130 of file PMusrCanvas.h.
Referenced by ClassImp(), IsXRangePresent(), and SetXRange().
|
private |
Maximum Y value.
Definition at line 135 of file PMusrCanvas.h.
Referenced by ClassImp(), GetYmax(), and SetYRange().
|
private |
Minimum Y value.
Definition at line 134 of file PMusrCanvas.h.
Referenced by ClassImp(), GetYmin(), and SetYRange().
|
private |
Flag: true if Y-range explicitly set.
Definition at line 131 of file PMusrCanvas.h.
Referenced by ClassImp(), IsYRangePresent(), and SetYRange().