GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4Picture.h
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4PICTURE_H
15 #define TGO4PICTURE_H
16 
17 #include "TNamed.h"
18 #include "TArrayL.h"
19 
20 class TVirtualPad;
21 class TPad;
22 class TObjArray;
23 class TAttLine;
24 class TAttFill;
25 class TAttMarker;
26 class TStyle;
27 class TString;
28 class TAxis;
29 class TFrame;
30 class TH1;
31 class THStack;
32 class TGraph;
33 class TPaveStats;
34 class TPaveText;
35 class TList;
36 
37 class TGo4Picture : public TNamed {
38  public:
39  enum Indexes { UndefIndex = -2, PictureIndex = -1 };
40 
41  TGo4Picture();
42  TGo4Picture(const char *name, const char *title, Int_t ndivy = 1, Int_t ndivx = 1);
43  virtual ~TGo4Picture();
44 
45  // ====== USER FUNCTIONS to setup picture =====================
46 
47  void SetDrawHeader(Bool_t draw = kTRUE);
48  Bool_t IsDrawHeader() const;
49 
50  // division on subpictures
51 
52  void SetDivision(Int_t ndivy, Int_t ndivx);
53  Int_t GetDivX() const { return fiNDivX; }
54  Int_t GetDivY() const { return fiNDivY; }
55  Bool_t IsDivided() const { return (GetDivX() != 1) || (GetDivY() != 1); }
56 
57  TGo4Picture& operator()(int posy, int posx) { return *Pic(posy,posx); }
58  TGo4Picture *Pic(Int_t posy, Int_t posx);
59  TGo4Picture *FindPic(Int_t posy, Int_t posx);
60 
61  // GOOSY style of picture division
62 
63  void SetLinesDivision(Int_t numlines, const Int_t *numbers);
64  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,
65  Int_t n5=1, Int_t n6=1, Int_t n7=1, Int_t n8=1, Int_t n9=1);
66  TGo4Picture *LPic(Int_t nline, Int_t ncol);
67 
68  // add histogram (name) to picture or subpicture
69  void AddH1(TH1 *histo, Option_t *DrawOption = nullptr);
70  void AddH1(Int_t posy, Int_t posx, TH1 *histo, Option_t *DrawOption = nullptr);
71 
72  // add stack (name) to picture or subpicture
73  void AddHStack(THStack *st, Option_t *DrawOption = nullptr);
74  void AddHStack(Int_t posy, Int_t posx, THStack *st, Option_t *DrawOption = nullptr);
75 
76  // add TGraph object (name) to picture
77  void AddGraph(TGraph *gr, Option_t *DrawOption = nullptr);
78  void AddGraph(Int_t posy, Int_t posx, TGraph *gr, Option_t *DrawOption = nullptr);
79 
80  // add condition (name) to picture or subpicture
81  void AddCondition(TNamed *cond = nullptr);
82  void AddCondition(Int_t posy, Int_t posx, TNamed *cond = nullptr);
83 
84  // clear names of any objects (include histos and conditions) from subpicture (may be recursive)
85  void ClearObjNames(Bool_t recursive = kFALSE);
86 
87  // sets viewable range for X and Y axis
88  void SetRangeX(Double_t min, Double_t max);
89  Bool_t GetRangeX(Double_t &min, Double_t &max) const;
90  void ClearRangeX();
91  void SetRangeY(Double_t min, Double_t max);
92  Bool_t GetRangeY(Double_t &min, Double_t &max) const;
93  void ClearRangeY();
94  void SetRangeZ(Double_t min, Double_t max);
95  Bool_t GetRangeZ(Double_t &min, Double_t &max) const;
96  void ClearRangeZ();
97 
98  // set logarithmic scale for selected axis
99  void SetLogScale(Int_t nscale = 0, Int_t zn = 1);
100  Int_t GetLogScale(Int_t nscale = 0) const;
101  void GetLogScales(TVirtualPad *pad);
102  void ClearLogScales();
103 
104  // select index from object list, to which following options will be applied
105  void SetSelectedIndex(Int_t index = PictureIndex) { fiLastIndex = index; }
106 
107  // sets line attributes
108  void SetLineAtt(Color_t color, Style_t style, Width_t width, Int_t index = UndefIndex);
109  void SetLineAtt(TAttLine *line, Int_t index = UndefIndex);
110  Bool_t GetLineAtt(TAttLine *line, Int_t index = UndefIndex) const;
111  void ClearLineAtt(Int_t index = UndefIndex);
112 
113  // sets fill attributes
114  void SetFillAtt(Color_t color, Style_t style, Int_t index = UndefIndex);
115  void SetFillAtt(TAttFill *fill, Int_t index = UndefIndex);
116  Bool_t GetFillAtt(TAttFill *fill, Int_t index = UndefIndex) const;
117  void ClearFillAtt(Int_t index = UndefIndex);
118 
119  // set marker attributes
120  void SetMarkerAtt(Color_t color, Size_t size, Style_t style, Int_t index = UndefIndex);
121  void SetMarkerAtt(TAttMarker *marker, Int_t index = UndefIndex);
122  Bool_t GetMarkerAtt(TAttMarker *marker, Int_t index = UndefIndex) const;
123  void ClearMarkerAtt(Int_t index = UndefIndex);
124 
125  // set rebin attributes
126  void SetRebinX(Int_t ngroupx, Int_t index = UndefIndex);
127  void SetRebinY(Int_t ngroupy, Int_t index = UndefIndex);
128  Int_t GetRebinX(Int_t index = UndefIndex) const;
129  Int_t GetRebinY(Int_t index = UndefIndex) const;
130  void ClearRebin(Int_t index = UndefIndex);
131 
132  // copy all available attributes from object to picture
133  void SetDrawAttributes(TObject *obj, Int_t index = UndefIndex);
134  // assign all available attributes from picture to object
135  void GetDrawAttributes(TObject *obj, Int_t index = UndefIndex) const;
136 
137  // set string draw options
138  void SetDrawOption(Option_t *option = "") override
139  {
140  SetDrawOption(option, UndefIndex);
141  }
142 
143  virtual void SetDrawOption(Option_t *option, Int_t index);
144 
145  Option_t *GetDrawOption() const override
146  {
147  return GetDrawOption(UndefIndex);
148  }
149 
150  virtual Option_t *GetDrawOption(Int_t index) const;
151 
152  // set draw style (Go4GUI index like)
153  void SetHisStats(Bool_t on);
154  Bool_t IsHisStats() const;
155 
156  void SetFrameAttr(Double_t left, Double_t top, Double_t right, Double_t bottom);
157  void SetFrameAttr(TPad *pad);
158  Bool_t GetFrameAttr(TPad *pad) const;
159 
160  void SetStatsAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2,
161  Int_t optstat = 1111, const char *statformat = "6.4g",
162  Int_t optfit = 1111, const char *fitformat = "5.4g");
163  void SetStatsAttr(TPaveStats* stats);
164  Bool_t GetStatsAttr(TPaveStats* stats) const;
165 
166  void SetHisContour(Int_t nlvl);
167  Int_t GetHisContour() const;
168 
169  void SetHisTitle(bool on);
170  Bool_t IsHisTitle() const;
171 
172  void SetTitleAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t textsize = 0.);
173  void SetTitleAttr(TPaveText *title);
174  Bool_t HasTitleAttr();
175  Bool_t GetTitleAttr(TPaveText *title) const;
176 
177  void SetTitleTime(Bool_t on = kTRUE);
178  Bool_t IsTitleTime() const;
179 
180  void SetTitleDate(Bool_t on = kTRUE);
181  Bool_t IsTitleDate() const;
182 
183  void SetTitleItem(Bool_t on = kTRUE);
184  Bool_t IsTitleItem() const;
185 
186  void SetLegendDraw(bool on);
187  bool IsLegendDraw() const;
188 
189  void SetCrosshair(bool on);
190  bool IsCrosshair() const;
191 
192  void SetAutoScale(bool on);
193  bool IsAutoScale() const;
194 
195  void SetSuperimpose(bool on);
196  bool IsSuperimpose() const;
197 
198  void SetApplyToAll(bool on);
199  bool IsApplyToAll() const;
200 
201  void SetAutoZoom(bool on);
202  bool IsAutoZoom() const;
203 
204  void Draw(Option_t *option = "") override; // *MENU*
205 
206  void Clear(Option_t *option = "") override; // *MENU*
207 
208  void Print(Option_t *option = "") const override; // *MENU*
209 
210  void SavePrimitive(std::ostream &fs, Option_t *opt = "") override;
211 
212  // ====== end of USER FUNCTIONS ========================
213 
214  // add name of any object, which should be drawn in picture or sub-picture
215  void AddObjName(const char *name, Option_t *DrawOption = nullptr);
216  void AddObjName(Int_t posy, Int_t posx, const char *name, Option_t *DrawOption = nullptr);
217 
218  // adds only name of provided object
219  void AddObject(TObject *obj, Option_t *DrawOption = nullptr);
220  void AddObject(Int_t posy, Int_t posx, TObject *obj, Option_t *DrawOption = nullptr);
221 
222  void Reset() {}
223 
224  // move content from source picture
225  void UpdateFrom(TGo4Picture *source, TClass *selectedobjclass = nullptr);
226  void CopyOptionsFrom(TGo4Picture *source);
227 
228  Int_t GetNumObjNames() const;
229  const char *GetObjName(Int_t n) const;
230  Bool_t IsObjNames() const;
231 
232  // manipulation with special objects,
233  // which must be drawn on the panel / canvas
234  // This must be objects like markers, labels and so on
235  void AddSpecialObject(TObject *obj, Option_t *drawopt = nullptr);
236  void AddSpecialObjectXml(const char *xmlcode, Option_t *drawopt = nullptr);
237  TList *GetSpecialObjects() const { return fxSpecialObjects; }
238 
239  // set style object
240  void SetStyle(TStyle* style, Int_t index = UndefIndex);
241  TStyle* FindStyle(Int_t index = UndefIndex);
242  TStyle* GetStyle(Int_t index = UndefIndex);
243 
244  void SetAxisLabelFontSize(Int_t naxis, Float_t LabelSize, Int_t index = UndefIndex);
245  void SetAxisTitleFontSize(Int_t naxis, Float_t TitleSize, Int_t index = UndefIndex);
246  void SetAxisAtt(Int_t naxis,
247  Color_t AxisColor,
248  Color_t LabelColor,
249  Style_t LabelFont,
250  Float_t LabelOffset,
251  Float_t LabelSize,
252  Int_t Ndivisions,
253  Float_t TickLength,
254  Color_t TitleColor,
255  Style_t TitleFont,
256  Float_t TitleOffset,
257  Float_t TitleSize,
258  Bool_t decimals,
259  const char *ticks,
260  Int_t bits,
261  Int_t index = UndefIndex);
262 
263  // for the moment, use separate function to define x axis time format JAM
264  void SetXAxisAttTime(Bool_t timedisplay, const char *format, Int_t index = UndefIndex);
265 
266  Bool_t IsXAxisTimeDisplay() const;
267 
268  void SetXAxisTimeDisplay(Bool_t on);
269 
270  void SetXAxisTimeFormat(const char *format);
271 
272  const char *GetXAxisTimeFormat() const;
273 
274  void SetXYRatioOne(Bool_t on);
275  Bool_t IsXYRatioOne() const;
276 
277 // void SetDefaultRatio(Bool_t on);
278 // Bool_t CheckDefaultRatio();
279 
280  void SetPadAtt(Int_t BorderMode,
281  Int_t BorderSize,
282  Int_t Gridx,
283  Int_t Gridy,
284  Double_t Phi,
285  Double_t Theta,
286  Int_t Tickx,
287  Int_t Ticky,
288  Int_t index = PictureIndex);
289 
290  // fields, which are used in MainGUI to handle drawing
291 
292  void SetContentModified(bool on = true);
293  bool IsContentModified() const;
294 
295  void SetPadModified(bool on = true);
296  bool IsPadModified() const;
297 
298  void SetFullRangeDim(Int_t ndim);
299  Int_t GetFullRangeDim() const;
300  void SetFullRange(Int_t naxis, Double_t min, Double_t max);
301  Bool_t GetFullRange(Int_t naxis, Double_t& min, Double_t& max) const;
302  void ClearFullRange(Int_t naxis = -1);
303 
304  void SetRange(Int_t naxis, Double_t min, Double_t max);
305  Bool_t GetRange(Int_t naxis, Double_t& min, Double_t& max) const;
306  void ClearRange(Int_t naxis = -1);
307 
308  void ChangeDrawOption(Int_t kind, Int_t value);
309 
311  Long_t GetTotalSize();
312 
313  static void Add(TString &s, const char *buf) { s+=buf; }
314 
315  protected:
316  TGo4Picture(TGo4Picture& picture);
317  void AddSubPicture(TGo4Picture *pic);
318 
319  Int_t GetObjAttIndex(TObject *obj) const;
320 
321  void SetPosition(Int_t posy, Int_t posx);
322  Bool_t CheckPosition(Int_t posy, Int_t posx) const;
323 
324  Int_t FindOptPos(Short_t index, Short_t typ) const;
325  Int_t ExtendOptPos(Short_t index, Short_t typ);
326 
327  void SetOption(Short_t index, Short_t typ, Long_t value);
328  using TObject::GetOption;
329  Bool_t GetOption(Short_t index, Short_t typ, Long_t& value) const;
330  Long_t GetI(Short_t index, Short_t typ, Long_t def = 0) const;
331 
332  void SetOptionF(Short_t index, Short_t typ, Float_t value);
333  Bool_t GetOptionF(Short_t index, Short_t typ, Float_t& value) const;
334 
335  void SetOptionD(Short_t index, Short_t typ, Double_t value);
336  Bool_t GetOptionD(Short_t index, Short_t typ, Double_t& value) const;
337  Double_t GetD(Short_t index, Short_t typ, Double_t def = 0.) const;
338 
339  void SetObjOption(Short_t index, Short_t typ, TObject *obj);
340  TObject *GetObjOption(Short_t index, Short_t typ) const;
341 
342  void SetStrOption(Short_t index, Short_t typ, const char *value);
343  const char *GetStrOption(Short_t index, Short_t typ, const char *defvalue = nullptr) const;
344 
345  void ClearOption(Short_t index, Short_t typ);
346  void ClearOption(Int_t pos);
347  void ClearAllOptions(Short_t index = UndefIndex);
348 
349  void CheckIndex(Int_t &index) const;
350 
351  void DrawPic(TVirtualPad *pad);
352 
353  void PrintPic(int shift, Bool_t showopt);
354 
355  void SetH1Att(TH1 *h1, Int_t index = UndefIndex);
356  void GetH1Att(TH1 *h1, Int_t index = UndefIndex) const;
357  void SetAxisAtt(Int_t naxis, TAxis *axis, Int_t index = UndefIndex);
358  void GetAxisAtt(Int_t naxis, TAxis *axis, Int_t index = UndefIndex) const;
359  void SetPadAtt(TPad *pad, Int_t index = UndefIndex);
360  void GetPadAtt(TPad *pad, Int_t index = UndefIndex) const;
361 
362  void MakeScript(std::ostream &fs, const char *name);
363 
364  void MakeAxisScript(std::ostream &fs, const char *name, Int_t indx, Int_t naxis);
365 
366  private:
367  Int_t fiNDivX{1};
368  Int_t fiNDivY{1};
369 
370  Int_t fiPosX{0};
371  Int_t fiPosY{0};
372 
373  TObjArray *fxNames{nullptr};
374 
375  TObjArray *fxObjects{nullptr};
376 
377  TObjArray *fxSubPictures{nullptr};
378 
379  Int_t fiOptSize{0};
380  TArrayL fxOptIndex;
381  TArrayL fxOptValue;
382  TObjArray *fxOptObjects{nullptr};
383 
384  TList *fxSpecialObjects{nullptr};
385 
386  Int_t fiLastIndex{0};
387 
388  ClassDefOverride(TGo4Picture, 3)
389 };
390 
391 #endif //TGO4PICTURE_H
392 
393 
void SetStyle(TStyle *style, Int_t index=UndefIndex)
bool IsApplyToAll() const
Bool_t GetMarkerAtt(TAttMarker *marker, Int_t index=UndefIndex) const
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)
bool IsAutoScale() const
void SetHisContour(Int_t nlvl)
void AddSpecialObjectXml(const char *xmlcode, Option_t *drawopt=nullptr)
bool IsPadModified() const
void AddHStack(THStack *st, Option_t *DrawOption=nullptr)
Bool_t IsXAxisTimeDisplay() const
void SetAutoZoom(bool on)
void AddCondition(TNamed *cond=nullptr)
Bool_t CheckPosition(Int_t posy, Int_t posx) const
Bool_t IsHisTitle() const
void SetPosition(Int_t posy, Int_t posx)
Int_t fiNDivY
Definition: TGo4Picture.h:368
Int_t fiPosX
Definition: TGo4Picture.h:370
TObjArray * fxSubPictures
Definition: TGo4Picture.h:377
TArrayL fxOptIndex
Definition: TGo4Picture.h:380
void SetRangeY(Double_t min, Double_t max)
Bool_t IsTitleTime() const
void SetCrosshair(bool on)
void SetDrawHeader(Bool_t draw=kTRUE)
Int_t GetDivX() const
Definition: TGo4Picture.h:53
void SetObjOption(Short_t index, Short_t typ, TObject *obj)
Bool_t GetFillAtt(TAttFill *fill, Int_t index=UndefIndex) const
void CopyOptionsFrom(TGo4Picture *source)
TStyle * FindStyle(Int_t index=UndefIndex)
TList * fxSpecialObjects
Definition: TGo4Picture.h:384
void SetStrOption(Short_t index, Short_t typ, const char *value)
Int_t GetNumObjNames() const
Long_t GetI(Short_t index, Short_t typ, Long_t def=0) const
Int_t GetLogScale(Int_t nscale=0) const
void SetSelectedIndex(Int_t index=PictureIndex)
Definition: TGo4Picture.h:105
void PrintPic(int shift, Bool_t showopt)
void Print(Option_t *option="") const override
bool IsContentModified() const
void ClearLogScales()
void ClearAllOptions(Short_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)
TObjArray * fxObjects
Definition: TGo4Picture.h:375
Bool_t GetRangeZ(Double_t &min, Double_t &max) const
Double_t GetD(Short_t index, Short_t typ, Double_t def=0.) const
void ClearFillAtt(Int_t index=UndefIndex)
Bool_t GetOptionF(Short_t index, Short_t typ, Float_t &value) const
void SetOptionD(Short_t index, Short_t typ, Double_t value)
void SetHisTitle(bool on)
static void Add(TString &s, const char *buf)
Definition: TGo4Picture.h:313
void SetAxisTitleFontSize(Int_t naxis, Float_t TitleSize, Int_t index=UndefIndex)
Int_t FindOptPos(Short_t index, Short_t typ) const
void GetH1Att(TH1 *h1, Int_t index=UndefIndex) const
void SetTitleItem(Bool_t on=kTRUE)
bool IsCrosshair() const
void SetAxisLabelFontSize(Int_t naxis, Float_t LabelSize, Int_t index=UndefIndex)
void SetXAxisTimeFormat(const char *format)
void AddObject(TObject *obj, Option_t *DrawOption=nullptr)
Int_t GetRebinY(Int_t index=UndefIndex) const
TObject * GetObjOption(Short_t index, Short_t typ) const
Bool_t IsObjNames() const
void ChangeDrawOption(Int_t kind, Int_t value)
void ClearLineAtt(Int_t index=UndefIndex)
void DrawPic(TVirtualPad *pad)
TGo4Picture * Pic(Int_t posy, Int_t posx)
Bool_t GetStatsAttr(TPaveStats *stats) const
Int_t fiOptSize
Definition: TGo4Picture.h:379
Bool_t GetLineAtt(TAttLine *line, Int_t index=UndefIndex) const
void SetApplyToAll(bool on)
Bool_t GetFrameAttr(TPad *pad) const
void GetPadAtt(TPad *pad, Int_t index=UndefIndex) const
void ClearRebin(Int_t index=UndefIndex)
void SetFullRangeDim(Int_t ndim)
Bool_t HasTitleAttr()
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)
TObjArray * fxNames
Definition: TGo4Picture.h:373
void AddObjName(const char *name, Option_t *DrawOption=nullptr)
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)
TGo4Picture & operator()(int posy, int posx)
Definition: TGo4Picture.h:57
Int_t fiLastIndex
Definition: TGo4Picture.h:386
void GetAxisAtt(Int_t naxis, TAxis *axis, Int_t index=UndefIndex) const
void SetXAxisTimeDisplay(Bool_t on)
Bool_t IsDrawHeader() const
TObjArray * fxOptObjects
Definition: TGo4Picture.h:382
void SetRebinY(Int_t ngroupy, Int_t index=UndefIndex)
void AddSubPicture(TGo4Picture *pic)
Int_t GetRebinX(Int_t index=UndefIndex) const
void SetXYRatioOne(Bool_t on)
TList * GetSpecialObjects() const
Definition: TGo4Picture.h:237
void GetLogScales(TVirtualPad *pad)
void SetLogScale(Int_t nscale=0, Int_t zn=1)
Bool_t GetRangeX(Double_t &min, Double_t &max) const
bool IsLegendDraw() const
bool IsSuperimpose() const
const char * GetObjName(Int_t n) const
void Reset()
Definition: TGo4Picture.h:222
Bool_t IsHisStats() const
virtual ~TGo4Picture()
void SetOptionF(Short_t index, Short_t typ, Float_t value)
void SetLegendDraw(bool on)
Bool_t IsTitleItem() const
void Draw(Option_t *option="") override
Bool_t GetRangeY(Double_t &min, Double_t &max) const
void UpdateFrom(TGo4Picture *source, TClass *selectedobjclass=nullptr)
Int_t ExtendOptPos(Short_t index, Short_t typ)
Bool_t GetRange(Int_t naxis, Double_t &min, Double_t &max) const
Long_t GetTotalSize()
void ClearMarkerAtt(Int_t index=UndefIndex)
void SetOption(Short_t index, Short_t typ, Long_t value)
void SetLineAtt(Color_t color, Style_t style, Width_t width, Int_t index=UndefIndex)
void ClearRangeY()
TGo4Picture * FindPic(Int_t posy, Int_t posx)
TArrayL fxOptValue
Definition: TGo4Picture.h:381
void SetHisStats(Bool_t on)
void AddH1(TH1 *histo, Option_t *DrawOption=nullptr)
void SetLinesDivision(Int_t numlines, const Int_t *numbers)
void SetDrawOption(Option_t *option="") override
Definition: TGo4Picture.h:138
Int_t GetHisContour() const
void ClearRangeX()
void SetMarkerAtt(Color_t color, Size_t size, Style_t style, Int_t index=UndefIndex)
Int_t fiNDivX
Definition: TGo4Picture.h:367
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)
Bool_t GetOptionD(Short_t index, Short_t typ, Double_t &value) const
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)
void ClearRangeZ()
Int_t fiPosY
Definition: TGo4Picture.h:371
Bool_t IsXYRatioOne() const
Int_t GetFullRangeDim() const
const char * GetStrOption(Short_t index, Short_t typ, const char *defvalue=nullptr) const
void SetSuperimpose(bool on)
void SetRangeZ(Double_t min, Double_t max)
void CheckIndex(Int_t &index) const
void Clear(Option_t *option="") override
void SetDrawAttributes(TObject *obj, Int_t index=UndefIndex)
void SetPadModified(bool on=true)
bool IsAutoZoom() const
void ClearFullRange(Int_t naxis=-1)
TStyle * GetStyle(Int_t index=UndefIndex)
void AddGraph(TGraph *gr, Option_t *DrawOption=nullptr)
void SetAutoScale(bool on)
void MakeScript(std::ostream &fs, const char *name)
Int_t GetDivY() const
Definition: TGo4Picture.h:54
Bool_t GetTitleAttr(TPaveText *title) const
void SetContentModified(bool on=true)
const char * GetXAxisTimeFormat() const
void SetTitleDate(Bool_t on=kTRUE)
Bool_t GetOption(Short_t index, Short_t typ, Long_t &value) const
void AddSpecialObject(TObject *obj, Option_t *drawopt=nullptr)
void SetRebinX(Int_t ngroupx, Int_t index=UndefIndex)
TGo4Picture * LPic(Int_t nline, Int_t ncol)
Option_t * GetDrawOption() const override
Definition: TGo4Picture.h:145
Bool_t GetFullRange(Int_t naxis, Double_t &min, Double_t &max) const
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.)
void GetDrawAttributes(TObject *obj, Int_t index=UndefIndex) const
Bool_t IsTitleDate() const
void SavePrimitive(std::ostream &fs, Option_t *opt="") override
Int_t GetObjAttIndex(TObject *obj) const
Bool_t IsDivided() const
Definition: TGo4Picture.h:55