44 Warning(
"TGraphTime",
"Number of steps %d changed to 100", nsteps);
105 if (slot < 0 || slot >=
fNsteps)
133 gROOT->MakeDefCanvas();
134 gPad->SetFillColor(41);
135 gPad->SetFrameFillColor(19);
157 gROOT->MakeDefCanvas();
158 gPad->SetFillColor(41);
159 gPad->SetFrameFillColor(19);
193 auto lnk = list->FirstLink();
195 gPad->Add(lnk->GetObject(), lnk->GetAddOption());
226 Error(
"Paint",
"Not implemented, use Draw() instead");
238 Error(
"SaveAnimatedGif",
"Not possible to create animated GIF without gPad");
243 Error(
"SaveAnimatedGif",
"Not possible to create animated GIF with web canvas");
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
R__EXTERN TSystem * gSystem
TGraphTime is used to draw a set of objects evolving with nsteps in time between tmin and tmax.
void Animate(Bool_t enable=kTRUE)
Start animation of TGraphTime.
virtual Int_t Add(const TObject *obj, Int_t slot, Option_t *option="")
Add one object to a time slot.
Double_t fXmin
Minimum for X axis.
void Paint(Option_t *chopt="") override
Paint all objects added to each time step.
Int_t fSleepTime
Time (msec) to wait between time steps.
Int_t fAnimateCnt
! counter used in Animate() method
~TGraphTime() override
GraphTime default destructor.
TH1 * fFrame
TH1 object used for the pad range.
Double_t fYmin
Minimum for Y axis.
virtual void SaveAnimatedGif(const char *filename="") const
Save this object to filename as an animated gif file if filename is specified it must be of the form ...
Double_t fXmax
Maximum for X axis.
TTimer * fAnimateTimer
! timer to implement animation
Bool_t DrawStep(Int_t nstep) const
Draw single step.
TGraphTime()
default constructor.
Double_t fYmax
Maximum for Y axis.
TObjArray * fSteps
Array of TLists for each time step.
Bool_t HandleTimer(TTimer *) override
Method used for implementing animation of TGraphTime.
void Draw(Option_t *chopt="") override
Draw this TGraphTime.
Int_t fNsteps
Number of time steps.
1-D histogram with a double per channel (see TH1 documentation)
void SetTitle(const char *title) override
Change/set the title.
virtual void SetMaximum(Double_t maximum=-1111)
virtual void SetMinimum(Double_t minimum=-1111)
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
void Add(TObject *obj) override
TObject * Remove(TObject *obj) override
Remove object from the list.
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
void AddAt(TObject *obj, Int_t idx) override
Add object at position ids.
void Delete(Option_t *option="") override
Remove all objects from the array AND delete all heap based objects.
TObject * UncheckedAt(Int_t i) const
Int_t GetLast() const override
Return index of last object in array.
Mother of all ROOT objects.
virtual void Clear(Option_t *="")
virtual Bool_t Notify()
This method must be overridden to handle object notification (the base implementation is no-op).
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
Handles synchronous and a-synchronous timer events.
virtual void Start(Long_t milliSec=-1, Bool_t singleShot=kFALSE)
Starts the timer with a milliSec timeout.