#ifndef ROOT_TGraphPolar
#define ROOT_TGraphPolar
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TH1.h"
#include "TCanvas.h"
#include "TEllipse.h"
#include "TLine.h"
#include "TLatex.h"
#include "TGaxis.h"
#include "TFrame.h"
#include "Riostream.h"
#include "TString.h"
const Double_t kPi = TMath::Pi();
class TGraphPolargram: public TNamed, public TAttText, public TAttLine {
private:
void Paint(Option_t* options="");
Double_t fRwrmin;
Double_t fRwrmax;
Double_t fRwtmin;
Double_t fRwtmax;
Int_t fNdivRad;
Int_t fNdivPol;
Double_t fLabelOffset;
public:
TGraphPolargram(const char* name, Double_t rmin, Double_t rmax,
Double_t tmin, Double_t tmax);
~TGraphPolargram();
void Draw(Option_t* options="");
Int_t DistancetoPrimitive(Int_t px, Int_t py);
void ExecuteEvent(Int_t event, Int_t px, Int_t py);
Double_t GetRMin() { return fRwrmin;};
Double_t GetRMax() { return fRwrmax;};
Double_t GetTMin() { return fRwtmin;};
Double_t GetTMax() { return fRwtmax;};
void SetRangeRadial(Double_t rmin, Double_t rmax);
void SetRangePolar(Double_t tmin, Double_t tmax);
void SetTwoPi() { SetRangePolar(0,2*TMath::Pi()); };
void SetNdivRadial(Int_t Ndiv = 502);
Int_t GetNdivRadial() { return fNdivRad; };
void SetNdivPolar(Int_t Ndiv = 204);
Int_t GetNdivPolar() { return fNdivPol; };
void SetLabelOffset(Double_t LabelOffset=0.03);
Double_t GetLabelOffset() { return fLabelOffset; };
void PaintCircle(Double_t x, Double_t y, Double_t r,
Double_t phimin, Double_t phimax, Double_t theta);
ClassDef(TGraphPolargram,0);
};
class TGraphPolar: public TGraphErrors {
private:
void Paint(Option_t* options = "");
Bool_t fOptionAxis;
protected:
TGraphPolargram* fPolargram;
Double_t* fXpol;
Double_t* fYpol;
public:
TGraphPolar(Int_t n, const Double_t* x=0, const Double_t* y=0,
const Double_t* ex=0, const Double_t* ey=0);
~TGraphPolar();
void Draw(Option_t* options = "");
TGraphPolargram* GetPolargram() { return fPolargram; };
Int_t DistancetoPrimitive(Int_t px, Int_t py);
void ExecuteEvent(Int_t event, Int_t px, Int_t py);
void SetMaxRadial(Double_t maximum = 1);
void SetMinRadial(Double_t minimum = 0);
void SetMaximum(Double_t maximum = 1) {SetMaxRadial(maximum);} ;
void SetMinimum(Double_t minimum = 0) {SetMinRadial(minimum);} ;
void SetMaxPolar(Double_t maximum = 6.28318530717958623);
void SetMinPolar(Double_t minimum = 0);
ClassDef(TGraphPolar,0);
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.