85 crown.TCrown::Copy(*
this);
126 if (
r > r2)
return dist;
127 if (
r < r1)
return dist;
130 if (
y<0) phi = 360-phi;
133 if (phi1<0) phi1=phi1+360;
134 if (phi2<0) phi2=phi2+360;
136 if (phi < phi1 && phi > phi2)
return dist;
138 if (phi < phi1)
return dist;
139 if (phi > phi2)
return dist;
194 for (i=0;i<=
np;i++) {
198 x[i] =
fX1 + dx*ct - dy*st;
199 y[i] =
fY1 + dx*st + dy*ct;
202 for (i=0;i<=
np;i++) {
206 x[2*
np-i+1] =
fX1 + dx*ct - dy*st;
207 y[2*
np-i+1] =
fY1 + dx*st + dy*ct;
240 out<<
"crown = new TCrown("<<
fX1<<
","<<
fY1<<
","<<
fR1<<
","<<
fR2
246 if (
GetNoEdges()) out<<
" crown->SetNoEdges();"<<std::endl;
248 out<<
" crown->Draw();"<<std::endl;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t np
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint angle
Option_t Option_t TPoint TPoint const char y1
virtual Color_t GetFillColor() const
Return the fill area color.
void Copy(TAttFill &attfill) const
Copy this fill attributes to a new TAttFill.
virtual Style_t GetFillStyle() const
Return the fill area style.
virtual void Modify()
Change current fill area attributes if necessary.
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
Save fill attributes as C++ statement(s) on output stream out.
virtual Style_t GetLineStyle() const
Return the line style.
virtual void Modify()
Change current line attributes if necessary.
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a crown.
virtual TCrown * DrawCrown(Double_t x1, Double_t y1, Double_t radin, Double_t radout, Double_t phimin=0, Double_t phimax=360, Option_t *option="")
Draw this crown with new coordinates.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
TCrown()
Crown default constructor.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
virtual ~TCrown()
Crown default destructor.
void Paint(Option_t *option="") override
Paint this crown with its current attributes.
void Copy(TObject &crown) const override
Copy this crown to crown.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
Double_t fPhimax
Maximum angle (degrees)
Double_t fX1
X coordinate of centre.
Bool_t GetNoEdges() const
Return kTRUE if kNoEdges bit is set, kFALSE otherwise.
Double_t fY1
Y coordinate of centre.
Double_t fTheta
Rotation angle (degrees)
Double_t fR2
second radius
void Copy(TObject &ellipse) const override
Copy this ellipse to ellipse.
Double_t fPhimin
Minimum angle (degrees)
Mother of all ROOT objects.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
@ kCanDelete
if object in a list can be deleted
Double_t ACos(Double_t)
Returns the principal value of the arc cosine of x, expressed in radians.
Double_t Sqrt(Double_t x)
Returns the square root of x.
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.