#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
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 DrawLine
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Option_t Option_t TPoint TPoint const char y1
Abstract base class for elements drawn in the editor.
Use the TLine constructor to create a simple line.
void ls(Option_t *option="") const override
List this line with its attributes.
virtual void SetY2(Double_t y2)
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.
void SetBBoxY1(const Int_t y) override
Set top of BoundingBox to a value (resize in y direction on top)
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.
void SetBBoxCenterY(const Int_t y) override
Set Y coordinate of the center of the BoundingBox.
void SetBBoxX2(const Int_t x) override
Set right hand side of BoundingBox to a value (resize in x direction on right)
virtual TLine * DrawLineNDC(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this line with new coordinates in NDC.
Bool_t IsHorizontal()
Check whether this line is to be drawn horizontally.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
void Copy(TObject &line) const override
Copy this line to line.
void Print(Option_t *option="") const override
Dump this line with its attributes.
Double_t fX2
X of 2nd point.
void SetBBoxX1(const Int_t x) override
Set left hand side of BoundingBox to a value (resize in x direction on left)
void Paint(Option_t *option="") override
Paint this line with its current attributes.
void SetBBoxY2(const Int_t y) override
Set bottom of BoundingBox to a value (resize in y direction on bottom)
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a line.
TPoint GetBBoxCenter() override
Return the center of the BoundingBox as TPoint in pixels.
@ kLineNDC
Use NDC coordinates.
@ kHorizontal
Line is horizontal.
@ kVertical
Line is vertical.
virtual void SetX1(Double_t x1)
TLine & operator=(const TLine &src)
Assignment operator.
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.
void SetBBoxCenterX(const Int_t x) override
Set X coordinate of the center of the BoundingBox.
virtual void SetY1(Double_t y1)
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
void SetBBoxCenter(const TPoint &p) override
Set center of the BoundingBox.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
Rectangle_t GetBBox() override
Return the bounding Box of the Line.
void SetHorizontal(Bool_t set=kTRUE)
Force the line to be drawn horizontally.
Mother of all ROOT objects.
Rectangle structure (maps to the X11 XRectangle structure)