#include <TPie.h>
Inheritance diagram for TPie:
Definition at line 31 of file TPie.h.
TPie::TPie | ( | const char * | , | |
const char * | , | |||
Int_t | ||||
) |
TPie::TPie | ( | const char * | , | |
const char * | , | |||
Int_t | , | |||
Double_t * | , | |||
Int_t * | cols = 0 , |
|||
const char * | lbls[] = 0 | |||
) |
Definition at line 81 of file TPie.cxx.
References fNvals, fPieSlices, i, Init(), SetFillColors(), and SetLabels().
TPie::TPie | ( | const char * | , | |
const char * | , | |||
Int_t | , | |||
Float_t * | , | |||
Int_t * | cols = 0 , |
|||
const char * | lbls[] = 0 | |||
) |
Definition at line 106 of file TPie.cxx.
References fNvals, fPieSlices, i, Init(), SetFillColors(), and SetLabels().
TPie::TPie | ( | const TH1 * | h | ) |
Definition at line 122 of file TPie.cxx.
References axis, fPieSlices, h, i, Init(), SetLabelFormat(), TAttText::SetTextColor(), TAttText::SetTextFont(), TAttText::SetTextSize(), and TNamed::SetTitle().
TPie::TPie | ( | const TPie & | ) |
Definition at line 147 of file TPie.cxx.
References fAngularOffset, fNvals, fPieSlices, fRadius, fX, fY, i, and Init().
TPie::~TPie | ( | ) |
TPie::TPie | ( | ) |
TPie::TPie | ( | const char * | , | |
const char * | , | |||
Int_t | ||||
) |
TPie::TPie | ( | const char * | , | |
const char * | , | |||
Int_t | , | |||
Double_t * | , | |||
Int_t * | cols = 0 , |
|||
const char * | lbls[] = 0 | |||
) |
TPie::TPie | ( | const char * | , | |
const char * | , | |||
Int_t | , | |||
Float_t * | , | |||
Int_t * | cols = 0 , |
|||
const char * | lbls[] = 0 | |||
) |
TPie::TPie | ( | const TH1 * | h | ) |
TPie::TPie | ( | const TPie & | ) |
TPie::~TPie | ( | ) |
Definition at line 745 of file TPie.cxx.
References fAngle3D, fAngularOffset, fFractionFormat, fHeight, fLabelFormat, fLabelsOffset, fLegend, fNvals, fPercentFormat, fPieSlices, fRadius, fSlices, fSum, fValueFormat, fX, fY, TStyle::GetColorPalette(), TStyle::GetLabelOffset(), gIsUptSlice, gStyle, i, kFALSE, TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), and TPieSlice::SetRadiusOffset().
Referenced by TPie().
void TPie::DrawGhost | ( | ) | [private] |
Definition at line 305 of file TPie.cxx.
References TMath::Cos(), fAngle3D, fHeight, fIs3D, fNvals, fPieSlices, fRadius, fSlices, gAngularOffset, gCurrent_slice, TPieSlice::GetRadiusOffset(), gPad, gRadius, gRadiusOffset, gVirtualX, gY, i, j, kTRUE, MakeSlices(), phi, TMath::Pi(), TMath::Sin(), and x0.
Referenced by ExecuteEvent().
Reimplemented from TObject.
Definition at line 174 of file TPie.cxx.
References ROOT::Math::gv_detail::dist(), DistancetoSlice(), fRadius, gCurrent_rad, and gCurrent_slice.
Referenced by THistPainter::DistancetoPrimitive().
Definition at line 192 of file TPie.cxx.
References TMath::Abs(), TMath::ATan2(), TMath::Cos(), ROOT::Math::gv_detail::dist(), fAngle3D, fIs3D, fNvals, fPieSlices, fRadius, fSlices, fX, fY, gCurrent_ang, gCurrent_phi1, gCurrent_phi2, gCurrent_rad, gCurrent_slice, gCurrent_x, gCurrent_y, TPieSlice::GetRadiusOffset(), gIsUptSlice, gPad, i, kFALSE, kTRUE, MakeSlices(), TMath::Pi(), result(), TPieSlice::SetIsActive(), TMath::Sin(), TMath::Sqrt(), and TMath::TwoPi().
Referenced by DistancetoPrimitive().
void TPie::Draw | ( | Option_t * | option = "l" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 280 of file TPie.cxx.
References TObject::AppendPad(), TString::Contains(), TString::Data(), fNvals, fPieSlices, gPad, gROOT, i, TString::Length(), TROOT::MakeDefCanvas(), and TString::ToLower().
Referenced by piechart().
Reimplemented from TObject.
Definition at line 406 of file TPie.cxx.
References TMath::ATan2(), TMath::Cos(), dr, DrawGhost(), fAngle3D, fAngularOffset, fIs3D, fPieSlices, fRadius, fSlices, fX, fY, gAngularOffset, gCurrent_ang, gCurrent_rad, gCurrent_slice, TPieSlice::GetRadiusOffset(), gIsUptSlice, gPad, gRadius, gRadiusOffset, gROOT, gVirtualX, gY, TROOT::IsEscaped(), kBottomLeft, kBottomRight, kBottomSide, kButton1Down, kButton1Locate, kButton1Motion, kButton1Up, kCross, kFALSE, kHand, kLeftSide, kMouseEnter, kMouseMotion, kMove, kPointer, kRightSide, kRotate, kTopLeft, kTopRight, kTopSide, kTRUE, MakeSlices(), TMath::Pi(), TMath::PiOver4(), SetAngularOffset(), TROOT::SetEscape(), TPieSlice::SetRadiusOffset(), TMath::Sin(), and TMath::TwoPi().
Float_t TPie::GetAngle3D | ( | ) | [inline] |
Double_t TPie::GetAngularOffset | ( | ) | [inline] |
const char * TPie::GetEntryLabel | ( | Int_t | ) |
const char* TPie::GetFractionFormat | ( | ) | [inline] |
Double_t TPie::GetHeight | ( | ) | [inline] |
const char* TPie::GetLabelFormat | ( | ) | [inline] |
Definition at line 81 of file TPie.h.
References TString::Data(), and fLabelFormat.
Referenced by SavePrimitive().
Float_t TPie::GetLabelsOffset | ( | ) | [inline] |
const char* TPie::GetPercentFormat | ( | ) | [inline] |
Definition at line 85 of file TPie.h.
References TString::Data(), and fPercentFormat.
Referenced by SavePrimitive().
Definition at line 735 of file TPie.cxx.
References fPieSlices.
Referenced by GetEntryFillColor(), GetEntryFillStyle(), GetEntryLabel(), GetEntryLineColor(), GetEntryLineStyle(), GetEntryLineWidth(), GetEntryRadiusOffset(), GetEntryVal(), and piechart().
const char* TPie::GetValueFormat | ( | ) | [inline] |
Definition at line 88 of file TPie.h.
References TString::Data(), and fValueFormat.
Referenced by SavePrimitive().
TLegend * TPie::MakeLegend | ( | Double_t | x1 = .65 , |
|
Double_t | y1 = .65 , |
|||
Double_t | x2 = .95 , |
|||
Double_t | y2 = .95 , |
|||
const char * | leg_header = "" | |||
) |
Definition at line 787 of file TPie.cxx.
References TLegend::AddEntry(), TLegend::Clear(), TLegend::Draw(), fLegend, fNvals, fPieSlices, TNamed::GetTitle(), gPad, and i.
Referenced by piechart().
Definition at line 1443 of file TPie.cxx.
References fAngularOffset, fNvals, fPieSlices, fSlices, fSum, TPieSlice::GetValue(), i, TPieSlice::SetValue(), and TObject::Warning().
Referenced by DistancetoSlice(), DrawGhost(), ExecuteEvent(), Paint(), SetAngularOffset(), SetEntryVal(), TPieSlice::SetValue(), and SortSlices().
void TPie::Paint | ( | Option_t * | ) | [virtual] |
Reimplemented from TObject.
Definition at line 811 of file TPie.cxx.
References TMath::ATan2(), TMath::Cos(), TString::Data(), fAngle3D, fFractionFormat, fHeight, fIs3D, fLabelFormat, fLabelsOffset, fNvals, Form(), fPieSlices, fRadius, fSlices, fSum, fValueFormat, fX, fY, TColor::GetColorDark(), TAttFill::GetFillColor(), TStyle::GetOptTitle(), TPieSlice::GetRadiusOffset(), TAttText::GetTextAngle(), TAttText::GetTextColor(), TAttText::GetTextFont(), TAttText::GetTextSize(), TNamed::GetTitle(), TStyle::GetTitleAlign(), TStyle::GetTitleBorderSize(), TStyle::GetTitleFillColor(), TStyle::GetTitleFont(), TStyle::GetTitleFontSize(), TStyle::GetTitleH(), TStyle::GetTitleStyle(), TStyle::GetTitleTextColor(), TStyle::GetTitleW(), TStyle::GetTitleX(), TStyle::GetTitleY(), TPieSlice::GetValue(), TLatex::GetXsize(), TLatex::GetYsize(), gPad, gStyle, h, i, TString::Index(), TObject::kCanDelete, kFALSE, kTRUE, l, line, MakeSlices(), TMath::Max(), TMath::Min(), TEllipse::PaintEllipse(), TLatex::PaintLatex(), TMath::Pi(), pi, TMath::PiOver2(), TString::Remove(), TString::ReplaceAll(), TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TAttText::SetTextColor(), TAttText::SetTextFont(), TAttText::SetTextSize(), TNamed::SetTitle(), TMath::Sin(), SortSlices(), title, TMath::TwoPi(), w, TObject::Warning(), and x0.
Referenced by THistPainter::Paint().
void TPie::SavePrimitive | ( | ostream & | out, | |
Option_t * | opts = "" | |||
) | [virtual] |
Reimplemented from TObject.
Definition at line 1140 of file TPie.cxx.
References xmlio::Class, TROOT::ClassSaved(), fNvals, fPieSlices, fRadius, fX, fY, GetAngularOffset(), TAttFill::GetFillColor(), TAttFill::GetFillStyle(), GetLabelFormat(), GetLabelsOffset(), TAttLine::GetLineColor(), TAttLine::GetLineStyle(), TAttLine::GetLineWidth(), TNamed::GetName(), GetPercentFormat(), TPieSlice::GetRadiusOffset(), TAttText::GetTextAngle(), TAttText::GetTextColor(), TAttText::GetTextFont(), TAttText::GetTextSize(), TNamed::GetTitle(), TPieSlice::GetValue(), GetValueFormat(), gROOT, and i.
void TPie::SetAngle3D | ( | Float_t | val = 30. |
) |
Definition at line 1196 of file TPie.cxx.
References fAngle3D.
Referenced by TPieEditor::DoChange3DAngle().
void TPie::SetAngularOffset | ( | Double_t | ) |
Definition at line 1211 of file TPie.cxx.
References fAngularOffset, kTRUE, and MakeSlices().
Referenced by ExecuteEvent(), and piechart().
void TPie::SetEntryLabel | ( | Int_t | , | |
const char * | text = "Slice" | |||
) |
Definition at line 1251 of file TPie.cxx.
References fNvals, fPieSlices, and TAttLine::SetLineColor().
Referenced by piechart().
Definition at line 1260 of file TPie.cxx.
References fNvals, fPieSlices, and TAttLine::SetLineStyle().
Referenced by piechart().
Definition at line 1269 of file TPie.cxx.
References fNvals, fPieSlices, and TAttLine::SetLineWidth().
Referenced by piechart().
Definition at line 1278 of file TPie.cxx.
References fNvals, fPieSlices, and TAttFill::SetFillColor().
Definition at line 1287 of file TPie.cxx.
References fNvals, fPieSlices, and TAttFill::SetFillStyle().
Referenced by piechart().
Definition at line 1296 of file TPie.cxx.
References fNvals, fPieSlices, and TPieSlice::SetRadiusOffset().
Referenced by piechart().
Definition at line 1305 of file TPie.cxx.
References fNvals, fPieSlices, kTRUE, MakeSlices(), and TPieSlice::SetValue().
void TPie::SetFillColors | ( | Int_t * | ) |
Definition at line 1316 of file TPie.cxx.
References fNvals, fPieSlices, i, and SetFillColor().
Referenced by TPie().
void TPie::SetFractionFormat | ( | const char * | ) |
void TPie::SetHeight | ( | Double_t | val = .08 |
) |
Definition at line 1326 of file TPie.cxx.
References fHeight.
Referenced by TPieEditor::DoChange3DAngle().
void TPie::SetLabelFormat | ( | const char * | ) |
Definition at line 1338 of file TPie.cxx.
References fLabelFormat.
Referenced by piechart(), and TPie().
void TPie::SetLabels | ( | const char * | [] | ) |
Definition at line 1373 of file TPie.cxx.
References fNvals, fPieSlices, i, and TNamed::SetTitle().
Referenced by TPie().
void TPie::SetLabelsOffset | ( | Float_t | ) |
void TPie::SetPercentFormat | ( | const char * | ) |
void TPie::SetRadius | ( | Double_t | ) |
Definition at line 1401 of file TPie.cxx.
References fRadius, and TObject::Warning().
Referenced by piechart().
void TPie::SetValueFormat | ( | const char * | ) |
void TPie::SetY | ( | Double_t | ) |
Definition at line 1476 of file TPie.cxx.
References fNvals, fPieSlices, TStyle::GetColorPalette(), TPieSlice::GetValue(), gStyle, i, kFALSE, kTRUE, and MakeSlices().
Referenced by Paint().
void TPie::DrawGhost | ( | ) | [private] |
Reimplemented from TObject.
Double_t TPie::GetAngularOffset | ( | ) | [inline] |
const char* TPie::GetEntryLabel | ( | Int_t | ) |
const char* TPie::GetFractionFormat | ( | ) | [inline] |
const char* TPie::GetLabelFormat | ( | ) | [inline] |
Float_t TPie::GetLabelsOffset | ( | ) | [inline] |
TLegend* TPie::GetLegend | ( | ) |
const char* TPie::GetPercentFormat | ( | ) | [inline] |
const char* TPie::GetValueFormat | ( | ) | [inline] |
TLegend* TPie::MakeLegend | ( | Double_t | x1 = .65 , |
|
Double_t | y1 = .65 , |
|||
Double_t | x2 = .95 , |
|||
Double_t | y2 = .95 , |
|||
const char * | leg_header = "" | |||
) |
void TPie::SavePrimitive | ( | ostream & | out, | |
Option_t * | opts = "" | |||
) | [virtual] |
Reimplemented from TObject.
void TPie::SetAngle3D | ( | Float_t | val = 30. |
) |
void TPie::SetAngularOffset | ( | Double_t | ) |
void TPie::SetEntryLabel | ( | Int_t | , | |
const char * | text = "Slice" | |||
) |
void TPie::SetFillColors | ( | Int_t * | ) |
void TPie::SetFractionFormat | ( | const char * | ) |
void TPie::SetHeight | ( | Double_t | val = .08 |
) |
void TPie::SetLabelFormat | ( | const char * | ) |
void TPie::SetLabels | ( | const char * | [] | ) |
void TPie::SetLabelsOffset | ( | Float_t | ) |
void TPie::SetPercentFormat | ( | const char * | ) |
void TPie::SetRadius | ( | Double_t | ) |
void TPie::SetValueFormat | ( | const char * | ) |
void TPie::SetX | ( | Double_t | ) |
void TPie::SetY | ( | Double_t | ) |
Float_t TPie::fSum [private] |
Float_t* TPie::fSlices [private] |
Sum for the slice values.
Definition at line 37 of file TPie.h.
Referenced by DistancetoSlice(), DrawGhost(), ExecuteEvent(), Init(), MakeSlices(), Paint(), and ~TPie().
TLegend* TPie::fLegend [private] |
Subdivisions of the slices.
Definition at line 38 of file TPie.h.
Referenced by GetLegend(), Init(), MakeLegend(), and ~TPie().
Legend for this piechart.
Definition at line 41 of file TPie.h.
Referenced by DistancetoSlice(), ExecuteEvent(), GetX(), Init(), Paint(), SavePrimitive(), SetCircle(), SetX(), and TPie().
Definition at line 42 of file TPie.h.
Referenced by DistancetoSlice(), ExecuteEvent(), GetY(), Init(), Paint(), SavePrimitive(), SetCircle(), SetY(), and TPie().
Double_t TPie::fRadius [protected] |
Definition at line 43 of file TPie.h.
Referenced by DistancetoPrimitive(), DistancetoSlice(), DrawGhost(), ExecuteEvent(), GetRadius(), Init(), Paint(), SavePrimitive(), SetCircle(), SetRadius(), and TPie().
Double_t TPie::fAngularOffset [protected] |
Definition at line 44 of file TPie.h.
Referenced by ExecuteEvent(), GetAngularOffset(), Init(), MakeSlices(), SetAngularOffset(), and TPie().
Float_t TPie::fLabelsOffset [protected] |
Definition at line 45 of file TPie.h.
Referenced by GetLabelsOffset(), Init(), Paint(), and SetLabelsOffset().
TString TPie::fLabelFormat [protected] |
Definition at line 46 of file TPie.h.
Referenced by GetLabelFormat(), Init(), Paint(), and SetLabelFormat().
TString TPie::fValueFormat [protected] |
Definition at line 47 of file TPie.h.
Referenced by GetValueFormat(), Init(), Paint(), and SetValueFormat().
TString TPie::fFractionFormat [protected] |
Definition at line 48 of file TPie.h.
Referenced by GetFractionFormat(), Init(), Paint(), and SetFractionFormat().
TString TPie::fPercentFormat [protected] |
Definition at line 49 of file TPie.h.
Referenced by GetPercentFormat(), Init(), and SetPercentFormat().
Int_t TPie::fNvals [protected] |
Definition at line 50 of file TPie.h.
Referenced by DistancetoSlice(), Draw(), DrawGhost(), GetEntries(), Init(), MakeLegend(), MakeSlices(), Paint(), SavePrimitive(), SetEntryFillColor(), SetEntryFillStyle(), SetEntryLabel(), SetEntryLineColor(), SetEntryLineStyle(), SetEntryLineWidth(), SetEntryRadiusOffset(), SetEntryVal(), SetFillColors(), SetLabels(), SortSlices(), TPie(), and ~TPie().
TPieSlice** TPie::fPieSlices [protected] |
Definition at line 51 of file TPie.h.
Referenced by DistancetoSlice(), Draw(), DrawGhost(), ExecuteEvent(), GetSlice(), Init(), MakeLegend(), MakeSlices(), Paint(), SavePrimitive(), SetEntryFillColor(), SetEntryFillStyle(), SetEntryLabel(), SetEntryLineColor(), SetEntryLineStyle(), SetEntryLineWidth(), SetEntryRadiusOffset(), SetEntryVal(), SetFillColors(), SetLabels(), SortSlices(), TPie(), and ~TPie().
Bool_t TPie::fIs3D [protected] |
Definition at line 52 of file TPie.h.
Referenced by DistancetoSlice(), DrawGhost(), ExecuteEvent(), and Paint().
Double_t TPie::fHeight [protected] |
true if the pseudo-3d is enabled
Definition at line 53 of file TPie.h.
Referenced by DrawGhost(), GetHeight(), Init(), Paint(), and SetHeight().
Float_t TPie::fAngle3D [protected] |
Definition at line 54 of file TPie.h.
Referenced by DistancetoSlice(), DrawGhost(), ExecuteEvent(), GetAngle3D(), Init(), Paint(), and SetAngle3D().
Float_t* TPie::fSlices [private] |
TLegend* TPie::fLegend [private] |
TPieSlice** TPie::fPieSlices [protected] |