43 TGo4Picture(
const char* name,
const char* title, Int_t ndivy = 1, Int_t ndivx = 1);
65 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,
66 Int_t n5=1, Int_t n6=1, Int_t n7=1, Int_t n8=1, Int_t n9=1);
70 void AddH1(TH1* histo, Option_t* DrawOption = 0);
71 void AddH1(Int_t posy, Int_t posx, TH1* histo, Option_t* DrawOption = 0);
74 void AddHStack(THStack* st, Option_t* DrawOption = 0);
75 void AddHStack(Int_t posy, Int_t posx, THStack* st, Option_t* DrawOption = 0);
78 void AddGraph(TGraph* gr, Option_t* DrawOption = 0);
79 void AddGraph(Int_t posy, Int_t posx, TGraph* gr, Option_t* DrawOption = 0);
83 void AddCondition(Int_t posy, Int_t posx, TNamed* cond = 0);
89 void SetRangeX(Double_t min, Double_t max);
90 Bool_t
GetRangeX(Double_t& min, Double_t& max)
const;
92 void SetRangeY(Double_t min, Double_t max);
93 Bool_t
GetRangeY(Double_t& min, Double_t& max)
const;
95 void SetRangeZ(Double_t min, Double_t max);
96 Bool_t
GetRangeZ(Double_t& min, Double_t& max)
const;
157 void SetFrameAttr(Double_t left, Double_t top, Double_t right, Double_t bottom);
161 void SetStatsAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2,
162 Int_t optstat = 1111,
const char* statformat =
"6.4g",
163 Int_t optfit = 1111,
const char* fitformat =
"5.4g");
173 void SetTitleAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t textsize = 0.);
205 virtual void Draw(Option_t* option =
"");
207 virtual void Clear(Option_t* option =
"");
209 virtual void Print(Option_t* option =
"")
const;
212 virtual void SavePrimitive(std::ostream& fs, Option_t* =
"");
218 void AddObjName(
const char* name, Option_t* DrawOption = 0);
219 void AddObjName(Int_t posy, Int_t posx,
const char* name, Option_t* DrawOption = 0);
222 void AddObject(TObject* obj, Option_t* DrawOption = 0);
223 void AddObject(Int_t posy, Int_t posx, TObject* obj, Option_t* DrawOption = 0);
304 void SetFullRange(Int_t naxis, Double_t min, Double_t max);
305 Bool_t
GetFullRange(Int_t naxis, Double_t& min, Double_t& max);
308 void SetRange(Int_t naxis, Double_t min, Double_t max);
309 Bool_t
GetRange(Int_t naxis, Double_t& min, Double_t& max)
const;
317 static void Add(TString& s,
const char* buf) { s+=buf; }
328 Int_t
FindOptPos(Short_t index, Short_t typ)
const;
331 void SetOption(Short_t index, Short_t typ, Long_t value);
332 using TObject::GetOption;
333 Bool_t
GetOption(Short_t index, Short_t typ, Long_t& value)
const;
334 Long_t
GetI(Short_t index, Short_t typ, Long_t def = 0)
const;
336 void SetOptionF(Short_t index, Short_t typ, Float_t value);
337 Bool_t
GetOptionF(Short_t index, Short_t typ, Float_t& value)
const;
339 void SetOptionD(Short_t index, Short_t typ, Double_t value);
340 Bool_t
GetOptionD(Short_t index, Short_t typ, Double_t& value)
const;
341 Double_t
GetD(Short_t index, Short_t typ, Double_t def = 0.)
const;
343 void SetObjOption(Short_t index, Short_t typ, TObject* obj);
344 TObject *
GetObjOption(Short_t index, Short_t typ)
const;
346 void SetStrOption(Short_t index, Short_t typ,
const char* value);
347 const char*
GetStrOption(Short_t index, Short_t typ,
const char* defvalue = 0)
const;
353 void*
Cast(TObject* obj, TClass* cl);
357 void DrawPic(TVirtualPad* pad);
359 void PrintPic(
int shift, Bool_t showopt);
368 void MakeScript(std::ostream& fs,
const char* name);
370 void MakeAxisScript(std::ostream& fs,
const char* name, Int_t indx, Int_t naxis);
397 #endif //TGO4PICTURE_H
void SetStyle(TStyle *style, Int_t index=UndefIndex)
void SetRange(Int_t naxis, Double_t min, Double_t max)
void SetTitleTime(Bool_t on=kTRUE)
void ClearOption(Short_t index, Short_t typ)
void SetHisContour(Int_t nlvl)
bool IsContentModified() const
const char * GetXAxisTimeFormat()
Bool_t GetFillAtt(TAttFill *fill, Int_t index=UndefIndex)
Bool_t CheckPosition(Int_t posy, Int_t posx) const
void AddH1(TH1 *histo, Option_t *DrawOption=0)
void SetAutoZoom(bool on)
void UpdateFrom(TGo4Picture *source, TClass *selectedobjclass=0)
void AddObjName(const char *name, Option_t *DrawOption=0)
void SetPosition(Int_t posy, Int_t posx)
virtual void SavePrimitive(std::ostream &fs, Option_t *="")
TObjArray * fxSubPictures
Int_t GetLogScale(Int_t nscale=0)
void SetRangeY(Double_t min, Double_t max)
void SetCrosshair(bool on)
void SetDrawHeader(Bool_t draw=kTRUE)
Int_t FindOptPos(Short_t index, Short_t typ) const
void SetObjOption(Short_t index, Short_t typ, TObject *obj)
void GetAxisAtt(Int_t naxis, TAxis *axis, Int_t index=UndefIndex)
void GetPadAtt(TPad *pad, Int_t index=UndefIndex)
void CopyOptionsFrom(TGo4Picture *source)
const char * GetObjName(Int_t n)
TStyle * FindStyle(Int_t index=UndefIndex)
Double_t GetD(Short_t index, Short_t typ, Double_t def=0.) const
virtual void Draw(Option_t *option="")
Bool_t IsHisStats() const
Bool_t GetTitleAttr(TPaveText *titl)
void SetStrOption(Short_t index, Short_t typ, const char *value)
void AddSpecialObjectXml(const char *xmlcode, Option_t *drawopt=0)
void SetSelectedIndex(Int_t index=PictureIndex)
void PrintPic(int shift, Bool_t showopt)
Bool_t GetRange(Int_t naxis, Double_t &min, Double_t &max) const
Bool_t GetFullRange(Int_t naxis, Double_t &min, Double_t &max)
void ClearAllOptions(Short_t index=UndefIndex)
Int_t GetRebinY(Int_t index=UndefIndex)
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 GetH1Att(TH1 *h1, Int_t index=UndefIndex)
void ClearFillAtt(Int_t index=UndefIndex)
void SetOptionD(Short_t index, Short_t typ, Double_t value)
void SetHisTitle(bool on)
static void Add(TString &s, const char *buf)
virtual Option_t * GetDrawOption() const
void SetAxisTitleFontSize(Int_t naxis, Float_t TitleSize, Int_t index=UndefIndex)
Bool_t GetOptionD(Short_t index, Short_t typ, Double_t &value) const
void SetTitleItem(Bool_t on=kTRUE)
void SetAxisLabelFontSize(Int_t naxis, Float_t LabelSize, Int_t index=UndefIndex)
void * Cast(TObject *obj, TClass *cl)
void SetXAxisTimeFormat(const char *format)
void ChangeDrawOption(Int_t kind, Int_t value)
void ClearLineAtt(Int_t index=UndefIndex)
void DrawPic(TVirtualPad *pad)
const char * GetStrOption(Short_t index, Short_t typ, const char *defvalue=0) const
TGo4Picture * Pic(Int_t posy, Int_t posx)
Bool_t GetStatsAttr(TPaveStats *stats)
bool IsApplyToAll() const
void SetApplyToAll(bool on)
void ClearRebin(Int_t index=UndefIndex)
void AddHStack(THStack *st, Option_t *DrawOption=0)
void SetFullRangeDim(Int_t ndim)
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 SetDivision(Int_t ndivy, Int_t ndivx)
virtual void Clear(Option_t *option="")
TObject * GetObjOption(Short_t index, Short_t typ) 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")
void SetH1Att(TH1 *h1, Int_t index=UndefIndex)
void AddObject(TObject *obj, Option_t *DrawOption=0)
TGo4Picture & operator()(int posy, int posx)
void SetXAxisTimeDisplay(Bool_t on)
void SetRebinY(Int_t ngroupy, Int_t index=UndefIndex)
void AddSubPicture(TGo4Picture *pic)
void SetXYRatioOne(Bool_t on)
void GetLogScales(TVirtualPad *pad)
void CheckIndex(Int_t &index) const
void SetLogScale(Int_t nscale=0, Int_t zn=1)
Bool_t GetFrameAttr(TPad *pad)
bool IsSuperimpose() const
Bool_t GetOptionF(Short_t index, Short_t typ, Float_t &value) const
Bool_t GetOption(Short_t index, Short_t typ, Long_t &value) const
void AddGraph(TGraph *gr, Option_t *DrawOption=0)
void SetOptionF(Short_t index, Short_t typ, Float_t value)
void SetLegendDraw(bool on)
Int_t GetObjAttIndex(TObject *obj)
Bool_t IsXAxisTimeDisplay()
bool IsPadModified() const
Bool_t GetRangeZ(Double_t &min, Double_t &max) const
Int_t ExtendOptPos(Short_t index, Short_t typ)
Long_t GetI(Short_t index, Short_t typ, Long_t def=0) const
void ClearMarkerAtt(Int_t index=UndefIndex)
void AddCondition(TNamed *cond=0)
void SetOption(Short_t index, Short_t typ, Long_t value)
Int_t GetHisContour() const
void SetLineAtt(Color_t color, Style_t style, Width_t width, Int_t index=UndefIndex)
TGo4Picture * FindPic(Int_t posy, Int_t posx)
void SetHisStats(Bool_t on)
void SetLinesDivision(Int_t numlines, const Int_t *numbers)
Bool_t GetRangeY(Double_t &min, Double_t &max) const
void SetMarkerAtt(Color_t color, Size_t size, Style_t style, Int_t index=UndefIndex)
void SetFullRange(Int_t naxis, Double_t min, Double_t max)
void SetRangeX(Double_t min, Double_t max)
void MakeAxisScript(std::ostream &fs, const char *name, Int_t indx, Int_t naxis)
void SetFrameAttr(Double_t left, Double_t top, Double_t right, Double_t bottom)
void SetFillAtt(Color_t color, Style_t style, Int_t index=UndefIndex)
void ClearObjNames(Bool_t recursive=kFALSE)
Bool_t IsHisTitle() const
bool IsLegendDraw() const
void GetDrawAttributes(TObject *obj, Int_t index=UndefIndex)
void SetSuperimpose(bool on)
void SetRangeZ(Double_t min, Double_t max)
Bool_t IsTitleDate() const
Bool_t GetMarkerAtt(TAttMarker *marker, Int_t index=UndefIndex)
void SetDrawAttributes(TObject *obj, Int_t index=UndefIndex)
void SetPadModified(bool on=true)
void ClearFullRange(Int_t naxis=-1)
TStyle * GetStyle(Int_t index=UndefIndex)
Bool_t GetRangeX(Double_t &min, Double_t &max) const
void SetAutoScale(bool on)
void MakeScript(std::ostream &fs, const char *name)
Int_t GetRebinX(Int_t index=UndefIndex)
Int_t GetFullRangeDim() const
Bool_t GetLineAtt(TAttLine *line, Int_t index=UndefIndex)
void SetContentModified(bool on=true)
void AddSpecialObject(TObject *obj, Option_t *drawopt=0)
Bool_t IsTitleItem() const
Bool_t IsTitleTime() const
virtual void Print(Option_t *option="") const
void SetTitleDate(Bool_t on=kTRUE)
void SetRebinX(Int_t ngroupx, Int_t index=UndefIndex)
virtual void SetDrawOption(Option_t *option="")
TGo4Picture * LPic(Int_t nline, Int_t ncol)
void ClearRange(Int_t naxis=-1)
void SetXAxisAttTime(Bool_t timedisplay, const char *format, Int_t index=UndefIndex)
void SetTitleAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t textsize=0.)
TList * GetSpecialObjects() const