ROOT  6.06/09
Reference Guide
TCreatePrimitives.h
Go to the documentation of this file.
1 // @(#)root/gpad:$Id: TCreatePrimitives.h,v 1.0
2 
3 /*************************************************************************
4  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef ROOT_TCreatePrimitives
12 #define ROOT_TCreatePrimitives
13 
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TCreatePrimitives //
18 // //
19 // Creates new primitives. //
20 // //
21 // The functions in this static class are called by TPad::ExecuteEvent //
22 // to create new primitives in gPad from the TPad toolbar. //
23 // //
24 //////////////////////////////////////////////////////////////////////////
25 
26 #ifndef ROOT_Rtypes
27 #include "Rtypes.h"
28 #endif
29 
30 #include "TLatex.h"
31 #include "TCurlyArc.h"
32 #include "TArrow.h"
33 #include "TArc.h"
34 #include "TPavesText.h"
35 #include "TPaveLabel.h"
36 #include "TDiamond.h"
37 #include "TGraph.h"
38 
40 
41 private:
42 
43  static TLine *fgLine;
44  static TLatex *fgText;
46  static TArrow *fgArrow;
47  static TCurlyArc *fgCArc;
48  static TArc *fgArc;
50  static TPave *fgPave;
55  static TGraph *fgPolyLine;
56  static TBox *fgPadBBox;
57 
58 public:
59 
61  virtual ~TCreatePrimitives();
62  static void Ellipse(Int_t event, Int_t px, Int_t py,Int_t mode);
63  static void Line(Int_t event, Int_t px, Int_t py, Int_t mode);
64  static void Pad(Int_t event, Int_t px, Int_t py, Int_t);
65  static void Pave(Int_t event, Int_t px, Int_t py, Int_t mode);
66  static void PolyLine(Int_t event, Int_t px, Int_t py, Int_t mode);
67  static void Text(Int_t event, Int_t px, Int_t py, Int_t mode);
68 };
69 
70 #endif
static TPave * fgPave
static TGraph * fgPolyLine
static void PolyLine(Int_t event, Int_t px, Int_t py, Int_t mode)
Create a new PolyLine in gPad.
Create a Box.
Definition: TBox.h:44
virtual ~TCreatePrimitives()
TCreatePrimitives destructor.
int Int_t
Definition: RtypesCore.h:41
static TLatex * fgText
static void Text(Int_t event, Int_t px, Int_t py, Int_t mode)
Create a new TLatex at the cursor position in gPad.
A TBox with a bordersize and a shadow option.
Definition: TPave.h:31
static TDiamond * fgDiamond
static TArc * fgArc
static TBox * fgPadBBox
Implements curly or wavy polylines used to draw Feynman diagrams.
Definition: TCurlyLine.h:32
To draw Mathematical Formula.
Definition: TLatex.h:33
Creates new primitives.
static TCurlyLine * fgCLine
static TEllipse * fgEllipse
A Pave (see TPave) with a text centered in the Pave.
Definition: TPaveLabel.h:32
Create an Arc.
Definition: TArc.h:29
static TPaveText * fgPaveText
Draw a Diamond.
Definition: TDiamond.h:35
static TArrow * fgArrow
A simple line.
Definition: TLine.h:41
static TPavesText * fgPavesText
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:35
static void Pad(Int_t event, Int_t px, Int_t py, Int_t)
Create a new pad in gPad.
static TPaveLabel * fgPaveLabel
Draw Ellipses.
Definition: TEllipse.h:44
static TCurlyArc * fgCArc
A Graph is a graphics object made of two arrays X and Y with npoints each.
Definition: TGraph.h:53
static void Line(Int_t event, Int_t px, Int_t py, Int_t mode)
Create a new line/arrow in this gPad.
Draw all kinds of Arrows.
Definition: TArrow.h:35
static TLine * fgLine
A PaveText (see TPaveText) with several stacked paves.
Definition: TPavesText.h:28
static void Pave(Int_t event, Int_t px, Int_t py, Int_t mode)
Create a new pavetext in gPad.
Implements curly or wavy arcs used to draw Feynman diagrams.
Definition: TCurlyArc.h:25
TCreatePrimitives()
TCreatePrimitives default constructor.
static void Ellipse(Int_t event, Int_t px, Int_t py, Int_t mode)
Create a new arc/ellipse in this gPad.