// @(#)root/graf:$Id$
// Author: Sebastian Boser, 02/02/06

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGraphPolar
#define ROOT_TGraphPolar

#ifndef ROOT_TGraphErrors
#include "TGraphErrors.h"
#endif
#ifndef ROOT_Riosfwd
#include "Riosfwd.h"
#endif
#ifndef ROOT_TAttText
#include "TAttText.h"
#endif
#ifndef ROOT_TAttLine
#include "TAttLine.h"
#endif

#include "TGraphPolargram.h"

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGraphPolar                                                          //
//                                                                      //
// Polar graph graphics class.                                          //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

class TGraphPolar: public TGraphErrors {

private:
   Bool_t fOptionAxis;          // Force drawing of new coord system

protected:
   TGraphPolargram* fPolargram; // The polar coordinates system
   Double_t* fXpol;             // [fNpoints] points in polar coordinates
   Double_t* fYpol;             // [fNpoints] points in polar coordinates


public:
   TGraphPolar();
   TGraphPolar(Int_t n, const Double_t* theta=0, const Double_t* r=0,
                        const Double_t* etheta=0, const Double_t* er=0);
   virtual ~TGraphPolar();

   TGraphPolargram *GetPolargram() {return fPolargram;};

   void             Draw(Option_t* options = "");
   Bool_t           GetOptionAxis() {return fOptionAxis;};
   void             SetMaxRadial(Double_t maximum = 1); //*MENU*
   void             SetMinRadial(Double_t minimum = 0); //*MENU*
   void             SetMaximum(Double_t maximum = 1) {SetMaxRadial(maximum);}
   void             SetMinimum(Double_t minimum = 0) {SetMinRadial(minimum);}
   void             SetMaxPolar(Double_t maximum = 6.28318530717958623); //*MENU*
   void             SetMinPolar(Double_t minimum = 0); //*MENU*
   void             SetOptionAxis(Bool_t opt) {fOptionAxis = opt;};
   void             SetPolargram(TGraphPolargram *p) {fPolargram = p;};
   Double_t        *GetXpol();
   Double_t        *GetYpol();

   ClassDef(TGraphPolar,1); // Polar graph
};

#endif
 TGraphPolar.h:1
 TGraphPolar.h:2
 TGraphPolar.h:3
 TGraphPolar.h:4
 TGraphPolar.h:5
 TGraphPolar.h:6
 TGraphPolar.h:7
 TGraphPolar.h:8
 TGraphPolar.h:9
 TGraphPolar.h:10
 TGraphPolar.h:11
 TGraphPolar.h:12
 TGraphPolar.h:13
 TGraphPolar.h:14
 TGraphPolar.h:15
 TGraphPolar.h:16
 TGraphPolar.h:17
 TGraphPolar.h:18
 TGraphPolar.h:19
 TGraphPolar.h:20
 TGraphPolar.h:21
 TGraphPolar.h:22
 TGraphPolar.h:23
 TGraphPolar.h:24
 TGraphPolar.h:25
 TGraphPolar.h:26
 TGraphPolar.h:27
 TGraphPolar.h:28
 TGraphPolar.h:29
 TGraphPolar.h:30
 TGraphPolar.h:31
 TGraphPolar.h:32
 TGraphPolar.h:33
 TGraphPolar.h:34
 TGraphPolar.h:35
 TGraphPolar.h:36
 TGraphPolar.h:37
 TGraphPolar.h:38
 TGraphPolar.h:39
 TGraphPolar.h:40
 TGraphPolar.h:41
 TGraphPolar.h:42
 TGraphPolar.h:43
 TGraphPolar.h:44
 TGraphPolar.h:45
 TGraphPolar.h:46
 TGraphPolar.h:47
 TGraphPolar.h:48
 TGraphPolar.h:49
 TGraphPolar.h:50
 TGraphPolar.h:51
 TGraphPolar.h:52
 TGraphPolar.h:53
 TGraphPolar.h:54
 TGraphPolar.h:55
 TGraphPolar.h:56
 TGraphPolar.h:57
 TGraphPolar.h:58
 TGraphPolar.h:59
 TGraphPolar.h:60
 TGraphPolar.h:61
 TGraphPolar.h:62
 TGraphPolar.h:63
 TGraphPolar.h:64
 TGraphPolar.h:65
 TGraphPolar.h:66
 TGraphPolar.h:67
 TGraphPolar.h:68
 TGraphPolar.h:69
 TGraphPolar.h:70
 TGraphPolar.h:71
 TGraphPolar.h:72
 TGraphPolar.h:73