Logo ROOT   6.10/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 26 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 ( )

TCreatePrimitives default constructor.

Definition at line 53 of file TCreatePrimitives.cxx.

◆ ~TCreatePrimitives()

TCreatePrimitives::~TCreatePrimitives ( )
virtual

TCreatePrimitives destructor.

Definition at line 60 of file TCreatePrimitives.cxx.

Member Function Documentation

◆ Ellipse()

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.

◆ Line()

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.

◆ Pad()

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.

◆ Pave()

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.

◆ PolyLine()

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.

◆ Text()

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

◆ fgArc

TArc * TCreatePrimitives::fgArc = 0
staticprivate

Definition at line 35 of file TCreatePrimitives.h.

◆ fgArrow

TArrow * TCreatePrimitives::fgArrow = 0
staticprivate

Definition at line 33 of file TCreatePrimitives.h.

◆ fgCArc

TCurlyArc * TCreatePrimitives::fgCArc = 0
staticprivate

Definition at line 34 of file TCreatePrimitives.h.

◆ fgCLine

TCurlyLine * TCreatePrimitives::fgCLine = 0
staticprivate

Definition at line 32 of file TCreatePrimitives.h.

◆ fgDiamond

TDiamond * TCreatePrimitives::fgDiamond = 0
staticprivate

Definition at line 40 of file TCreatePrimitives.h.

◆ fgEllipse

TEllipse * TCreatePrimitives::fgEllipse = 0
staticprivate

Definition at line 36 of file TCreatePrimitives.h.

◆ fgLine

TLine * TCreatePrimitives::fgLine = 0
staticprivate

Definition at line 30 of file TCreatePrimitives.h.

◆ fgPadBBox

TBox * TCreatePrimitives::fgPadBBox = 0
staticprivate

Definition at line 43 of file TCreatePrimitives.h.

◆ fgPave

TPave * TCreatePrimitives::fgPave = 0
staticprivate

Definition at line 37 of file TCreatePrimitives.h.

◆ fgPaveLabel

TPaveLabel * TCreatePrimitives::fgPaveLabel = 0
staticprivate

Definition at line 41 of file TCreatePrimitives.h.

◆ fgPavesText

TPavesText * TCreatePrimitives::fgPavesText = 0
staticprivate

Definition at line 39 of file TCreatePrimitives.h.

◆ fgPaveText

TPaveText * TCreatePrimitives::fgPaveText = 0
staticprivate

Definition at line 38 of file TCreatePrimitives.h.

◆ fgPolyLine

TGraph * TCreatePrimitives::fgPolyLine = 0
staticprivate

Definition at line 42 of file TCreatePrimitives.h.

◆ fgText

TLatex * TCreatePrimitives::fgText = 0
staticprivate

Definition at line 31 of file TCreatePrimitives.h.


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