ROOT
6.07/01
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
tutorials
graphics
diamond.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_graphics
3
/// Draw a diamond.
4
///
5
/// \macro_image
6
/// \macro_code
7
///
8
/// \author Olivier Couet
9
10
TCanvas
*diamond(){
11
TCanvas
*c =
new
TCanvas
(
"c"
);
12
TDiamond
*d =
new
TDiamond
(.05,.1,.95,.8);
13
14
d->
AddText
(
"A TDiamond can contain any text."
);
15
16
d->
Draw
();
17
return
c
;
18
}
TDiamond::Draw
virtual void Draw(Option_t *option="")
Draw this diamond with its current attributes.
Definition:
TDiamond.cxx:94
c
return c
Definition:
entrylist_figure1.C:47
TPaveText::AddText
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
Definition:
TPaveText.cxx:160
TDiamond
Draw a Diamond.
Definition:
TDiamond.h:35
TCanvas
The Canvas class.
Definition:
TCanvas.h:48