12#ifndef ROOT_TLineInteractive
13#define ROOT_TLineInteractive
44 Int_t px1, py1, px2, py2;
57 if (abs(px1 - px) + abs(py1 - py) <
kMaxDiff) {
60 }
else if (abs(px2 - px) + abs(py2 - py) <
kMaxDiff) {
134 static const char GUIDES[2][2][2] = {{{
'4',
'1'}, {
'3',
'2'}}, {{
'2',
'3'}, {
'1',
'4'}}};
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
Double_t GetXCoord(TVirtualPad &parent, Int_t px)
Double_t GetYCoord(TVirtualPad &parent, Int_t py)
void Apply(TLine *l, Bool_t usenew=kTRUE)
TLineInteractive(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Bool_t ndc=kFALSE)
void SelectPoint(TVirtualPad &parent, Int_t px, Int_t py)
char GetGuideChar() const
void ChangeCoordinate(TVirtualPad &parent, Int_t px, Int_t py, Bool_t vert=kFALSE, Bool_t horiz=kFALSE)
void PaintLine(TVirtualPad &parent)
Use the TLine constructor to create a simple line.
virtual void SetY2(Double_t y2)
virtual void SetX2(Double_t x2)
virtual void SetX1(Double_t x1)
virtual void SetY1(Double_t y1)
Helper class to store interactive parameters for individual objects Should be used via gPad->Interact...
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual Double_t PadtoX(Double_t x) const =0
virtual Int_t YtoAbsPixel(Double_t y) const =0
virtual void PaintPolyLineNDC(Int_t n, Double_t *x, Double_t *y, Option_t *option="")=0
virtual Double_t GetAbsYlowNDC() const =0
virtual Double_t AbsPixeltoX(Double_t px)=0
virtual UInt_t GetWh() const =0
virtual Int_t XtoAbsPixel(Double_t x) const =0
virtual Int_t UtoAbsPixel(Double_t u) const =0
virtual Double_t PadtoY(Double_t y) const =0
virtual Double_t YtoPad(Double_t y) const =0
virtual void PaintPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t *option="")=0
virtual Double_t GetAbsWNDC() const =0
virtual Double_t GetAbsXlowNDC() const =0
virtual Double_t XtoPad(Double_t x) const =0
virtual Int_t VtoAbsPixel(Double_t v) const =0
virtual Double_t GetAbsHNDC() const =0
virtual UInt_t GetWw() const =0
virtual Double_t AbsPixeltoY(Double_t py)=0
virtual void SetCursor(ECursor cursor)=0