Logo ROOT  
Reference Guide
TAttCanvas.h
Go to the documentation of this file.
1// @(#)root/gpad:$Id$
2// Author: Rene Brun 12/12/94
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_TAttCanvas
13#define ROOT_TAttCanvas
14
15#include "Rtypes.h"
16
18private:
19 Float_t fXBetween; ///< X distance between pads
20 Float_t fYBetween; ///< Y distance between pads
21 Float_t fTitleFromTop; ///< Y distance of Global Title from top
22 Float_t fXdate; ///< X position where to draw the date
23 Float_t fYdate; ///< X position where to draw the date
24 Float_t fAdate; ///< Alignment for the date
25
26public:
27 TAttCanvas();
28 virtual ~TAttCanvas();
29 virtual void Copy(TAttCanvas &attcanvas) const;
30 Float_t GetAdate() const { return fAdate;}
32 Float_t GetXBetween() const { return fXBetween;}
33 Float_t GetXdate() const { return fXdate;}
34 Float_t GetYBetween() const { return fYBetween;}
35 Float_t GetYdate() const { return fYdate;}
36 virtual void Print(Option_t *option="") const;
37 virtual void ResetAttCanvas(Option_t *option="");
38 virtual void SetAdate(Float_t adate) { fAdate=adate;}
39 virtual void SetTitleFromTop(Float_t titlefromtop)
40 { fTitleFromTop=titlefromtop;}
41 virtual void SetXBetween(Float_t xbetween) { fXBetween=xbetween;}
42 virtual void SetXdate(Float_t xdate) { fXdate=xdate;}
43 virtual void SetYBetween(Float_t ybetween) { fYBetween=ybetween;}
44 virtual void SetYdate(Float_t ydate) { fYdate=ydate;}
45
46 ClassDef(TAttCanvas,1) //Canvas attributes
47};
48
49#endif
50
float Float_t
Definition: RtypesCore.h:55
const char Option_t
Definition: RtypesCore.h:64
#define ClassDef(name, id)
Definition: Rtypes.h:322
Manages canvas attributes.
Definition: TAttCanvas.h:17
virtual void SetTitleFromTop(Float_t titlefromtop)
Definition: TAttCanvas.h:39
Float_t fYBetween
Y distance between pads.
Definition: TAttCanvas.h:20
virtual void SetYdate(Float_t ydate)
Definition: TAttCanvas.h:44
Float_t fXdate
X position where to draw the date.
Definition: TAttCanvas.h:22
virtual void SetAdate(Float_t adate)
Definition: TAttCanvas.h:38
Float_t GetXBetween() const
Definition: TAttCanvas.h:32
virtual void Copy(TAttCanvas &attcanvas) const
Copy constructor.
Definition: TAttCanvas.cxx:42
virtual void SetYBetween(Float_t ybetween)
Definition: TAttCanvas.h:43
TAttCanvas()
Default constructor.
Definition: TAttCanvas.cxx:27
virtual void Print(Option_t *option="") const
Print canvas attributes.
Definition: TAttCanvas.cxx:55
Float_t GetAdate() const
Definition: TAttCanvas.h:30
virtual ~TAttCanvas()
Destructor.
Definition: TAttCanvas.cxx:35
virtual void SetXdate(Float_t xdate)
Definition: TAttCanvas.h:42
virtual void ResetAttCanvas(Option_t *option="")
Print canvas attributes.
Definition: TAttCanvas.cxx:62
Float_t fYdate
X position where to draw the date.
Definition: TAttCanvas.h:23
Float_t fTitleFromTop
Y distance of Global Title from top.
Definition: TAttCanvas.h:21
Float_t GetYBetween() const
Definition: TAttCanvas.h:34
Float_t GetTitleFromTop() const
Definition: TAttCanvas.h:31
Float_t fXBetween
X distance between pads.
Definition: TAttCanvas.h:19
virtual void SetXBetween(Float_t xbetween)
Definition: TAttCanvas.h:41
Float_t fAdate
Alignment for the date.
Definition: TAttCanvas.h:24
Float_t GetXdate() const
Definition: TAttCanvas.h:33
Float_t GetYdate() const
Definition: TAttCanvas.h:35