int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
TH1 is the base class of all histogram classes in ROOT.
A slice of a piechart, see the TPie class.
void SetEntryVal(Int_t, Double_t)
TPieSlice * GetSlice(Int_t i)
Float_t fLabelsOffset
LabelsOffset offset of label.
void SetAngularOffset(Double_t)
void Paint(Option_t *) override
This method must be overridden if a class wants to paint itself.
Double_t GetEntryVal(Int_t)
TString fLabelFormat
Format format of the slices' label.
Float_t * fSlices
!Subdivisions of the slices
Double_t fAngularOffset
Offset angular offset for the first slice.
TPie(const char *, const char *, Int_t)
void SortSlices(Bool_t amode=kTRUE, Float_t merge_thresold=.0)
void SetEntryFillStyle(Int_t, Int_t)
void SetFractionFormat(const char *)
Float_t fAngle3D
The angle of the pseudo-3d view.
Double_t fHeight
Height of the slice in pixel.
const char * GetPercentFormat()
void SetPercentFormat(const char *)
void SetLabels(const char *[])
Bool_t fIs3D
! true if the pseudo-3d is enabled
void Init(Int_t np, Double_t ao, Double_t x, Double_t y, Double_t r)
Int_t GetEntryFillColor(Int_t)
void SetLabelsOffset(Float_t)
void SetEntryRadiusOffset(Int_t, Double_t)
Double_t GetAngularOffset()
Float_t GetLabelsOffset()
TLegend * fLegend
!Legend for this piechart
void SetLabelFormat(const char *)
Double_t fRadius
Radius Pie radius.
const char * GetFractionFormat()
TPieSlice ** fPieSlices
[fNvals] Slice array of this pie-chart
void ExecuteEvent(Int_t, Int_t, Int_t) override
Execute action corresponding to an event at (px,py).
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Computes distance from point (px,py) to the object.
void SetEntryLineStyle(Int_t, Int_t)
void MakeSlices(Bool_t force=kFALSE)
void SetEntryFillColor(Int_t, Int_t)
void SetEntryLineWidth(Int_t, Int_t)
const char * GetLabelFormat()
void SetCircle(Double_t x=.5, Double_t y=.5, Double_t rad=.4)
const char * GetEntryLabel(Int_t)
TString fValueFormat
Vform numeric format for the value.
TString fFractionFormat
Rform numeric format for the fraction of a slice.
void SetAngle3D(Float_t val=30.)
Double_t GetEntryRadiusOffset(Int_t)
Int_t GetEntryFillStyle(Int_t)
const char * GetValueFormat()
void SavePrimitive(std::ostream &out, Option_t *opts="") override
Save a primitive as a C++ statement(s) on output stream "out".
TString fPercentFormat
Pfrom numeric format for the percent of a slice.
TLegend * MakeLegend(Double_t x1=.65, Double_t y1=.65, Double_t x2=.95, Double_t y2=.95, const char *leg_header="")
Int_t fNvals
Number of elements.
Int_t DistancetoSlice(Int_t, Int_t)
Int_t GetEntryLineStyle(Int_t)
Float_t fSum
!Sum for the slice values
Double_t fY
Y coordinate of the pie centre.
void SetEntryLabel(Int_t, const char *text="Slice")
Double_t fX
X coordinate of the pie centre.
TPie(const char *, const char *, Int_t, Float_t *, Int_t *cols=nullptr, const char *lbls[]=nullptr)
void SetHeight(Double_t val=.08)
Int_t GetEntryLineWidth(Int_t)
Int_t GetEntryLineColor(Int_t)
void Draw(Option_t *option="l") override
Default Draw method for all objects.
void SetValueFormat(const char *)
TPie(const char *, const char *, Int_t, Double_t *, Int_t *cols=nullptr, const char *lbls[]=nullptr)
void SetEntryLineColor(Int_t, Int_t)
void SetFillColors(Int_t *)