Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGraphPolar.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/graf:$Id$
0002 // Author: Sebastian Boser, 02/02/06
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
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;          ///< Force drawing of new coord system
0027 
0028 protected:
0029    TGraphPolargram* fPolargram; ///< The polar coordinates system
0030    Double_t* fXpol;             ///< [fNpoints] points in polar coordinates
0031    Double_t* fYpol;             ///< [fNpoints] points in polar coordinates
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    void             Draw(Option_t* options = "") override;
0042    Bool_t           GetOptionAxis() {return fOptionAxis;}
0043    void             SetMaxRadial(Double_t maximum = 1); //*MENU*
0044    void             SetMinRadial(Double_t minimum = 0); //*MENU*
0045    void             SetMaximum(Double_t maximum = 1) override {SetMaxRadial(maximum);}
0046    void             SetMinimum(Double_t minimum = 0) override {SetMinRadial(minimum);}
0047    void             SetMaxPolar(Double_t maximum = 6.28318530717958623); //*MENU*
0048    void             SetMinPolar(Double_t minimum = 0); //*MENU*
0049    void             SetOptionAxis(Bool_t opt) {fOptionAxis = opt;}
0050    void             SetPolargram(TGraphPolargram *p) {fPolargram = p;}
0051    Double_t        *GetXpol();
0052    Double_t        *GetYpol();
0053 
0054    ClassDefOverride(TGraphPolar,1); // Polar graph
0055 };
0056 
0057 #endif