Logo ROOT  
Reference Guide
TGraphPolar.h
Go to the documentation of this file.
1 // @(#)root/graf:$Id$
2 // Author: Sebastian Boser, 02/02/06
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGraphPolar
13 #define ROOT_TGraphPolar
14 
15 #include "TGraphErrors.h"
16 
17 #ifdef R__LESS_INCLUDES
18 class TGraphPolargram;
19 #else
20 #include "TGraphPolargram.h"
21 #endif
22 
23 class TGraphPolar: public TGraphErrors {
24 
25 private:
26  Bool_t fOptionAxis; ///< Force drawing of new coord system
27 
28 protected:
29  TGraphPolargram* fPolargram; ///< The polar coordinates system
30  Double_t* fXpol; ///< [fNpoints] points in polar coordinates
31  Double_t* fYpol; ///< [fNpoints] points in polar coordinates
32 
33 
34 public:
36  TGraphPolar(Int_t n, const Double_t* theta=0, const Double_t* r=0,
37  const Double_t* etheta=0, const Double_t* er=0);
38  virtual ~TGraphPolar();
39 
41 
42  void Draw(Option_t* options = "");
43  Bool_t GetOptionAxis() {return fOptionAxis;};
44  void SetMaxRadial(Double_t maximum = 1); //*MENU*
45  void SetMinRadial(Double_t minimum = 0); //*MENU*
46  void SetMaximum(Double_t maximum = 1) {SetMaxRadial(maximum);}
47  void SetMinimum(Double_t minimum = 0) {SetMinRadial(minimum);}
48  void SetMaxPolar(Double_t maximum = 6.28318530717958623); //*MENU*
49  void SetMinPolar(Double_t minimum = 0); //*MENU*
50  void SetOptionAxis(Bool_t opt) {fOptionAxis = opt;};
51  void SetPolargram(TGraphPolargram *p) {fPolargram = p;};
54 
55  ClassDef(TGraphPolar,1); // Polar graph
56 };
57 
58 #endif
n
const Int_t n
Definition: legend1.C:16
TGraphPolar::SetPolargram
void SetPolargram(TGraphPolargram *p)
Definition: TGraphPolar.h:57
TGraphPolar::SetMinRadial
void SetMinRadial(Double_t minimum=0)
Set minimum radial in the center of the circle.
Definition: TGraphPolar.cxx:162
TGraphPolar::SetMaxRadial
void SetMaxRadial(Double_t maximum=1)
Set maximum radial at the intersection of the positive X axis part and the circle.
Definition: TGraphPolar.cxx:146
TGraphPolar::SetMaximum
void SetMaximum(Double_t maximum=1)
Set the maximum of the graph.
Definition: TGraphPolar.h:52
r
ROOT::R::TRInterface & r
Definition: Object.C:4
TGraphPolar::SetMinPolar
void SetMinPolar(Double_t minimum=0)
Set minimum Polar.
Definition: TGraphPolar.cxx:154
TGraphPolar::fXpol
Double_t * fXpol
[fNpoints] points in polar coordinates
Definition: TGraphPolar.h:36
TGraphPolar::TGraphPolar
TGraphPolar()
TGraphPolar default constructor.
Definition: TGraphPolar.cxx:66
TGraphPolar::SetOptionAxis
void SetOptionAxis(Bool_t opt)
Definition: TGraphPolar.h:56
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
bool
TGraphPolar
Definition: TGraphPolar.h:23
TGraphPolar::SetMinimum
void SetMinimum(Double_t minimum=0)
Set the minimum of the graph.
Definition: TGraphPolar.h:53
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TGraphPolar::SetMaxPolar
void SetMaxPolar(Double_t maximum=6.28318530717958623)
Set maximum Polar.
Definition: TGraphPolar.cxx:137
TGraphPolar::GetPolargram
TGraphPolargram * GetPolargram()
Definition: TGraphPolar.h:46
TGraphPolar::~TGraphPolar
virtual ~TGraphPolar()
TGraphPolar destructor.
Definition: TGraphPolar.cxx:91
TGraphPolar::fYpol
Double_t * fYpol
[fNpoints] points in polar coordinates
Definition: TGraphPolar.h:37
TGraphPolar::GetOptionAxis
Bool_t GetOptionAxis()
Definition: TGraphPolar.h:49
TGraphPolar::fPolargram
TGraphPolargram * fPolargram
The polar coordinates system.
Definition: TGraphPolar.h:35
Double_t
double Double_t
Definition: RtypesCore.h:59
TGraphErrors
Definition: TGraphErrors.h:26
TGraphPolargram
Definition: TGraphPolargram.h:20
TGraphPolargram.h
TGraphPolar::Draw
void Draw(Option_t *options="")
Draw TGraphPolar.
Definition: TGraphPolar.cxx:100
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGraphPolar::GetXpol
Double_t * GetXpol()
Return points in polar coordinates.
Definition: TGraphPolar.cxx:119
TGraphErrors.h
TGraphPolar::fOptionAxis
Bool_t fOptionAxis
Force drawing of new coord system.
Definition: TGraphPolar.h:32
TGraphPolar::GetYpol
Double_t * GetYpol()
Return points in polar coordinates.
Definition: TGraphPolar.cxx:128
int