File indexing completed on 2025-09-15 09:12:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGraphPolar
0013 #define ROOT_TGraphPolar
0014
0015 #include "TGraphErrors.h"
0016
0017 #ifdef R__LESS_INCLUDES
0018 class TGraphPolargram;
0019 #else
0020 #include "TGraphPolargram.h"
0021 #endif
0022
0023 class TGraphPolar : public TGraphErrors {
0024
0025 private:
0026 Bool_t fOptionAxis;
0027
0028 protected:
0029 TGraphPolargram* fPolargram;
0030 Double_t* fXpol;
0031 Double_t* fYpol;
0032
0033 public:
0034 TGraphPolar();
0035 TGraphPolar(Int_t n, const Double_t* theta = nullptr, const Double_t* r = nullptr,
0036 const Double_t* etheta = nullptr, const Double_t* er = nullptr);
0037 ~TGraphPolar() override;
0038
0039 TGraphPolargram *GetPolargram() {return fPolargram;}
0040
0041 TGraphPolargram *CreatePolargram(const char *opt);
0042
0043 void Draw(Option_t* options = "") override;
0044 Bool_t GetOptionAxis() {return fOptionAxis;}
0045 void SetMaxRadial(Double_t maximum = 1);
0046 void SetMinRadial(Double_t minimum = 0);
0047 void SetMaximum(Double_t maximum = 1) override {SetMaxRadial(maximum);}
0048 void SetMinimum(Double_t minimum = 0) override {SetMinRadial(minimum);}
0049 void SetMaxPolar(Double_t maximum = 6.28318530717958623);
0050 void SetMinPolar(Double_t minimum = 0);
0051 void SetOptionAxis(Bool_t opt) {fOptionAxis = opt;}
0052 void SetPolargram(TGraphPolargram *p) {fPolargram = p;}
0053 Double_t *GetXpol();
0054 Double_t *GetYpol();
0055
0056 ClassDefOverride(TGraphPolar,1);
0057 };
0058
0059 #endif