TPieSlice Class Reference

#include <TPieSlice.h>

Inheritance diagram for TPieSlice:

TNamed TAttFill TAttLine TNamed TAttFill TAttLine TObject TObject TObject TObject List of all members.

Public Member Functions

 TPieSlice ()
 TPieSlice (const char *, const char *, TPie *, Double_t val=0)
virtual ~TPieSlice ()
virtual Int_t DistancetoPrimitive (Int_t, Int_t)
Double_t GetRadiusOffset ()
Double_t GetValue ()
void SavePrimitive (ostream &out, Option_t *opts="")
void SetIsActive (Bool_t is)
void SetRadiusOffset (Double_t)
void SetValue (Double_t)
 TPieSlice ()
 TPieSlice (const char *, const char *, TPie *, Double_t val=0)
virtual ~TPieSlice ()
virtual Int_t DistancetoPrimitive (Int_t, Int_t)
Double_t GetRadiusOffset ()
Double_t GetValue ()
void SavePrimitive (ostream &out, Option_t *opts="")
void SetIsActive (Bool_t is)
void SetRadiusOffset (Double_t)
void SetValue (Double_t)

Protected Attributes

TPiefPie
 True if is the slice under the mouse pointer.
Double_t fValue
Double_t fRadiusOffset
TPiefPie
 True if is the slice under the mouse pointer.

Private Attributes

Bool_t fIsActive

Friends

class TPie

Detailed Description

Definition at line 30 of file TPieSlice.h.


Constructor & Destructor Documentation

TPieSlice::TPieSlice (  ) 

TPieSlice::TPieSlice ( const char *  ,
const char *  ,
TPie ,
Double_t  val = 0 
)

Definition at line 46 of file TPieSlice.cxx.

References fIsActive, fPie, fRadiusOffset, fValue, and kFALSE.

virtual TPieSlice::~TPieSlice (  )  [inline, virtual]

Definition at line 43 of file TPieSlice.h.

TPieSlice::TPieSlice (  ) 

TPieSlice::TPieSlice ( const char *  ,
const char *  ,
TPie ,
Double_t  val = 0 
)

virtual TPieSlice::~TPieSlice (  )  [inline, virtual]

Definition at line 43 of file TPieSlice.h.


Member Function Documentation

Int_t TPieSlice::DistancetoPrimitive ( Int_t  ,
Int_t   
) [virtual]

Reimplemented from TObject.

Definition at line 60 of file TPieSlice.cxx.

References ROOT::Math::gv_detail::dist(), fIsActive, gPad, kFALSE, and kHand.

Double_t TPieSlice::GetRadiusOffset (  ) 

Definition at line 77 of file TPieSlice.cxx.

References fRadiusOffset.

Referenced by TPie::DistancetoSlice(), TPie::DrawGhost(), TPie::ExecuteEvent(), TPie::GetEntryRadiusOffset(), TPie::Paint(), TPie::SavePrimitive(), and TPieSliceEditor::SetModel().

Double_t TPieSlice::GetValue (  ) 

Definition at line 86 of file TPieSlice.cxx.

References fValue.

Referenced by TPie::GetEntryVal(), TPie::MakeSlices(), TPie::Paint(), TPie::SavePrimitive(), TPieSliceEditor::SetModel(), and TPie::SortSlices().

void TPieSlice::SavePrimitive ( ostream &  out,
Option_t opts = "" 
) [virtual]

Reimplemented from TObject.

Definition at line 95 of file TPieSlice.cxx.

void TPieSlice::SetIsActive ( Bool_t  is  )  [inline]

Definition at line 49 of file TPieSlice.h.

References fIsActive.

Referenced by TPie::DistancetoSlice().

void TPieSlice::SetRadiusOffset ( Double_t   ) 

Definition at line 102 of file TPieSlice.cxx.

References fRadiusOffset.

Referenced by TPieSliceEditor::DoOffset(), TPie::ExecuteEvent(), TPie::Init(), and TPie::SetEntryRadiusOffset().

void TPieSlice::SetValue ( Double_t   ) 

Definition at line 112 of file TPieSlice.cxx.

References fPie, fValue, kTRUE, TPie::MakeSlices(), and TObject::Warning().

Referenced by TPieSliceEditor::DoValue(), TPie::MakeSlices(), piechart(), and TPie::SetEntryVal().

virtual Int_t TPieSlice::DistancetoPrimitive ( Int_t  ,
Int_t   
) [virtual]

Reimplemented from TObject.

Double_t TPieSlice::GetRadiusOffset (  ) 

Double_t TPieSlice::GetValue (  ) 

void TPieSlice::SavePrimitive ( ostream &  out,
Option_t opts = "" 
) [virtual]

Reimplemented from TObject.

void TPieSlice::SetIsActive ( Bool_t  is  )  [inline]

Definition at line 49 of file TPieSlice.h.

References fIsActive.

void TPieSlice::SetRadiusOffset ( Double_t   ) 

void TPieSlice::SetValue ( Double_t   ) 


Friends And Related Function Documentation

TPie [friend]

Definition at line 53 of file TPieSlice.h.


Member Data Documentation

Bool_t TPieSlice::fIsActive [private]

Definition at line 33 of file TPieSlice.h.

Referenced by DistancetoPrimitive(), SetIsActive(), and TPieSlice().

TPie* TPieSlice::fPie [protected]

True if is the slice under the mouse pointer.

Definition at line 36 of file TPieSlice.h.

Referenced by SetValue(), and TPieSlice().

Double_t TPieSlice::fValue [protected]

Definition at line 37 of file TPieSlice.h.

Referenced by GetValue(), SetValue(), and TPieSlice().

Double_t TPieSlice::fRadiusOffset [protected]

Definition at line 38 of file TPieSlice.h.

Referenced by GetRadiusOffset(), SetRadiusOffset(), and TPieSlice().

TPie* TPieSlice::fPie [protected]

True if is the slice under the mouse pointer.

Definition at line 36 of file TPieSlice.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:44:57 2011 for ROOT_528-00b_version by  doxygen 1.5.1