Logo ROOT   6.07/09
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
TCreatePrimitives Class Reference

Creates new primitives.

The functions in this static class are called by TPad::ExecuteEvent to create new primitives in gPad from the TPad toolbar.

Definition at line 28 of file TCreatePrimitives.h.

Public Member Functions

 TCreatePrimitives ()
 TCreatePrimitives default constructor. More...
 
virtual ~TCreatePrimitives ()
 TCreatePrimitives destructor. More...
 

Static Public Member Functions

static void Ellipse (Int_t event, Int_t px, Int_t py, Int_t mode)
 Create a new arc/ellipse in this gPad. More...
 
static void Line (Int_t event, Int_t px, Int_t py, Int_t mode)
 Create a new line/arrow in this gPad. More...
 
static void Pad (Int_t event, Int_t px, Int_t py, Int_t)
 Create a new pad in gPad. More...
 
static void Pave (Int_t event, Int_t px, Int_t py, Int_t mode)
 Create a new pavetext in gPad. More...
 
static void PolyLine (Int_t event, Int_t px, Int_t py, Int_t mode)
 Create a new PolyLine in gPad. More...
 
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. More...
 

Static Private Attributes

static TArcfgArc = 0
 
static TArrowfgArrow = 0
 
static TCurlyArcfgCArc = 0
 
static TCurlyLinefgCLine = 0
 
static TDiamondfgDiamond = 0
 
static TEllipsefgEllipse = 0
 
static TLinefgLine = 0
 
static TBoxfgPadBBox = 0
 
static TPavefgPave = 0
 
static TPaveLabelfgPaveLabel = 0
 
static TPavesTextfgPavesText = 0
 
static TPaveTextfgPaveText = 0
 
static TGraphfgPolyLine = 0
 
static TLatexfgText = 0
 

#include <TCreatePrimitives.h>

Constructor & Destructor Documentation

TCreatePrimitives::TCreatePrimitives ( )

TCreatePrimitives default constructor.

Definition at line 53 of file TCreatePrimitives.cxx.

TCreatePrimitives::~TCreatePrimitives ( )
virtual

TCreatePrimitives destructor.

Definition at line 60 of file TCreatePrimitives.cxx.

Member Function Documentation

void TCreatePrimitives::Ellipse ( Int_t  event,
Int_t  px,
Int_t  py,
Int_t  mode 
)
static

Create a new arc/ellipse in this gPad.

  • Click left button to indicate arrow starting position.
  • Release left button to terminate the arrow.

Definition at line 70 of file TCreatePrimitives.cxx.

void TCreatePrimitives::Line ( Int_t  event,
Int_t  px,
Int_t  py,
Int_t  mode 
)
static

Create a new line/arrow in this gPad.

  • Click left button to indicate arrow starting position.
  • Release left button to terminate the arrow.

Definition at line 158 of file TCreatePrimitives.cxx.

void TCreatePrimitives::Pad ( Int_t  event,
Int_t  px,
Int_t  py,
Int_t   
)
static

Create a new pad in gPad.

  • Click left button to indicate one corner of the pad.
  • Click left button to indicate the opposite corner.

The new pad is inserted in the pad where the first point is selected.

Definition at line 274 of file TCreatePrimitives.cxx.

void TCreatePrimitives::Pave ( Int_t  event,
Int_t  px,
Int_t  py,
Int_t  mode 
)
static

Create a new pavetext in gPad.

  • Click left button to indicate one corner of the pavelabel.
  • Release left button at the opposite corner.

Definition at line 356 of file TCreatePrimitives.cxx.

void TCreatePrimitives::PolyLine ( Int_t  event,
Int_t  px,
Int_t  py,
Int_t  mode 
)
static

Create a new PolyLine in gPad.

  • Click left button to indicate a new point.
  • Click left button at same place or double click to close the polyline.

Definition at line 572 of file TCreatePrimitives.cxx.

void TCreatePrimitives::Text ( Int_t  event,
Int_t  px,
Int_t  py,
Int_t  mode 
)
static

Create a new TLatex at the cursor position in gPad.

  • Click left button to indicate the text position.

Definition at line 659 of file TCreatePrimitives.cxx.

Member Data Documentation

TArc * TCreatePrimitives::fgArc = 0
staticprivate

Definition at line 37 of file TCreatePrimitives.h.

TArrow * TCreatePrimitives::fgArrow = 0
staticprivate

Definition at line 35 of file TCreatePrimitives.h.

TCurlyArc * TCreatePrimitives::fgCArc = 0
staticprivate

Definition at line 36 of file TCreatePrimitives.h.

TCurlyLine * TCreatePrimitives::fgCLine = 0
staticprivate

Definition at line 34 of file TCreatePrimitives.h.

TDiamond * TCreatePrimitives::fgDiamond = 0
staticprivate

Definition at line 42 of file TCreatePrimitives.h.

TEllipse * TCreatePrimitives::fgEllipse = 0
staticprivate

Definition at line 38 of file TCreatePrimitives.h.

TLine * TCreatePrimitives::fgLine = 0
staticprivate

Definition at line 32 of file TCreatePrimitives.h.

TBox * TCreatePrimitives::fgPadBBox = 0
staticprivate

Definition at line 45 of file TCreatePrimitives.h.

TPave * TCreatePrimitives::fgPave = 0
staticprivate

Definition at line 39 of file TCreatePrimitives.h.

TPaveLabel * TCreatePrimitives::fgPaveLabel = 0
staticprivate

Definition at line 43 of file TCreatePrimitives.h.

TPavesText * TCreatePrimitives::fgPavesText = 0
staticprivate

Definition at line 41 of file TCreatePrimitives.h.

TPaveText * TCreatePrimitives::fgPaveText = 0
staticprivate

Definition at line 40 of file TCreatePrimitives.h.

TGraph * TCreatePrimitives::fgPolyLine = 0
staticprivate

Definition at line 44 of file TCreatePrimitives.h.

TLatex * TCreatePrimitives::fgText = 0
staticprivate

Definition at line 33 of file TCreatePrimitives.h.


The documentation for this class was generated from the following files: