virtual void SetY2(Double_t y2)
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Double_t fX1
X of 1st point.
virtual void SetBBoxY2(const Int_t y)
Set bottom of BoundingBox to a value (resize in y direction on bottom)
virtual TLine * DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this line with new coordinates.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a line.
Double_t fX2
X of 2nd point.
void SetHorizontal(Bool_t set=kTRUE)
Force the line to be drawn horizontally.
Bool_t IsVertical()
Check whether this line is to be drawn vertically.
virtual void SetBBoxY1(const Int_t y)
Set top of BoundingBox to a value (resize in y direction on top)
Bool_t IsHorizontal()
Check whether this line is to be drawn horizontally.
static const double x2[5]
virtual void PaintLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2)
Draw this line with new coordinates in NDC.
#define ClassDef(name, id)
virtual void Paint(Option_t *option="")
Paint this line with its current attributes.
virtual void SetBBoxX1(const Int_t x)
Set left hand side of BoundingBox to a value (resize in x direction on left)
virtual void PaintLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this line with new coordinates.
virtual void SetX2(Double_t x2)
virtual void ls(Option_t *option="") const
List this line with its attributes.
virtual TPoint GetBBoxCenter()
Return the center of the BoundingBox as TPoint in pixels.
virtual void SetY1(Double_t y1)
virtual void SetBBoxCenterX(const Int_t x)
Set X coordinate of the center of the BoundingBox.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Double_t fY1
Y of 1st point.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
virtual void Print(Option_t *option="") const
Dump this line with its attributes.
virtual void SetX1(Double_t x1)
virtual void SetBBoxX2(const Int_t x)
Set right hand side of BoundingBox to a value (resize in x direction on right)
static const double x1[5]
virtual Rectangle_t GetBBox()
Return the bounding Box of the Line.
void SetVertical(Bool_t set=kTRUE)
Force the line to be drawn vertically.
virtual void SetBBoxCenterY(const Int_t y)
Set Y coordinate of the center of the BoundingBox.
virtual TLine * DrawLineNDC(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this line with new coordinates in NDC.
Mother of all ROOT objects.
void Copy(TObject &line) const
Copy this line to line.
Abstract base class for elements drawn in the editor.
Double_t fY2
Y of 2nd point.
virtual ~TLine()
Line default destructor.
virtual void SetBBoxCenter(const TPoint &p)
Set center of the BoundingBox.
TLine()
Line default constructor.