Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
18class TGraphPolargram;
19#else
20#include "TGraphPolargram.h"
21#endif
22
23class TGraphPolar : public TGraphErrors {
24
25private:
26 Bool_t fOptionAxis; ///< Force drawing of new coord system
27
28protected:
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
33public:
35 TGraphPolar(Int_t n, const Double_t* theta = nullptr, const Double_t* r = nullptr,
36 const Double_t* etheta = nullptr, const Double_t* er = nullptr);
37 ~TGraphPolar() override;
38
40
41 TGraphPolargram *CreatePolargram(const char *opt);
42
43 void Draw(Option_t* options = "") override;
45 void SetMaxRadial(Double_t maximum = 1); //*MENU*
46 void SetMinRadial(Double_t minimum = 0); //*MENU*
47 void SetMaximum(Double_t maximum = 1) override {SetMaxRadial(maximum);}
48 void SetMinimum(Double_t minimum = 0) override {SetMinRadial(minimum);}
49 void SetMaxPolar(Double_t maximum = 6.28318530717958623); //*MENU*
50 void SetMinPolar(Double_t minimum = 0); //*MENU*
51 void SetOptionAxis(Bool_t opt) {fOptionAxis = opt;}
55
56 ClassDefOverride(TGraphPolar,1); // Polar graph
57};
58
59#endif
double Double_t
Definition RtypesCore.h:59
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
A TGraphErrors is a TGraph with error bars.
To draw a polar graph.
Definition TGraphPolar.h:23
void SetMaximum(Double_t maximum=1) override
Set the maximum of the graph.
Definition TGraphPolar.h:47
void SetMinRadial(Double_t minimum=0)
Set minimum radial in the center of the circle.
Bool_t fOptionAxis
Force drawing of new coord system.
Definition TGraphPolar.h:26
Double_t * fXpol
[fNpoints] points in polar coordinates
Definition TGraphPolar.h:30
void SetMaxPolar(Double_t maximum=6.28318530717958623)
Set maximum Polar.
Double_t * GetYpol()
Return points in polar coordinates.
TGraphPolargram * fPolargram
The polar coordinates system.
Definition TGraphPolar.h:29
TGraphPolargram * GetPolargram()
Definition TGraphPolar.h:39
Bool_t GetOptionAxis()
Definition TGraphPolar.h:44
void SetMaxRadial(Double_t maximum=1)
Set maximum radial at the intersection of the positive X axis part and the circle.
TGraphPolar()
TGraphPolar default constructor.
void SetPolargram(TGraphPolargram *p)
Definition TGraphPolar.h:52
void SetOptionAxis(Bool_t opt)
Definition TGraphPolar.h:51
~TGraphPolar() override
TGraphPolar destructor.
Double_t * GetXpol()
Return points in polar coordinates.
TGraphPolargram * CreatePolargram(const char *opt)
Create polargram object for given draw options.
void SetMinPolar(Double_t minimum=0)
Set minimum Polar.
Double_t * fYpol
[fNpoints] points in polar coordinates
Definition TGraphPolar.h:31
void SetMinimum(Double_t minimum=0) override
Set the minimum of the graph.
Definition TGraphPolar.h:48
To draw polar axis.
const Int_t n
Definition legend1.C:16
th1 Draw()