This utility macro executes the macro "macro" given as first argument and save a capture in a png file.
This macro is used by stressGUI to execute and compare the output of the GUI tutorials.
{
enum EErrorCodes {
kSuccess,
kScriptDirNotFound,
kCannotRunScript,
kNumErrorCodes
};
return kCannotRunScript;
return kScriptDirNotFound;
if (comp) cmd += "+";
gROOT->ProcessLine(cmd, &err);
return kCannotRunScript;
if (winGetParent ==
gClient->GetDefaultRoot())
if (save) {
++nMainFrames));
delete img;
}
}
}
}
R__EXTERN TSystem * gSystem
TClass instances represent classes, structs and namespaces in the ROOT type system.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
ROOT GUI Window base class.
virtual void MapRaised()
map raised
const TGWindow * GetParent() const
virtual void RaiseWindow()
raise window
An abstract interface to image processing library.
static TImage * Create()
Create an image.
virtual void FromWindow(Drawable_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
virtual void WriteImage(const char *, EImageFileTypes=TImage::kUnknown)
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Bool_t cd(const char *path)
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual TString GetDirName(const char *pathname)
Return the directory name in pathname.