bool Bool_t
Boolean (0=false, 1=true) (bool)
int Int_t
Signed integer 4 bytes (int)
double Double_t
Double 8 bytes.
const char Option_t
Option string (const char)
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y1
Abstract base class for elements drawn in the editor.
TAttFill()
AttFill default constructor.
TAttLine()
AttLine default constructor.
virtual void SetR1(Double_t r1)
void ls(Option_t *option="") const override
List this ellipse with its attributes.
virtual void SetX1(Double_t x1)
virtual void PaintEllipse(Double_t x1, Double_t y1, Double_t r1, Double_t r2, Double_t phimin, Double_t phimax, Double_t theta, Option_t *option="")
Draw this ellipse with new coordinates.
void SetBBoxCenterY(const Int_t y) override
Set Y coordinate of the center of the Ellipse.
Double_t GetTheta() const
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
void SetBBoxY1(const Int_t y) override
Set top of BoundingBox to a value (resize in y direction on top)
void SetBBoxX1(const Int_t x) override
Set left hand side of BoundingBox to a value (resize in x direction on left)
Double_t GetPhimax() const
void SetBBoxY2(const Int_t y) override
Set bottom of BoundingBox to a value (resize in y direction on bottom)
Double_t fPhimax
Maximum angle (degrees)
Double_t GetPhimin() const
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to an ellipse.
virtual void SetPhimax(Double_t phi=360)
Double_t fX1
X coordinate of centre.
void SetBBoxX2(const Int_t x) override
Set right hand side of BoundingBox to a value (resize in x direction on right)
Bool_t GetNoEdges() const
Return kTRUE if kNoEdges bit is set, kFALSE otherwise.
Rectangle_t GetBBox() override
Return the bounding Box of the Ellipse, currently not taking into account the rotating angle.
void Paint(Option_t *option="") override
Paint this ellipse with its current attributes.
Double_t fY1
Y coordinate of centre.
Double_t fTheta
Rotation angle (degrees)
virtual void SetPhimin(Double_t phi=0)
Int_t IsInside(Double_t x, Double_t y) const
Return 1 if the point (x,y) is inside the polygon defined by the ellipse 0 otherwise.
void SetBBoxCenterX(const Int_t x) override
Set X coordinate of the center of the Ellipse.
Bool_t FillPoints(TVirtualPad &pad, std::vector< Double_t > &x, std::vector< Double_t > &y, Double_t x1, Double_t y1, Double_t r1, Double_t r2, Double_t phimin, Double_t phimax, Double_t theta)
Fill points which can be used for the painting Return true if full 360 ellipse is created.
virtual void SetY1(Double_t y1)
~TEllipse() override
Ellipse default destructor.
Double_t fR2
second radius
virtual void SetNoEdges(Bool_t noEdges=kTRUE)
if noEdges = kTRUE the lines connecting the center to the edges will not be drawn.
void Copy(TObject &ellipse) const override
Copy this ellipse to ellipse.
Double_t fPhimin
Minimum angle (degrees)
TPoint GetBBoxCenter() override
Return the center of the Ellipse as TPoint in pixels.
TEllipse()
Ellipse default constructor.
virtual TEllipse * DrawEllipse(Double_t x1, Double_t y1, Double_t r1, Double_t r2, Double_t phimin, Double_t phimax, Double_t theta, Option_t *option="")
Draw this ellipse with new coordinates.
virtual void SetR2(Double_t r2)
void Print(Option_t *option="") const override
Dump this ellipse with its attributes.
virtual void SetTheta(Double_t theta=0)
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
Mother of all ROOT objects.
TObject()
TObject constructor.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Rectangle structure (maps to the X11 XRectangle structure)