const char * GetLabelFormat()
Int_t GetEntryFillColor(Int_t)
Return the color of the slice number "i".
void SetPercentFormat(const char *)
Set the numeric format for the percent value of a slice, default: %3.1f.
void MakeSlices(Bool_t force=kFALSE)
Make the slices.
void DrawGhost()
This method is for internal use.
This class displays a legend box (TPaveText) containing several legend entries.
Float_t * fSlices
Sum for the slice values.
void SavePrimitive(std::ostream &out, Option_t *opts="")
Save primitive as a C++ statement(s) on output stream out.
const char * GetValueFormat()
Int_t GetEntryLineColor(Int_t)
Return the line color used to outline thi "i" slice.
void SetAngularOffset(Double_t)
Set the global angular offset for slices in degree [0,360].
TLegend * fLegend
Subdivisions of the slices.
TPieSlice * GetSlice(Int_t i)
Return the reference to the slice of index 'id'.
void SetEntryFillStyle(Int_t, Int_t)
Set the fill style for the "i" slice.
void SetAngle3D(Float_t val=30.)
Set the value of for the pseudo 3D view angle, in degree.
const char * Data() const
void SetEntryVal(Int_t, Double_t)
Set the value of a slice.
Int_t GetEntryLineStyle(Int_t)
Return the style used to outline thi "i" slice.
static const double x2[5]
virtual void Paint(Option_t *)
Paint a Pie chart in a canvas.
Int_t GetEntryFillStyle(Int_t)
Return the style use to fill the slice number "i".
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
Double_t GetEntryRadiusOffset(Int_t)
Return the radial offset's value for the slice number "i".
void SetEntryRadiusOffset(Int_t, Double_t)
Set the distance, in the direction of the radius of the slice.
void SetHeight(Double_t val=.08)
Set the height, in pixel, for the piechart if is drawn using the pseudo-3d mode.
A slice of a piechart, see the TPie class.
const char * GetEntryLabel(Int_t)
Returns the label of the entry number "i".
Double_t GetAngularOffset()
Double_t GetEntryVal(Int_t)
Return the value associated with the slice number "i".
Int_t DistancetoSlice(Int_t, Int_t)
Returns the slice number at the pixel position (px,py).
void SetX(Double_t)
Set X value.
void SetFractionFormat(const char *)
Set numeric format in the label, is used if the label format there is the modifier frac...
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Evaluate the distance to the chart in gPad.
void SetLabels(const char *[])
Set the labels for all the slices.
void SetY(Double_t)
Set Y value.
void SortSlices(Bool_t amode=kTRUE, Float_t merge_thresold=.0)
This method, mainly intended for internal use, ordered the slices according their values...
void SetFillColors(Int_t *)
Set the fill colors for all the TPie's slices.
void SetCircle(Double_t x=.5, Double_t y=.5, Double_t rad=.4)
Set the coordinates of the circle that describe the pie:
virtual void ExecuteEvent(Int_t, Int_t, Int_t)
Execute the mouse events.
const char * GetFractionFormat()
static const double x1[5]
void SetRadius(Double_t)
Set the pie chart's radius' value.
TPie()
Default constructor.
TLegend * MakeLegend(Double_t x1=.65, Double_t y1=.65, Double_t x2=.95, Double_t y2=.95, const char *leg_header="")
This method create a legend that explains the contents of the slice for this pie-chart.
void SetLabelsOffset(Float_t)
Set the distance between the label end the external line of the TPie.
Double_t fHeight
true if the pseudo-3d is enabled
Double_t fX
Legend for this piechart.
void SetLabelFormat(const char *)
This method is used to customize the label format.
void SetEntryFillColor(Int_t, Int_t)
Set the color for the slice "i".
void SetEntryLineStyle(Int_t, Int_t)
Set the style for the slice's outline. "i" is the slice number.
TLegend * GetLegend()
If created before by Paint option or by MakeLegend method return the pointer to the legend...
Float_t GetLabelsOffset()
void SetEntryLineColor(Int_t, Int_t)
Set the color for the slice's outline. "i" is the slice number.
const char * GetPercentFormat()
Int_t GetEntryLineWidth(Int_t)
Return the line width used to outline thi "i" slice.
void Init(Int_t np, Double_t ao, Double_t x, Double_t y, Double_t r)
Common initialization for all constructors.
void SetEntryLineWidth(Int_t, Int_t)
Set the width of the slice's outline. "i" is the slice number.
virtual void Draw(Option_t *option="l")
Draw the pie chart.
void SetEntryLabel(Int_t, const char *text="Slice")
Set slice number "i" label.
void SetValueFormat(const char *)
Set the numeric format the slices' values.