Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TInspectCanvas.h
Go to the documentation of this file.
1// @(#)root/gpad:$Id$
2// Author: Rene Brun 08/01/2000
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TInspectCanvas
13#define ROOT_TInspectCanvas
14
15
16#include "TCanvas.h"
17#include "TAttText.h"
18
19class TButton;
20
21class TInspectCanvas : public TCanvas, public TAttText {
22
23protected:
24
25 TButton *fBackward{nullptr}; ///< Pointer to the Backward button
26 TButton *fForward{nullptr}; ///< Pointer to the Forward button
27 TList *fObjects{nullptr}; ///< List of objects inspected
28 TObject *fCurObject{nullptr}; ///< Pointer to object being inspected
29
30public:
33 ~TInspectCanvas() override;
34 TButton *GetBackward() const { return fBackward; }
35 TButton *GetForward() const { return fForward; }
36 TObject *GetCurObject() const { return fCurObject; }
37 TList *GetObjects() const { return fObjects; }
38 static void GoBackward();
39 static void GoForward();
40 static void Inspector(TObject *obj);
41 virtual void InspectObject(TObject *obj);
42 void RecursiveRemove(TObject *obj) override;
43
44 //dummies
45 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;
46 void SetGrid(Int_t valuex = 1, Int_t valuey = 1) override;
47 void SetGridx(Int_t value = 1) override;
48 void SetGridy(Int_t value = 1) override;
49 void SetLogx(Int_t value = 1) override;
50 void SetLogy(Int_t value = 1) override;
51 void SetLogz(Int_t value = 1) override;
52 void SetTickx(Int_t value = 1) override;
53 void SetTicky(Int_t value = 1) override;
54 void x3d(Option_t *option="") override;
55
56 ClassDefOverride(TInspectCanvas,1) //The canvas Inspector
57};
58
68inline void TInspectCanvas::x3d(Option_t *) { }
69
70#endif
int Int_t
Definition RtypesCore.h:45
unsigned int UInt_t
Definition RtypesCore.h:46
float Float_t
Definition RtypesCore.h:57
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Text Attributes class.
Definition TAttText.h:18
A TButton object is a user interface object.
Definition TButton.h:18
The Canvas class.
Definition TCanvas.h:23
A TInspectCanvas is a canvas specialized to inspect Root objects.
TButton * fBackward
Pointer to the Backward button.
~TInspectCanvas() override
InspectCanvas default destructor.
TInspectCanvas()
InspectCanvas default constructor.
static void Inspector(TObject *obj)
static function , interface to InspectObject.
void SetGridx(Int_t value=1) override
TList * fObjects
List of objects inspected.
void SetTickx(Int_t value=1) override
TObject * fCurObject
Pointer to object being inspected.
void SetLogz(Int_t value=1) override
TButton * GetBackward() const
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
TList * GetObjects() const
void SetLogy(Int_t value=1) override
void RecursiveRemove(TObject *obj) override
Recursively remove object from the list of objects.
TObject * GetCurObject() const
void x3d(Option_t *option="") override
Deprecated: use TPad::GetViewer3D() instead.
TButton * GetForward() const
static void GoBackward()
static function , inspect previous object
TButton * fForward
Pointer to the Forward button.
void SetGridy(Int_t value=1) override
void SetTicky(Int_t value=1) override
static void GoForward()
static function , inspect next object
virtual void InspectObject(TObject *obj)
Dump contents of obj in a graphics canvas.
void SetLogx(Int_t value=1) override
void SetGrid(Int_t valuex=1, Int_t valuey=1) override
A doubly linked list.
Definition TList.h:38
Mother of all ROOT objects.
Definition TObject.h:41