43 Warning(
"TGraphTime",
"Number of steps %d changed to 100", nsteps);
104 if (slot < 0 || slot >=
fNsteps)
111 list->Add((
TObject*)obj, option);
132 gROOT->MakeDefCanvas();
133 gPad->SetFillColor(41);
134 gPad->SetFrameFillColor(19);
156 gROOT->MakeDefCanvas();
157 gPad->SetFillColor(41);
158 gPad->SetFrameFillColor(19);
182 auto list =
static_cast<TList *
>(
fSteps->UncheckedAt(nstep));
188 gPad->GetListOfPrimitives()->Clear();
192 auto lnk = list->FirstLink();
194 gPad->Add(lnk->GetObject(), lnk->GetAddOption());
225 Error(
"Paint",
"Not implemented, use Draw() instead");
237 Error(
"SaveAnimatedGif",
"Not possible to create animated GIF without gPad");
242 Error(
"SaveAnimatedGif",
"Not possible to create animated GIF with web canvas");
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
const char Option_t
Option string (const char).
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)
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
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.
TObject()
TObject constructor.
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.
Handles synchronous and a-synchronous timer events.