#ifndef ROOT_TPie
#define ROOT_TPie
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TNamed
#include <TNamed.h>
#endif
#ifndef ROOT_TString
#include <TString.h>
#endif
#ifndef ROOT_TAttText
#include <TAttText.h>
#endif
class TH1;
class TPie : public TNamed , public TAttText {
private:
void Init(Int_t np, Double_t ao, Double_t x, Double_t y, Double_t r);
void MakeSlices(Bool_t force=kFALSE);
void DrawGhost();
Float_t fSum;
Float_t *fSlices;
protected:
Double_t fX;
Double_t fY;
Double_t fRadius;
Double_t fAngularOffset;
Float_t fLabelsOffset;
TString fLabelFormat;
TString fValueFormat;
TString fFractionFormat;
TString fPercentFormat;
Int_t fNvals;
Double_t *fVals;
TString *fLabels;
Int_t *fFillColors;
Int_t *fFillStyles;
Int_t *fLineColors;
Int_t *fLineStyles;
Int_t *fLineWidths;
Double_t *fRadiusOffsets;
Bool_t fIs3D;
Double_t fHeight;
public:
TPie();
TPie(const char *,const char *, Int_t);
TPie(const char *,const char *, Int_t, Double_t *,Int_t *cols=0, const char *lbls[]=0);
TPie(const char *,const char *, Int_t, Float_t *,Int_t *cols=0, const char *lbls[]=0);
TPie(const TH1 *h);
TPie(const TPie&);
~TPie();
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
Int_t DistancetoSlice(Int_t,Int_t);
virtual void Draw(Option_t *option="l");
virtual void ExecuteEvent(Int_t,Int_t,Int_t);
Double_t GetAngularOffset() { return fAngularOffset; }
Double_t GetHeight() { return fHeight; }
const char* GetEntryLabel(Int_t);
Int_t GetEntryFillColor(Int_t);
Int_t GetEntryFillStyle(Int_t);
Double_t GetEntryRadiusOffset(Int_t);
Double_t GetEntryVal(Int_t);
const char *GetFractionFormat() { return fFractionFormat.Data(); }
const char *GetLabelFormat() { return fLabelFormat.Data(); }
Float_t GetLabelsOffset() { return fLabelsOffset; }
const char *GetPercentFormat() { return fPercentFormat.Data(); }
Double_t GetRadius() { return fRadius;}
const char *GetValueFormat() { return fValueFormat.Data(); }
Double_t GetX() { return fX; }
Double_t GetY() { return fY; }
virtual void Paint(Option_t *);
void SavePrimitive(ostream &out, Option_t *opts="");
void SetAngularOffset(Double_t);
void SetCircle(Double_t x=.5, Double_t y=.5, Double_t rad=.4);
void SetEntryLabel(Int_t, const char *text="Slice");
void SetEntryLineColor(Int_t, Int_t);
void SetEntryLineStyle(Int_t, Int_t);
void SetEntryLineWidth(Int_t, Int_t);
void SetEntryFillColor(Int_t, Int_t);
void SetEntryFillStyle(Int_t, Int_t);
void SetEntryRadiusOffset(Int_t, Double_t);
void SetEntryVal(Int_t, Double_t);
void SetFillColors(Int_t*);
void SetFractionFormat(const char*);
void SetHeight(Double_t val=0.08);
void SetLabel(const char *);
void SetLabelFormat(const char *);
void SetLabels(const char *[]);
void SetLabelsOffset(Float_t);
void SetPercentFormat(const char *);
void SetRadius(Double_t);
void SetValueFormat(const char *);
void SetX(Double_t);
void SetY(Double_t);
ClassDef(TPie,1)
};
#endif // ROOT_TPie
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.