Public Member Functions | |
QGUIHistogramDisplay (const TGWindow *parent, unsigned int Width, unsigned int Height) | |
ctor | |
virtual | ~QGUIHistogramDisplay () |
dtor | |
void | Close () |
close window | |
void | UpdateChannel () |
update channel in QGUIHistogramHandler object | |
void | UpdateDisplay () |
update histograms every time timeout expires | |
void | HandlePause () |
handle pause button pressed | |
void | SetUpdateActiveTypes () |
void | SetUpdateColors () |
void | UpdateRateMode (Int_t id) |
void | UpdateLinLogMode (Int_t id) |
void | UpdateSpectrumRange () |
void | CheckSpectrumRange () |
Private Member Functions | |
void | CreateSubFrames () |
void | ConnectButtons () |
void | GetActiveChannels () |
void | UpdateColors () |
void | UpdateActiveTypes () |
Private Attributes | |
TGCompositeFrame * | fControlFrame |
TGCompositeFrame * | fDisplayFrame |
TGCompositeFrame * | fChannelFrame |
TRootEmbeddedCanvas * | fPulseCanvas |
TRootEmbeddedCanvas * | fSpectrumCanvas |
TRootEmbeddedCanvas * | fRateCanvas |
QGUINumberSelector * | fChSelector |
TGTextButton * | fCloseButton |
TGTextButton * | fPauseButton |
TGCheckButton * | fSpectrumSignalButton |
TGCheckButton * | fSpectrumNoiseButton |
TGCheckButton * | fSpectrumHeaterButton |
TGCheckButton * | fRateSignalButton |
TGCheckButton * | fRateNoiseButton |
TGCheckButton * | fRateHeaterButton |
QGuiColorSelect * | fSignalColor |
QGuiColorSelect * | fNoiseColor |
QGuiColorSelect * | fHeaterColor |
TGButtonGroup * | fRateModeButton |
TGButtonGroup * | fLinLogButton |
TGCheckButton * | fMinAutoButton |
TGCheckButton * | fMaxAutoButton |
TGNumberEntry * | fSpectrumMinButton |
TGNumberEntry * | fSpectrumMaxButton |
Int_t | fSpectrumMin |
Int_t | fSpectrumMax |
bool | fAutoRangeSpectrumMin |
bool | fAutoRangeSpectrumMax |
bool | fLogScale |
std::vector< unsigned int > | fActiveChannels |
const long | kTimeout |
TTimer | fTimer |
const Int_t | kRateUpdatePeriodSec |
bool | fUpdateActiveTypes |
bool | fUpdateColors |
bool | fRateStacked |
const Int_t | kControlFrameWidth |
QGUIHistogramHandler | fHistoHandler |
void QGUIHistogramDisplay::HandlePause | ( | ) |
handle pause button pressed
stop/restart update timer and update button status
References fChSelector, fHeaterColor, fLinLogButton, fMaxAutoButton, fMinAutoButton, fNoiseColor, fPauseButton, fRateHeaterButton, fRateModeButton, fRateNoiseButton, fRateSignalButton, fSignalColor, fSpectrumHeaterButton, fSpectrumMaxButton, fSpectrumMinButton, fSpectrumNoiseButton, fSpectrumSignalButton, fTimer, and QGUINumberSelector::SetState().
void QGUIHistogramDisplay::CreateSubFrames | ( | ) | [private] |
create all subframes
References fActiveChannels, fAutoRangeSpectrumMax, fAutoRangeSpectrumMin, fChannelFrame, fChSelector, fCloseButton, fControlFrame, fDisplayFrame, fHeaterColor, fHistoHandler, fLinLogButton, fLogScale, fMaxAutoButton, fMinAutoButton, fNoiseColor, fPauseButton, fPulseCanvas, fRateCanvas, fRateHeaterButton, fRateModeButton, fRateNoiseButton, fRateSignalButton, fRateStacked, fSignalColor, fSpectrumCanvas, fSpectrumHeaterButton, fSpectrumMaxButton, fSpectrumMinButton, fSpectrumNoiseButton, fSpectrumSignalButton, QGUINumberSelector::GetSelector(), QGUIHistogramHandler::SetPulseCanvas(), QGUIHistogramHandler::SetRateCanvas(), and QGUIHistogramHandler::SetSpectrumCanvas().
void QGUIHistogramDisplay::ConnectButtons | ( | ) | [private] |
connect all buttons
References fChSelector, fCloseButton, fHeaterColor, fLinLogButton, fMaxAutoButton, fMinAutoButton, fNoiseColor, fPauseButton, fRateHeaterButton, fRateModeButton, fRateNoiseButton, fRateSignalButton, fSignalColor, fSpectrumHeaterButton, fSpectrumMaxButton, fSpectrumMinButton, fSpectrumNoiseButton, and fSpectrumSignalButton.
void QGUIHistogramDisplay::GetActiveChannels | ( | ) | [private] |
retrieve list of active channels from somewhere
References fActiveChannels, QApolloDb::GetCurrentProfile(), QApolloDb::GetCurrentRunNumber(), QApolloDb::GetListOfChannels(), and QApolloDbGui::ResetRun().
void QGUIHistogramDisplay::UpdateColors | ( | ) | [private] |
read color selection widgets and notify fHistogramHandler
References fHeaterColor, fHistoHandler, fNoiseColor, fSignalColor, fUpdateColors, QApolloMonitorDefs::QBolometer_t, QApolloMonitorDefs::QHeater_t, QApolloMonitorDefs::QNoise_t, and QGUIHistogramHandler::SetHistogramColor().
Referenced by UpdateDisplay().
void QGUIHistogramDisplay::UpdateActiveTypes | ( | ) | [private] |
read active signal types selection widgets and notify fHistogramHandler
References fHistoHandler, fRateHeaterButton, fRateNoiseButton, fRateSignalButton, fSpectrumHeaterButton, fSpectrumNoiseButton, fSpectrumSignalButton, fUpdateActiveTypes, QApolloMonitorDefs::QBolometer_t, QApolloMonitorDefs::QHeater_t, QApolloMonitorDefs::QNoise_t, QGUIHistogramHandler::SetRateActive(), and QGUIHistogramHandler::SetSpectrumActive().
Referenced by UpdateDisplay().
TGCompositeFrame* QGUIHistogramDisplay::fControlFrame [private] |
frame with control buttons
Referenced by CreateSubFrames().
TGCompositeFrame* QGUIHistogramDisplay::fDisplayFrame [private] |
frame with histograms
Referenced by CreateSubFrames().
TGCompositeFrame* QGUIHistogramDisplay::fChannelFrame [private] |
frame with channel based histograms
Referenced by CreateSubFrames().
TRootEmbeddedCanvas* QGUIHistogramDisplay::fPulseCanvas [private] |
last pulse canvas
Referenced by CreateSubFrames(), and ~QGUIHistogramDisplay().
TRootEmbeddedCanvas* QGUIHistogramDisplay::fSpectrumCanvas [private] |
amplitude spectrum canvas
Referenced by CreateSubFrames(), and ~QGUIHistogramDisplay().
TRootEmbeddedCanvas* QGUIHistogramDisplay::fRateCanvas [private] |
counting rate canvas
Referenced by CreateSubFrames(), and ~QGUIHistogramDisplay().
channel selector
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), UpdateChannel(), and ~QGUIHistogramDisplay().
TGTextButton* QGUIHistogramDisplay::fCloseButton [private] |
close button
Referenced by ConnectButtons(), CreateSubFrames(), and ~QGUIHistogramDisplay().
TGTextButton* QGUIHistogramDisplay::fPauseButton [private] |
pause button
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), and ~QGUIHistogramDisplay().
TGCheckButton* QGUIHistogramDisplay::fSpectrumSignalButton [private] |
spectrum signal check button
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), and UpdateActiveTypes().
TGCheckButton* QGUIHistogramDisplay::fSpectrumNoiseButton [private] |
spectrum noise check button
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), and UpdateActiveTypes().
TGCheckButton* QGUIHistogramDisplay::fSpectrumHeaterButton [private] |
spectrum heater check button
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), and UpdateActiveTypes().
TGCheckButton* QGUIHistogramDisplay::fRateSignalButton [private] |
rate signal check button
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), and UpdateActiveTypes().
TGCheckButton* QGUIHistogramDisplay::fRateNoiseButton [private] |
rate noise check button
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), and UpdateActiveTypes().
TGCheckButton* QGUIHistogramDisplay::fRateHeaterButton [private] |
rate heater check button
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), and UpdateActiveTypes().
signal color selction widget
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), and UpdateColors().
QGuiColorSelect* QGUIHistogramDisplay::fNoiseColor [private] |
noise color selection widget
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), and UpdateColors().
heater color selection widget
Referenced by ConnectButtons(), CreateSubFrames(), HandlePause(), and UpdateColors().
TGButtonGroup* QGUIHistogramDisplay::fRateModeButton [private] |
rate display mode button
Referenced by ConnectButtons(), CreateSubFrames(), and HandlePause().
TGButtonGroup* QGUIHistogramDisplay::fLinLogButton [private] |
spectrum y scale mode button
Referenced by ConnectButtons(), CreateSubFrames(), and HandlePause().
TGCheckButton* QGUIHistogramDisplay::fMinAutoButton [private] |
auto/manual toggle for specturm lower bound
Referenced by ConnectButtons(), CreateSubFrames(), and HandlePause().
TGCheckButton* QGUIHistogramDisplay::fMaxAutoButton [private] |
auto/manual toggle for specturm upper bound
Referenced by ConnectButtons(), CreateSubFrames(), and HandlePause().
TGNumberEntry* QGUIHistogramDisplay::fSpectrumMinButton [private] |
spectrum lower bound selection
Referenced by ConnectButtons(), CreateSubFrames(), and HandlePause().
TGNumberEntry* QGUIHistogramDisplay::fSpectrumMaxButton [private] |
spectrum upper bound selection
Referenced by ConnectButtons(), CreateSubFrames(), and HandlePause().
Int_t QGUIHistogramDisplay::fSpectrumMin [private] |
specrtum lower bound in mV
Int_t QGUIHistogramDisplay::fSpectrumMax [private] |
specrtum lower bound in mV
bool QGUIHistogramDisplay::fAutoRangeSpectrumMin [private] |
use autorange in spectrum min
Referenced by CreateSubFrames(), and UpdateDisplay().
bool QGUIHistogramDisplay::fAutoRangeSpectrumMax [private] |
use autorange in spectrum max
Referenced by CreateSubFrames(), and UpdateDisplay().
bool QGUIHistogramDisplay::fLogScale [private] |
use log scale in spectrum y axis
Referenced by CreateSubFrames(), and UpdateDisplay().
std::vector<unsigned int> QGUIHistogramDisplay::fActiveChannels [private] |
list of active lg channels
Referenced by CreateSubFrames(), and GetActiveChannels().
const long QGUIHistogramDisplay::kTimeout [private] |
histograms update period in ms
TTimer QGUIHistogramDisplay::fTimer [private] |
timer for histogram update
Referenced by Close(), HandlePause(), UpdateChannel(), and ~QGUIHistogramDisplay().
const Int_t QGUIHistogramDisplay::kRateUpdatePeriodSec [private] |
max time in s to elapse before forcing counting rate histo update
bool QGUIHistogramDisplay::fUpdateActiveTypes [private] |
call UpdateActiveTypes() at the next call to UpdateDisplay()
Referenced by UpdateActiveTypes().
bool QGUIHistogramDisplay::fUpdateColors [private] |
call UpdateColors() at the next call to UpdateDisplay()
Referenced by UpdateColors().
bool QGUIHistogramDisplay::fRateStacked [private] |
whether to draw rate histogram in stacked mode
Referenced by CreateSubFrames(), and UpdateDisplay().
const Int_t QGUIHistogramDisplay::kControlFrameWidth [private] |
control frame width
object that handles file i/o and histograms manipulation
Referenced by Close(), CreateSubFrames(), UpdateActiveTypes(), UpdateChannel(), UpdateColors(), and UpdateDisplay().