File indexing completed on 2025-09-18 09:33:14
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TCrown
0013 #define ROOT_TCrown
0014
0015
0016 #include "TEllipse.h"
0017
0018
0019 class TCrown : public TEllipse {
0020 Double_t fYXRatio = 1;
0021
0022 public:
0023 TCrown();
0024 TCrown(Double_t x1, Double_t y1,Double_t radin, Double_t radout,
0025 Double_t phimin=0,Double_t phimax=360);
0026 TCrown(const TCrown &crown);
0027 ~TCrown() override;
0028
0029 void SetYXRatio(Double_t v = 1) { fYXRatio = v; }
0030 Double_t GetYXRatio() const { return fYXRatio; }
0031
0032 void Copy(TObject &crown) const override;
0033 Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
0034 virtual TCrown *DrawCrown(Double_t x1, Double_t y1, Double_t radin, Double_t radout,
0035 Double_t phimin=0, Double_t phimax=360, Option_t *option="");
0036 void ExecuteEvent(Int_t event, Int_t px, Int_t py) override;
0037 Int_t IsInside(Double_t x, Double_t y) const;
0038 void Paint(Option_t *option="") override;
0039 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
0040
0041 ClassDefOverride(TCrown,2)
0042 };
0043
0044 #endif