ROOT  6.06/09
Reference Guide
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 39 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 TLinefgLine = 0
 
static TLatexfgText = 0
 
static TCurlyLinefgCLine = 0
 
static TArrowfgArrow = 0
 
static TCurlyArcfgCArc = 0
 
static TArcfgArc = 0
 
static TEllipsefgEllipse = 0
 
static TPavefgPave = 0
 
static TPaveTextfgPaveText = 0
 
static TPavesTextfgPavesText = 0
 
static TDiamondfgDiamond = 0
 
static TPaveLabelfgPaveLabel = 0
 
static TGraphfgPolyLine = 0
 
static TBoxfgPadBBox = 0
 

#include <TCreatePrimitives.h>

+ Collaboration diagram for TCreatePrimitives:

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.

Referenced by TPad::ExecuteEvent().

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.

Referenced by TPad::ExecuteEvent().

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 278 of file TCreatePrimitives.cxx.

Referenced by TPad::ExecuteEvent().

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 359 of file TCreatePrimitives.cxx.

Referenced by TPad::ExecuteEvent().

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 575 of file TCreatePrimitives.cxx.

Referenced by TPad::ExecuteEvent().

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 662 of file TCreatePrimitives.cxx.

Referenced by TPad::ExecuteEvent().

Member Data Documentation

TArc * TCreatePrimitives::fgArc = 0
staticprivate

Definition at line 48 of file TCreatePrimitives.h.

Referenced by Ellipse().

TArrow * TCreatePrimitives::fgArrow = 0
staticprivate

Definition at line 46 of file TCreatePrimitives.h.

Referenced by Line().

TCurlyArc * TCreatePrimitives::fgCArc = 0
staticprivate

Definition at line 47 of file TCreatePrimitives.h.

Referenced by Line().

TCurlyLine * TCreatePrimitives::fgCLine = 0
staticprivate

Definition at line 45 of file TCreatePrimitives.h.

Referenced by Line().

TDiamond * TCreatePrimitives::fgDiamond = 0
staticprivate

Definition at line 53 of file TCreatePrimitives.h.

Referenced by Pave().

TEllipse * TCreatePrimitives::fgEllipse = 0
staticprivate

Definition at line 49 of file TCreatePrimitives.h.

Referenced by Ellipse().

TLine * TCreatePrimitives::fgLine = 0
staticprivate

Definition at line 43 of file TCreatePrimitives.h.

Referenced by Line().

TBox * TCreatePrimitives::fgPadBBox = 0
staticprivate

Definition at line 56 of file TCreatePrimitives.h.

Referenced by Pad().

TPave * TCreatePrimitives::fgPave = 0
staticprivate

Definition at line 50 of file TCreatePrimitives.h.

Referenced by Pave().

TPaveLabel * TCreatePrimitives::fgPaveLabel = 0
staticprivate

Definition at line 54 of file TCreatePrimitives.h.

Referenced by Pave().

TPavesText * TCreatePrimitives::fgPavesText = 0
staticprivate

Definition at line 52 of file TCreatePrimitives.h.

Referenced by Pave().

TPaveText * TCreatePrimitives::fgPaveText = 0
staticprivate

Definition at line 51 of file TCreatePrimitives.h.

Referenced by Pave().

TGraph * TCreatePrimitives::fgPolyLine = 0
staticprivate

Definition at line 55 of file TCreatePrimitives.h.

Referenced by PolyLine().

TLatex * TCreatePrimitives::fgText = 0
staticprivate

Definition at line 44 of file TCreatePrimitives.h.

Referenced by Text().


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