58 if (!
gPad)
return dist;
90 const char *
name = opts;
94 out <<
" " <<
name <<
"->SetTitle(\"" <<
GetTitle() <<
"\");" << std::endl;
95 out <<
" " <<
name <<
"->SetValue(" <<
GetValue() <<
");" << std::endl;
119 Warning(
"SetValue",
"Invalid negative value. Absolute value taken");
Fill Area Attributes class.
void Copy(TAttFill &attfill) const
Copy this fill attributes to a new TAttFill.
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
Save fill attributes as C++ statement(s) on output stream out.
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
The TNamed class is the base class for all named ROOT classes.
void Copy(TObject &named) const override
Copy this to obj.
const char * GetTitle() const override
Returns title of object.
Mother of all ROOT objects.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
A slice of a piechart, see the TPie class.
Int_t DistancetoPrimitive(Int_t, Int_t) override
Eval if the mouse is over the area associated with this slice.
Double_t fRadiusOffset
offset from the center of the pie
Double_t fValue
value value of this slice
void SetValue(Double_t)
Set the value for this slice.
Bool_t fIsActive
! True if is the slice under the mouse pointer
Double_t GetRadiusOffset() const
return the value of the offset in radial direction for this slice.
void Copy(TObject &slice) const override
Copy TPieSlice.
Double_t GetValue() const
Return the value of this slice.
void SavePrimitive(std::ostream &out, Option_t *opts="") override
Save as C++ macro, used directly from TPie.
void SetRadiusOffset(Double_t)
Set the radial offset of this slice.
TPieSlice()
This is the default constructor, used to create the standard.
TPie * fPie
The TPie object that contain this slice.
void MakeSlices(Bool_t force=kFALSE)
Make the slices.