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