File indexing completed on 2025-01-18 10:12:10
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TInspectCanvas
0013 #define ROOT_TInspectCanvas
0014
0015
0016 #include "TCanvas.h"
0017 #include "TAttText.h"
0018
0019 class TButton;
0020
0021 class TInspectCanvas : public TCanvas, public TAttText {
0022
0023 protected:
0024
0025 TButton *fBackward{nullptr};
0026 TButton *fForward{nullptr};
0027 TList *fObjects{nullptr};
0028 TObject *fCurObject{nullptr};
0029
0030 public:
0031 TInspectCanvas();
0032 TInspectCanvas(UInt_t ww, UInt_t wh);
0033 ~TInspectCanvas() override;
0034 TButton *GetBackward() const { return fBackward; }
0035 TButton *GetForward() const { return fForward; }
0036 TObject *GetCurObject() const { return fCurObject; }
0037 TList *GetObjects() const { return fObjects; }
0038 static void GoBackward();
0039 static void GoForward();
0040 static void Inspector(TObject *obj);
0041 virtual void InspectObject(TObject *obj);
0042 void RecursiveRemove(TObject *obj) override;
0043
0044
0045 void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override;
0046 void SetGrid(Int_t valuex = 1, Int_t valuey = 1) override;
0047 void SetGridx(Int_t value = 1) override;
0048 void SetGridy(Int_t value = 1) override;
0049 void SetLogx(Int_t value = 1) override;
0050 void SetLogy(Int_t value = 1) override;
0051 void SetLogz(Int_t value = 1) override;
0052 void SetTickx(Int_t value = 1) override;
0053 void SetTicky(Int_t value = 1) override;
0054 void x3d(Option_t *option="") override;
0055
0056 ClassDefOverride(TInspectCanvas,1)
0057 };
0058
0059 inline void TInspectCanvas::Divide(Int_t, Int_t, Float_t, Float_t, Int_t) { }
0060 inline void TInspectCanvas::SetGrid(Int_t, Int_t) { }
0061 inline void TInspectCanvas::SetGridx(Int_t) { }
0062 inline void TInspectCanvas::SetGridy(Int_t) { }
0063 inline void TInspectCanvas::SetLogx(Int_t) { }
0064 inline void TInspectCanvas::SetLogy(Int_t) { }
0065 inline void TInspectCanvas::SetLogz(Int_t) { }
0066 inline void TInspectCanvas::SetTickx(Int_t) { }
0067 inline void TInspectCanvas::SetTicky(Int_t) { }
0068 inline void TInspectCanvas::x3d(Option_t *) { }
0069
0070 #endif