76 x0 =
gPad->AbsPixeltoX(px);
77 y0 =
gPad->AbsPixeltoY(py);
78 xold =
gPad->AbsPixeltoX(px);
79 yold =
gPad->AbsPixeltoY(py);
83 xold =
gPad->AbsPixeltoX(px);
84 yold =
gPad->AbsPixeltoY(py);
123 x1 =
gPad->AbsPixeltoX(px);
124 y1 =
gPad->AbsPixeltoY(py);
125 if (
gPad->GetLogx()) {
129 if (
gPad->GetLogy()) {
145 gROOT->SetEditorMode();
160 static Int_t pxold, pyold;
161 static Int_t px0, py0;
167 x0 =
gPad->AbsPixeltoX(px);
168 y0 =
gPad->AbsPixeltoY(py);
170 pxold = px; pyold = py;
179 x1 =
gPad->AbsPixeltoX(pxold);
180 y1 =
gPad->AbsPixeltoY(pyold);
259 gROOT->SetEditorMode();
274 static Int_t px1old, py1old, px2old, py2old;
275 static Int_t px1, py1, px2, py2, pxl, pyl, pxt, pyt;
284 while ((obj = next())) {
295 px1 =
gPad->XtoAbsPixel(
gPad->GetX1());
296 py1 =
gPad->YtoAbsPixel(
gPad->GetY1());
297 px2 =
gPad->XtoAbsPixel(
gPad->GetX2());
298 py2 =
gPad->YtoAbsPixel(
gPad->GetY2());
299 px1old = px; py1old = py;
335 gROOT->SetEditorMode();
336 if (xup <= xlow || yup <= ylow)
return;
337 newpad =
new TPad(
Form(
"%s_%d",
gPad->GetName(),
n+1),
"newpad",xlow, ylow, xup, yup);
373 gROOT->SetEditorMode();
385 }
else if (isprint(py)) {
397 x0 =
gPad->AbsPixeltoX(px);
398 y0 =
gPad->AbsPixeltoY(py);
402 xold =
gPad->AbsPixeltoX(px);
403 yold =
gPad->AbsPixeltoY(py);
405 xp0 =
gPad->PadtoX(x0);
406 xp1 =
gPad->PadtoX(xold);
407 yp0 =
gPad->PadtoY(y0);
408 yp1 =
gPad->PadtoY(yold);
559 gROOT->SetEditorMode();
572 static Int_t pxnew, pynew, pxold, pyold, dp;
574 static Int_t npoints = 0;
585 gPad->PadtoY(
gPad->AbsPixeltoY(pynew)));
588 xnew =
gPad->PadtoX(
gPad->AbsPixeltoX(pxnew));
589 ynew =
gPad->PadtoY(
gPad->AbsPixeltoY(pynew));
591 pxold =
gPad->XtoAbsPixel(xold);
592 pyold =
gPad->YtoAbsPixel(yold);
606 gROOT->SetEditorMode();
617 gPad->PadtoY(
gPad->AbsPixeltoY(pynew)));
635 gROOT->SetEditorMode();
645 gPad->PadtoY(
gPad->AbsPixeltoY(pynew)));
673 gROOT->SetEditorMode();
686 }
else if (isprint(py)) {
704 x =
gPad->AbsPixeltoX(px);
705 y =
gPad->AbsPixeltoY(py);
714 gROOT->SetEditorMode();
static const double x1[5]
char * Form(const char *fmt,...)
R__EXTERN TStyle * gStyle
R__EXTERN TSystem * gSystem
Draw all kinds of Arrows.
static Option_t * GetDefaultOption()
Get default option.
virtual void Draw(Option_t *option="")
Draw this arrow with its current attributes.
static Float_t GetDefaultArrowSize()
Get default arrow size.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetY2(Double_t y2)
virtual void SetX1(Double_t x1)
virtual void Draw(Option_t *option="")
Draw this box with its current attributes.
virtual void SetX2(Double_t x2)
virtual void SetY1(Double_t y1)
virtual void Selected(TVirtualPad *pad, TObject *obj, Int_t event)
Emit Selected() signal.
static void Pave(Int_t event, Int_t px, Int_t py, Int_t mode)
Create a new pavetext in gPad.
static TPavesText * fgPavesText
static TCurlyLine * fgCLine
static void Line(Int_t event, Int_t px, Int_t py, Int_t mode)
Create a new line/arrow in this gPad.
static TEllipse * fgEllipse
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.
virtual ~TCreatePrimitives()
TCreatePrimitives destructor.
static void Ellipse(Int_t event, Int_t px, Int_t py, Int_t mode)
Create a new arc/ellipse in this gPad.
static TCurlyArc * fgCArc
static TGraph * fgPolyLine
static TPaveText * fgPaveText
static TPaveLabel * fgPaveLabel
TCreatePrimitives()
TCreatePrimitives default constructor.
static void Pad(Int_t event, Int_t px, Int_t py, Int_t)
Create a new pad in gPad.
static TDiamond * fgDiamond
Implements curly or wavy arcs used to draw Feynman diagrams.
virtual void SetRadius(Double_t radius)
Set Curly Arc radius.
static Double_t GetDefaultWaveLength()
Get default wave length.
static Double_t GetDefaultAmplitude()
Get default wave amplitude.
Implements curly or wavy polylines used to draw Feynman diagrams.
virtual void SetStartPoint(Double_t x1, Double_t y1)
Set start point.
static Double_t GetDefaultWaveLength()
Get default wave length.
static Double_t GetDefaultAmplitude()
Get default amplitude.
virtual void SetEndPoint(Double_t x2, Double_t y2)
Set end point.
virtual void Draw(Option_t *option="")
Draw this diamond with its current attributes.
virtual void SetR1(Double_t r1)
virtual void SetX1(Double_t x1)
virtual void Draw(Option_t *option="")
Draw this ellipse with its current attributes.
virtual void SetY1(Double_t y1)
virtual void SetR2(Double_t r2)
A TGraph is an object made of two arrays X and Y with npoints each.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set x and y values for point number i.
@ kClipFrame
clip to the frame boundary
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
virtual void Set(Int_t n)
Set number of points in the graph Existing coordinates are preserved New coordinates above fNpoints a...
virtual Int_t GetPoint(Int_t i, Double_t &x, Double_t &y) const
Get x and y values for point number i.
To draw Mathematical Formula.
virtual void SetY2(Double_t y2)
virtual void SetX2(Double_t x2)
virtual void Draw(Option_t *option="")
Draw this marker with its current attributes.
virtual const char * GetTitle() const
Returns title of object.
Mother of all ROOT objects.
R__ALWAYS_INLINE Bool_t IsZombie() const
virtual void Delete(Option_t *option="")
Delete this object.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
The most important graphics class in the ROOT system.
TCanvas * GetCanvas() const override
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
void Draw(Option_t *option="") override
Draw Pad in Current pad (re-parent pad if necessary).
A Pave (see TPave) with a text centered in the Pave.
const char * GetTitle() const
Returns title of object.
virtual void Draw(Option_t *option="")
Draw this pavelabel with its current attributes.
virtual void SetLabel(const char *label)
A Pave (see TPave) with text, lines or/and boxes inside.
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
A TBox with a bordersize and a shadow option.
virtual void SetX2(Double_t x2)
Set the X2 value.
virtual void SetY2(Double_t y2)
Set the Y2 value.
virtual void Draw(Option_t *option="")
Draw this pave with its current attributes.
virtual void SetX1(Double_t x1)
Set the X1 value.
virtual void SetY1(Double_t y1)
Set the Y1 value.
A PaveText (see TPaveText) with several stacked paves.
virtual void Draw(Option_t *option="")
Draw this pavestext with its current attributes.
virtual void Draw(Option_t *option="")
Draw this polyline with its current attributes.
TString & Insert(Ssiz_t pos, const char *s)
TString & Replace(Ssiz_t pos, Ssiz_t n, const char *s)
const char * Data() const
TString & Remove(Ssiz_t pos)
Color_t GetPadColor() const
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
virtual void SetText(Double_t x, Double_t y, const char *text)
Short_t Max(Short_t a, Short_t b)
Double_t Sqrt(Double_t x)
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Short_t Min(Short_t a, Short_t b)