Logo ROOT  
Reference Guide
 
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 from the TCanvas toolbar.

Definition at line 16 of file TCreatePrimitives.h.

Public Member Functions

 TCreatePrimitives ()=default
 
virtual ~TCreatePrimitives ()=default
 

Static Public Member Functions

static void ExecuteEvent (TPad &pad, Int_t edit_mode, Int_t event, Int_t px, Int_t py)
 Handle edit mode in the TPad Executed when editmode is not 0.
 
static void R__DEPRECATED (7, 00, "Will be removed from public API") Ellipse(Int_t event
 
static void R__DEPRECATED (7, 00, "Will be removed from public API") Line(Int_t event
 
static void R__DEPRECATED (7, 00, "Will be removed from public API") Pad(Int_t event
 
static void R__DEPRECATED (7, 00, "Will be removed from public API") Pave(Int_t event
 
static void R__DEPRECATED (7, 00, "Will be removed from public API") PolyLine(Int_t event
 
static void R__DEPRECATED (7, 00, "Will be removed from public API") Text(Int_t event
 

Public Attributes

static void Int_t Int_t Int_t
 
static void Int_t Int_t Int_t mode
 
static void Int_t px
 
static void Int_t Int_t py
 

Static Private Member Functions

static void ExecutePolyLine (TPad &parent, Int_t mode, Int_t event, Int_t px, Int_t py)
 Create a new TGraph or TCutG in the pad.
 
static void ExecuteText (TPad &pad, Int_t mode, Int_t event, Int_t px, Int_t py)
 Create a new TLatex or TMarker at the cursor position in the provided pad.
 
static void ExecuteTwoPoint (TPad &pad, Int_t mode, Int_t event, Int_t px, Int_t py)
 Create a new line/arrow/pave/subpad in the specified pad.
 

#include <TCreatePrimitives.h>

Constructor & Destructor Documentation

◆ TCreatePrimitives()

TCreatePrimitives::TCreatePrimitives ( )
default

◆ ~TCreatePrimitives()

virtual TCreatePrimitives::~TCreatePrimitives ( )
virtualdefault

Member Function Documentation

◆ ExecuteEvent()

void TCreatePrimitives::ExecuteEvent ( TPad & pad,
Int_t edit_mode,
Int_t event,
Int_t px,
Int_t py )
static

Handle edit mode in the TPad Executed when editmode is not 0.

Definition at line 600 of file TCreatePrimitives.cxx.

◆ ExecutePolyLine()

void TCreatePrimitives::ExecutePolyLine ( TPad & parent,
Int_t mode,
Int_t event,
Int_t px,
Int_t py )
staticprivate

Create a new TGraph or TCutG in the pad.

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

Definition at line 448 of file TCreatePrimitives.cxx.

◆ ExecuteText()

void TCreatePrimitives::ExecuteText ( TPad & parent,
Int_t mode,
Int_t event,
Int_t px,
Int_t py )
staticprivate

Create a new TLatex or TMarker at the cursor position in the provided pad.

  • Click left button to indicate the text position.
  • Type text
  • Press Enter or click mouse once again to stop editing

Definition at line 534 of file TCreatePrimitives.cxx.

◆ ExecuteTwoPoint()

void TCreatePrimitives::ExecuteTwoPoint ( TPad & parent,
Int_t mode,
Int_t event,
Int_t px,
Int_t py )
staticprivate

Create a new line/arrow/pave/subpad in the specified pad.

  • Click left button to indicate object start position.
  • Move mouse pointer when left button pressed to specify second position
  • Release left button to stop position/size change
  • for TPaveText, TPavesText, TPaveLabel text editing started until Enter key is pressed

Definition at line 209 of file TCreatePrimitives.cxx.

◆ R__DEPRECATED() [1/6]

static void TCreatePrimitives::R__DEPRECATED ( 7 ,
00 ,
"Will be removed from public API"  )
static

◆ R__DEPRECATED() [2/6]

static void TCreatePrimitives::R__DEPRECATED ( 7 ,
00 ,
"Will be removed from public API"  )
static

◆ R__DEPRECATED() [3/6]

static void TCreatePrimitives::R__DEPRECATED ( 7 ,
00 ,
"Will be removed from public API"  )
static

◆ R__DEPRECATED() [4/6]

static void TCreatePrimitives::R__DEPRECATED ( 7 ,
00 ,
"Will be removed from public API"  )
static

◆ R__DEPRECATED() [5/6]

static void TCreatePrimitives::R__DEPRECATED ( 7 ,
00 ,
"Will be removed from public API"  )
static

◆ R__DEPRECATED() [6/6]

static void TCreatePrimitives::R__DEPRECATED ( 7 ,
00 ,
"Will be removed from public API"  )
static

Member Data Documentation

◆ Int_t

void Int_t Int_t TCreatePrimitives::Int_t

Definition at line 31 of file TCreatePrimitives.h.

◆ mode

static void Int_t Int_t Int_t TCreatePrimitives::mode

Definition at line 29 of file TCreatePrimitives.h.

◆ px

static void Int_t TCreatePrimitives::px

Definition at line 29 of file TCreatePrimitives.h.

◆ py

static void Int_t Int_t TCreatePrimitives::py

Definition at line 29 of file TCreatePrimitives.h.

Libraries for TCreatePrimitives:

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