HistoDisplayUpdateTimer Class Reference

#include <HistoDisplay.h>

List of all members.

Public Member Functions

 HistoDisplayUpdateTimer (HistoDisplay *histodisplay, Long_t msec=100, Bool_t mode=kTRUE)
Bool_t Notify ()
void SetCurrentPad (TVirtualPad *pad)
TVirtualPad * GetCurrentPad () const

Private Attributes

HistoDisplayfHistoDisplay
TVirtualPad * fCurrentPad

Detailed Description

Definition at line 482 of file HistoDisplay.h.


Constructor & Destructor Documentation

HistoDisplayUpdateTimer::HistoDisplayUpdateTimer ( HistoDisplay histodisplay,
Long_t  msec = 100,
Bool_t  mode = kTRUE 
) [inline]

Definition at line 487 of file HistoDisplay.h.

References fHistoDisplay.

00489     : TTimer( msec, mode ) { fHistoDisplay = histodisplay; }


Member Function Documentation

TVirtualPad* HistoDisplayUpdateTimer::GetCurrentPad (  )  const [inline]

Definition at line 496 of file HistoDisplay.h.

References fCurrentPad.

00497   { return fCurrentPad; } 

Bool_t HistoDisplayUpdateTimer::Notify (  ) 

Definition at line 3203 of file HistoDisplay.cxx.

References HistoDisplay::AutoUpdate, fCurrentPad, fHistoDisplay, HistoDisplay::fHistoListTree, HistoDisplay::fPauseHistoButton, HistoDisplay::fRestartHistoButton, HistoDisplay::fSelectedItem, HistoDisplay::Running, and HistoDisplay::UpdateCanvas().

03204 {
03205   //cout << " In HistoDisplayUpdateTimer::Notify " << endl; 
03206   if ( this &&
03207        ( !fHistoDisplay->AutoUpdate ||
03208          !fHistoDisplay->Running ) ) {
03209 
03210     fHistoDisplay->Running = kFALSE;
03211 
03212     TurnOff();   // same as Remove();
03213 
03214     fHistoDisplay->fPauseHistoButton->SetState( kButtonDisabled );
03215     fHistoDisplay->fRestartHistoButton->SetState( kButtonUp );
03216 
03217     fHistoDisplay->fHistoListTree
03218       ->HighlightItem( fHistoDisplay->fSelectedItem );
03219     fHistoDisplay->fClient->NeedRedraw( fHistoDisplay->fHistoListTree );
03220 
03221     //cout << "Update done" << endl << endl;
03222     cout << "Update stopped" << endl << endl;
03223     return kTRUE;
03224   } //if ( this &&
03225 
03226   //fHistoDisplay->UpdateCanvas();
03227   fHistoDisplay->UpdateCanvas( fCurrentPad );
03228   Reset();
03229   return kFALSE;
03230 
03231 }

void HistoDisplayUpdateTimer::SetCurrentPad ( TVirtualPad *  pad  )  [inline]

Definition at line 493 of file HistoDisplay.h.

References fCurrentPad.

Referenced by HistoDisplay::UpdateTimerOn().

00494   { fCurrentPad = pad; } 


Member Data Documentation

TVirtualPad* HistoDisplayUpdateTimer::fCurrentPad [private]

Definition at line 485 of file HistoDisplay.h.

Referenced by GetCurrentPad(), Notify(), and SetCurrentPad().

Definition at line 484 of file HistoDisplay.h.

Referenced by HistoDisplayUpdateTimer(), and Notify().


The documentation for this class was generated from the following files:

Generated on 3 Oct 2018 for loon by  doxygen 1.6.1