Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
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 24 of file TCreatePrimitives.h.

Public Member Functions

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

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

Static Private Attributes

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

#include <TCreatePrimitives.h>

Constructor & Destructor Documentation

◆ TCreatePrimitives()

TCreatePrimitives::TCreatePrimitives ( )

TCreatePrimitives default constructor.

Definition at line 51 of file TCreatePrimitives.cxx.

◆ ~TCreatePrimitives()

TCreatePrimitives::~TCreatePrimitives ( )
virtual

TCreatePrimitives destructor.

Definition at line 58 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 68 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 154 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 270 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 354 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 570 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 = nullptr
staticprivate

Definition at line 33 of file TCreatePrimitives.h.

◆ fgArrow

TArrow * TCreatePrimitives::fgArrow = nullptr
staticprivate

Definition at line 31 of file TCreatePrimitives.h.

◆ fgCArc

TCurlyArc * TCreatePrimitives::fgCArc = nullptr
staticprivate

Definition at line 32 of file TCreatePrimitives.h.

◆ fgCLine

TCurlyLine * TCreatePrimitives::fgCLine = nullptr
staticprivate

Definition at line 30 of file TCreatePrimitives.h.

◆ fgDiamond

TDiamond * TCreatePrimitives::fgDiamond = nullptr
staticprivate

Definition at line 38 of file TCreatePrimitives.h.

◆ fgEllipse

TEllipse * TCreatePrimitives::fgEllipse = nullptr
staticprivate

Definition at line 34 of file TCreatePrimitives.h.

◆ fgLine

TLine * TCreatePrimitives::fgLine = nullptr
staticprivate

Definition at line 28 of file TCreatePrimitives.h.

◆ fgPadBBox

TBox * TCreatePrimitives::fgPadBBox = nullptr
staticprivate

Definition at line 41 of file TCreatePrimitives.h.

◆ fgPave

TPave * TCreatePrimitives::fgPave = nullptr
staticprivate

Definition at line 35 of file TCreatePrimitives.h.

◆ fgPaveLabel

TPaveLabel * TCreatePrimitives::fgPaveLabel = nullptr
staticprivate

Definition at line 39 of file TCreatePrimitives.h.

◆ fgPavesText

TPavesText * TCreatePrimitives::fgPavesText = nullptr
staticprivate

Definition at line 37 of file TCreatePrimitives.h.

◆ fgPaveText

TPaveText * TCreatePrimitives::fgPaveText = nullptr
staticprivate

Definition at line 36 of file TCreatePrimitives.h.

◆ fgPolyLine

TGraph * TCreatePrimitives::fgPolyLine = nullptr
staticprivate

Definition at line 40 of file TCreatePrimitives.h.

◆ fgText

TLatex * TCreatePrimitives::fgText = nullptr
staticprivate

Definition at line 29 of file TCreatePrimitives.h.

Libraries for TCreatePrimitives:

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