Public Member Functions | |
QGUIScopeChannel () | |
ctor | |
virtual | ~QGUIScopeChannel () |
dtor | |
void | Dress (TH1F &histo) |
dress passed histogram with current graphics settings | |
void | InitGraphics (TH1F &histo) |
perform histogram-based graphics initialization | |
const bool | GetAutoRange () const |
get auto-range status | |
const long | GetMin () const |
get current minimum | |
const long | GetMax () const |
get current maximum | |
const long | GetMaxAllowed () const |
const long | GetMinAllowed () const |
void | SetAutoRange (bool isTrue) |
toggle auto-range flag | |
void | UpdateRange () |
update histogram range (used when moving from autorange to manual range and when moving to a different channel | |
bool | SetMin (long min) |
set histogram Y lower bound. If supplied value is out of range lower bound is not modified. | |
bool | SetMax (long max) |
set histogram Y upper bound. If supplied value is out of range upper bound is not modified. | |
Private Attributes | |
const long | kRangeMax |
const float | kAdc2Mv |
long | fHmin |
long | fHmax |
bool | fAutoRange |
bool | fUpdateRange |
void QGUIScopeChannel::Dress | ( | TH1F & | histo | ) |
dress passed histogram with current graphics settings
histo | histogram to be dressed |
References fAutoRange, fHmax, fHmin, and fUpdateRange.
void QGUIScopeChannel::InitGraphics | ( | TH1F & | histo | ) |
perform histogram-based graphics initialization
histo | histogram to be initialized |
void QGUIScopeChannel::SetAutoRange | ( | bool | isTrue | ) | [inline] |
toggle auto-range flag
isTrue | if channel is in autorange mode, values set by mean of SetMin() and SetMax() methods have no effect |
References fAutoRange.
bool QGUIScopeChannel::SetMin | ( | long | min | ) |
bool QGUIScopeChannel::SetMax | ( | long | max | ) |
long QGUIScopeChannel::fHmin [private] |
long QGUIScopeChannel::fHmax [private] |
bool QGUIScopeChannel::fAutoRange [private] |
auto-range flag
Referenced by Dress(), GetAutoRange(), and SetAutoRange().
bool QGUIScopeChannel::fUpdateRange [private] |
determine wether fHmin and fHmax must be updated at the next call of Dress() method
Referenced by Dress(), and UpdateRange().