45 TGo4Picture(
const char *name,
const char *title, Int_t ndivy = 1, Int_t ndivx = 1);
67 void SetLinesDivision(Int_t numlines, Int_t n0=1, Int_t n1=1, Int_t n2=1, Int_t n3=1, Int_t n4=1,
68 Int_t n5=1, Int_t n6=1, Int_t n7=1, Int_t n8=1, Int_t n9=1);
72 void AddH1(TH1 *histo, Option_t *DrawOption =
nullptr);
73 void AddH1(Int_t posy, Int_t posx, TH1 *histo, Option_t *DrawOption =
nullptr);
76 void AddHStack(THStack *st, Option_t *DrawOption =
nullptr);
77 void AddHStack(Int_t posy, Int_t posx, THStack *st, Option_t *DrawOption =
nullptr);
80 void AddGraph(TGraph *gr, Option_t *DrawOption =
nullptr);
81 void AddGraph(Int_t posy, Int_t posx, TGraph *gr, Option_t *DrawOption =
nullptr);
85 void AddCondition(Int_t posy, Int_t posx, TNamed *cond =
nullptr);
91 void SetRangeX(Double_t min, Double_t max);
92 Bool_t
GetRangeX(Double_t &min, Double_t &max)
const;
94 void SetRangeY(Double_t min, Double_t max);
95 Bool_t
GetRangeY(Double_t &min, Double_t &max)
const;
97 void SetRangeZ(Double_t min, Double_t max);
98 Bool_t
GetRangeZ(Double_t &min, Double_t &max)
const;
159 void SetFrameAttr(Double_t left, Double_t top, Double_t right, Double_t bottom);
163 void SetStatsAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2,
164 Int_t optstat = 1111,
const char *statformat =
"6.4g",
165 Int_t optfit = 1111,
const char *fitformat =
"5.4g");
175 void SetTitleAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t textsize = 0.);
207 void Draw(Option_t *option =
"")
override;
209 void Clear(Option_t *option =
"")
override;
211 void Print(Option_t *option =
"")
const override;
213 void SavePrimitive(std::ostream &fs, Option_t *opt =
"")
override;
218 void AddObjName(
const char *name, Option_t *DrawOption =
nullptr);
219 void AddObjName(Int_t posy, Int_t posx,
const char *name, Option_t *DrawOption =
nullptr);
222 void AddObject(TObject *obj, Option_t *DrawOption =
nullptr);
223 void AddObject(Int_t posy, Int_t posx, TObject *obj, Option_t *DrawOption =
nullptr);
303 void SetFullRange(Int_t naxis, Double_t min, Double_t max);
304 Bool_t
GetFullRange(Int_t naxis, Double_t& min, Double_t& max)
const;
307 void SetRange(Int_t naxis, Double_t min, Double_t max);
308 Bool_t
GetRange(Int_t naxis, Double_t& min, Double_t& max)
const;
316 static void Add(TString &s,
const char *buf) { s+=buf; }
327 Int_t
FindOptPos(Short_t index, Short_t typ)
const;
330 void SetOption(Short_t index, Short_t typ, Long_t value);
331 using TObject::GetOption;
332 Bool_t
GetOption(Short_t index, Short_t typ, Long_t& value)
const;
333 Long_t
GetI(Short_t index, Short_t typ, Long_t def = 0)
const;
335 void SetOptionF(Short_t index, Short_t typ, Float_t value);
336 Bool_t
GetOptionF(Short_t index, Short_t typ, Float_t& value)
const;
338 void SetOptionD(Short_t index, Short_t typ, Double_t value);
339 Bool_t
GetOptionD(Short_t index, Short_t typ, Double_t& value)
const;
340 Double_t
GetD(Short_t index, Short_t typ, Double_t def = 0.)
const;
342 void SetObjOption(Short_t index, Short_t typ, TObject *obj);
343 TObject *
GetObjOption(Short_t index, Short_t typ)
const;
345 void SetStrOption(Short_t index, Short_t typ,
const char *value);
346 const char *
GetStrOption(Short_t index, Short_t typ,
const char *defvalue =
nullptr)
const;
354 void DrawPic(TVirtualPad *pad);
356 void PrintPic(
int shift, Bool_t showopt);
365 void MakeScript(std::ostream &fs,
const char *name);
367 void MakeAxisScript(std::ostream &fs,
const char *name, Int_t indx, Int_t naxis);
Picture cconfiguration in Go4.
Int_t GetNumObjNames() const
Bool_t GetStatsAttr(TPaveStats *stats) const
Bool_t GetOptionD(Short_t index, Short_t typ, Double_t &value) const
void ClearOption(Short_t index, Short_t typ)
Bool_t IsXYRatioOne() const
void SetOptionF(Short_t index, Short_t typ, Float_t value)
Bool_t GetLineAtt(TAttLine *line, Int_t index=UndefIndex) const
void DrawPic(TVirtualPad *pad)
TList * GetSpecialObjects() const
Bool_t IsTitleDate() const
void SetHisStats(Bool_t on)
void SetLogScale(Int_t nscale=0, Int_t zn=1)
void SetOptionD(Short_t index, Short_t typ, Double_t value)
void SetRebinY(Int_t ngroupy, Int_t index=UndefIndex)
void SetAxisLabelFontSize(Int_t naxis, Float_t LabelSize, Int_t index=UndefIndex)
void SetPosition(Int_t posy, Int_t posx)
void SetSuperimpose(bool on)
Bool_t GetFillAtt(TAttFill *fill, Int_t index=UndefIndex) const
void ClearRange(Int_t naxis=-1)
void ClearObjNames(Bool_t recursive=kFALSE)
Int_t GetRebinX(Int_t index=UndefIndex) const
static void Add(TString &s, const char *buf)
void CopyOptionsFrom(TGo4Picture *source)
Bool_t IsHisStats() const
void ClearMarkerAtt(Int_t index=UndefIndex)
void SetRebinX(Int_t ngroupx, Int_t index=UndefIndex)
Int_t GetLogScale(Int_t nscale=0) const
Double_t GetD(Short_t index, Short_t typ, Double_t def=0.) const
void SetRange(Int_t naxis, Double_t min, Double_t max)
void SetLinesDivision(Int_t numlines, const Int_t *numbers)
void SetXAxisTimeDisplay(Bool_t on)
void SetCrosshair(bool on)
void UpdateFrom(TGo4Picture *source, TClass *selectedobjclass=nullptr)
void CheckIndex(Int_t &index) const
void AddObject(TObject *obj, Option_t *DrawOption=nullptr)
void SetXAxisTimeFormat(const char *format)
void SetRangeY(Double_t min, Double_t max)
Option_t * GetDrawOption() const override
void SetPadModified(bool on=true)
void SetAxisTitleFontSize(Int_t naxis, Float_t TitleSize, Int_t index=UndefIndex)
void SetHisTitle(bool on)
void SetApplyToAll(bool on)
TStyle * GetStyle(Int_t index=UndefIndex)
void AddObjName(const char *name, Option_t *DrawOption=nullptr)
void SetPadAtt(Int_t BorderMode, Int_t BorderSize, Int_t Gridx, Int_t Gridy, Double_t Phi, Double_t Theta, Int_t Tickx, Int_t Ticky, Int_t index=PictureIndex)
void SetMarkerAtt(Color_t color, Size_t size, Style_t style, Int_t index=UndefIndex)
TGo4Picture * LPic(Int_t nline, Int_t ncol)
void GetDrawAttributes(TObject *obj, Int_t index=UndefIndex) const
const char * GetObjName(Int_t n) const
TGo4Picture * FindPic(Int_t posy, Int_t posx)
Bool_t GetOption(Short_t index, Short_t typ, Long_t &value) const
void SetAxisAtt(Int_t naxis, Color_t AxisColor, Color_t LabelColor, Style_t LabelFont, Float_t LabelOffset, Float_t LabelSize, Int_t Ndivisions, Float_t TickLength, Color_t TitleColor, Style_t TitleFont, Float_t TitleOffset, Float_t TitleSize, Bool_t decimals, const char *ticks, Int_t bits, Int_t index=UndefIndex)
void AddSubPicture(TGo4Picture *pic)
void SetTitleAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t textsize=0.)
void SetFillAtt(Color_t color, Style_t style, Int_t index=UndefIndex)
Bool_t GetFullRange(Int_t naxis, Double_t &min, Double_t &max) const
Bool_t IsObjNames() const
void AddHStack(THStack *st, Option_t *DrawOption=nullptr)
void ClearAllOptions(Short_t index=UndefIndex)
TObject * GetObjOption(Short_t index, Short_t typ) const
Bool_t GetRangeY(Double_t &min, Double_t &max) const
void GetAxisAtt(Int_t naxis, TAxis *axis, Int_t index=UndefIndex) const
void SetXAxisAttTime(Bool_t timedisplay, const char *format, Int_t index=UndefIndex)
TStyle * FindStyle(Int_t index=UndefIndex)
Int_t GetFullRangeDim() const
Int_t GetObjAttIndex(TObject *obj) const
void SetDrawAttributes(TObject *obj, Int_t index=UndefIndex)
const char * GetStrOption(Short_t index, Short_t typ, const char *defvalue=nullptr) const
void SetLineAtt(Color_t color, Style_t style, Width_t width, Int_t index=UndefIndex)
Bool_t GetMarkerAtt(TAttMarker *marker, Int_t index=UndefIndex) const
void SetStatsAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Int_t optstat=1111, const char *statformat="6.4g", Int_t optfit=1111, const char *fitformat="5.4g")
Long_t GetTotalSize()
Returns total size, used by picture in memory.
void AddCondition(TNamed *cond=nullptr)
void SetSelectedIndex(Int_t index=PictureIndex)
void GetLogScales(TVirtualPad *pad)
void SetContentModified(bool on=true)
void SetDrawOption(Option_t *option="") override
bool IsPadModified() const
Int_t GetHisContour() const
void SetTitleItem(Bool_t on=kTRUE)
void AddSpecialObjectXml(const char *xmlcode, Option_t *drawopt=nullptr)
void SetH1Att(TH1 *h1, Int_t index=UndefIndex)
void SetOption(Short_t index, Short_t typ, Long_t value)
Bool_t IsHisTitle() const
void ClearFullRange(Int_t naxis=-1)
Long_t GetI(Short_t index, Short_t typ, Long_t def=0) const
void Clear(Option_t *option="") override
Bool_t IsXAxisTimeDisplay() const
void GetPadAtt(TPad *pad, Int_t index=UndefIndex) const
void SetStyle(TStyle *style, Int_t index=UndefIndex)
Bool_t CheckPosition(Int_t posy, Int_t posx) const
void ChangeDrawOption(Int_t kind, Int_t value)
Int_t ExtendOptPos(Short_t index, Short_t typ)
bool IsLegendDraw() const
bool IsSuperimpose() const
void PrintPic(int shift, Bool_t showopt)
void SetFrameAttr(Double_t left, Double_t top, Double_t right, Double_t bottom)
void SetAutoZoom(bool on)
Int_t GetRebinY(Int_t index=UndefIndex) const
void SetObjOption(Short_t index, Short_t typ, TObject *obj)
void MakeAxisScript(std::ostream &fs, const char *name, Int_t indx, Int_t naxis)
void Print(Option_t *option="") const override
void AddH1(TH1 *histo, Option_t *DrawOption=nullptr)
void AddGraph(TGraph *gr, Option_t *DrawOption=nullptr)
Bool_t GetFrameAttr(TPad *pad) const
void AddSpecialObject(TObject *obj, Option_t *drawopt=nullptr)
void SetTitleTime(Bool_t on=kTRUE)
TGo4Picture & operator()(int posy, int posx)
void ClearLineAtt(Int_t index=UndefIndex)
TObjArray * fxSubPictures
Bool_t GetRangeZ(Double_t &min, Double_t &max) const
void ClearRebin(Int_t index=UndefIndex)
Int_t FindOptPos(Short_t index, Short_t typ) const
void SetLegendDraw(bool on)
void ClearFillAtt(Int_t index=UndefIndex)
Bool_t IsDrawHeader() const
const char * GetXAxisTimeFormat() const
void Draw(Option_t *option="") override
void SetDrawHeader(Bool_t draw=kTRUE)
void GetH1Att(TH1 *h1, Int_t index=UndefIndex) const
void SetTitleDate(Bool_t on=kTRUE)
TGo4Picture * Pic(Int_t posy, Int_t posx)
void SetFullRange(Int_t naxis, Double_t min, Double_t max)
void SetXYRatioOne(Bool_t on)
void SetRangeX(Double_t min, Double_t max)
Bool_t GetOptionF(Short_t index, Short_t typ, Float_t &value) const
void MakeScript(std::ostream &fs, const char *name)
Bool_t GetTitleAttr(TPaveText *title) const
void SavePrimitive(std::ostream &fs, Option_t *opt="") override
Bool_t GetRangeX(Double_t &min, Double_t &max) const
Bool_t GetRange(Int_t naxis, Double_t &min, Double_t &max) const
void SetAutoScale(bool on)
void SetHisContour(Int_t nlvl)
bool IsContentModified() const
void SetDivision(Int_t ndivy, Int_t ndivx)
bool IsApplyToAll() const
void SetStrOption(Short_t index, Short_t typ, const char *value)
Bool_t IsTitleItem() const
Bool_t IsTitleTime() const
void SetRangeZ(Double_t min, Double_t max)
void SetFullRangeDim(Int_t ndim)