Logo ROOT  
Reference Guide
Go to the documentation of this file.
1// @(#)root/gpad:$Id$
2// Author: Rene Brun 03/07/96
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 *************************************************************************/
12#ifndef ROOT_TDialogCanvas
13#define ROOT_TDialogCanvas
16#include "TCanvas.h"
17#include "TAttText.h"
19class TDialogCanvas : public TCanvas, public TAttText {
22 TDialogCanvas(const TDialogCanvas &) = delete;
26 TObject *fRefObject{nullptr}; ///< Pointer to object to set attributes
27 TPad *fRefPad{nullptr}; ///< Pad containing object
31 TDialogCanvas(const char *name, const char *title, Int_t ww, Int_t wh);
32 TDialogCanvas(const char *name, const char *title, Int_t wtopx, Int_t wtopy, UInt_t ww, UInt_t wh);
33 virtual ~TDialogCanvas();
34 virtual void Apply(const char *action="");
35 virtual void BuildStandardButtons();
36 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;
37 TObject *GetRefObject() const { return fRefObject; }
38 TPad *GetRefPad() const { return fRefPad; }
39 void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2) override;
40 void RecursiveRemove(TObject *obj) override;
41 void SetBorderMode(Short_t bordermode) override { fBorderMode = bordermode; }
42 void SetGrid(Int_t valuex = 1, Int_t valuey = 1) override;
43 void SetLogx(Int_t value = 1) override;
44 void SetLogy(Int_t value = 1) override;
45 void SetName(const char *name) override { fName = name; }
46 virtual void SetRefObject(TObject *obj) { fRefObject = obj; }
47 virtual void SetRefPad(TPad *pad) { fRefPad = pad; }
48 void x3d(Option_t *option = "") override;
50 ClassDefOverride(TDialogCanvas,0) //A specialized canvas to set attributes.
57inline void TDialogCanvas::x3d(Option_t *) { }
int Int_t
Definition: RtypesCore.h:45
unsigned int UInt_t
Definition: RtypesCore.h:46
float Float_t
Definition: RtypesCore.h:57
short Short_t
Definition: RtypesCore.h:39
double Double_t
Definition: RtypesCore.h:59
const char Option_t
Definition: RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
char name[80]
Definition: TGX11.cxx:110
Text Attributes class.
Definition: TAttText.h:18
The Canvas class.
Definition: TCanvas.h:23
A canvas specialized to set attributes.
Definition: TDialogCanvas.h:19
void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
Set world coordinate system for the pad.
void SetLogx(Int_t value=1) override
Definition: TDialogCanvas.h:55
void SetGrid(Int_t valuex=1, Int_t valuey=1) override
Definition: TDialogCanvas.h:54
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
Definition: TDialogCanvas.h:53
virtual ~TDialogCanvas()
DialogCanvas default destructor.
TObject * fRefObject
Pointer to object to set attributes.
Definition: TDialogCanvas.h:26
void RecursiveRemove(TObject *obj) override
Recursively remove object from a pad and its sub-pads.
void x3d(Option_t *option="") override
Deprecated: use TPad::GetViewer3D() instead.
Definition: TDialogCanvas.h:57
TDialogCanvas(const TDialogCanvas &)=delete
void SetBorderMode(Short_t bordermode) override
Definition: TDialogCanvas.h:41
virtual void SetRefPad(TPad *pad)
Definition: TDialogCanvas.h:47
TPad * GetRefPad() const
Definition: TDialogCanvas.h:38
TPad * fRefPad
Pad containing object.
Definition: TDialogCanvas.h:27
virtual void Apply(const char *action="")
Called when the APPLY button is executed.
DialogCanvas default constructor.
virtual void SetRefObject(TObject *obj)
Definition: TDialogCanvas.h:46
TDialogCanvas & operator=(const TDialogCanvas &)=delete
TObject * GetRefObject() const
Definition: TDialogCanvas.h:37
virtual void BuildStandardButtons()
Create APPLY, gStyle and CLOSE buttons.
void SetLogy(Int_t value=1) override
Definition: TDialogCanvas.h:56
void SetName(const char *name) override
Set canvas name. In case name is an empty string, a default name is set.
Definition: TDialogCanvas.h:45
Mother of all ROOT objects.
Definition: TObject.h:41
The most important graphics class in the ROOT system.
Definition: TPad.h:28
TString fName
Pad name.
Definition: TPad.h:109
Short_t fBorderMode
Bordermode (-1=down, 0 = no border, 1=up)
Definition: TPad.h:98