145 fTitle->
Connect(
"TextChanged(const char *)",
"TPieEditor",
this,
"DoTitle(const char *)");
146 fgr->
Connect(
"Clicked(Int_t)",
"TPieEditor",
this,
"DoShape()");
148 f3DAngle->
Connect(
"ValueSet(Long_t)",
"TPieEditor",
this,
"DoChange3DAngle()");
149 f3DHeight->
Connect(
"ValueSet(Long_t)",
"TPieEditor",
this,
"DoChange3DAngle()");
150 fIs3D->
Connect(
"Clicked()",
"TPieEditor",
this,
"DoGraphLineWidth()");
195 if ( (idx=soption.
Index(
"same"))>=0 ) {
200 if ( (idx=soption.
Index(
"nol"))>=0 ) {
209 if ( (idx=soption.
Index(
"3d"))>=0 ) {
219 if ( (idx=soption.
Index(
"t"))>=0 ) {
225 if ( (idx=soption.
Index(
"r"))>=0 ) {
407 c->AddEntry(
"Default", 0);
408 for (
int i = 1; i <= 50; i++) {
ULong_t Pixel_t
Pixel value.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char text
virtual Float_t GetTextSize() const
Return the text size.
virtual Font_t GetTextFont() const
Return the text font.
virtual Color_t GetTextColor() const
Return the text color.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
TClass instances represent classes, structs and namespaces in the ROOT type system.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual Int_t GetSelected() const
virtual TGLBEntry * GetSelectedEntry() const
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
void ChangeOptions(UInt_t options) override
Change composite frame options. Options is an OR of the EFrameTypes.
The TGFontTypeComboBox is user callable and it creates a combobox for selecting the font.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
virtual UInt_t GetDefaultHeight() const
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
void Associate(const TGWindow *w) override
Make w the window that will receive the generated messages.
virtual Double_t GetNumber() const
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
A TGTextEntry is a one line text input widget.
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
ROOT GUI Window base class.
virtual TVirtualPad * GetPad() const
virtual TObject * GetModel() const
void ExcludeClassEditor(TClass *cl, Bool_t recurse=kFALSE)
Exclude editor for class cl from current construction.
Base frame for implementing GUI - a service class.
virtual Option_t * GetDrawOption() const
Get draw options of the selected object.
virtual void ActivateBaseClassEditors(TClass *cl)
Provide list of editors for base-classes.
TGedEditor * fGedEditor
manager of this frame
virtual void SetDrawOption(Option_t *option="")
Set drawing option for object.
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
TGedEditor * GetGedEditor()
Bool_t fAvoidSignal
flag for executing slots
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetTitle() const override
Returns title of object.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetTitle() const
Returns title of object.
Implements GUI for pie-chart attributes.
TGRadioButton * fLblDirH
Draw slice's labels horizontal.
TGNumberEntry * f3DAngle
set the pseudo 3D angle
virtual void DoTextChange()
Change text.
virtual void ActivateBaseClassEditors(TClass *)
Exclude TAttTextEditor from this interface.
TGColorSelect * fColorSelect
font color selector
virtual ~TPieEditor()
Destructor of pie editor.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoChange3DAngle()
Slot for setting the 3D angle.
TGNumberEntry * f3DHeight
set the 3D tickness
TGCheckButton * fIs3D
set if is enabled the pseudo-3d mode
virtual void SetModel(TObject *)
Pick up the used values of graph attributes.
virtual void DoMarkerOnOff(Bool_t on)
Slot for setting markers as visible/invisible.
virtual void DoGraphLineWidth()
Slot connected to the graph line width.
TGLayoutHints * fShape1lh
layout-hints for fShape1
static TGComboBox * BuildFontSizeComboBox(TGFrame *, Int_t)
Create text size combo box.
TGRadioButton * fLblDirT
Draw slice's labels tangential to the piechart's circle.
TGRadioButton * fLblDirR
Draw slice's labels radial to the piechart.
TGComboBox * fSizeCombo
font size
TGButtonGroup * fgr
Group the Radiobuttons:
TGTextEntry * fTitle
Contains the title of the graph.
TGCheckButton * fOutlineOnOff
set piechart outline visible/unvisible
TGFontTypeComboBox * fTypeCombo
font style
TPieEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of graph editor.
virtual void DoShape()
Slot connected to the draw options.
virtual void DoTitle(const char *text)
Slot for setting the graph title.
void SetAngle3D(Float_t val=30.)
Set the value of for the pseudo 3D view angle, in degree.
void SetHeight(Double_t val=.08)
Set the height, in pixel, for the piechart if is drawn using the pseudo-3d mode.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Int_t Atoi() const
Return integer value of string.
Ssiz_t First(char c) const
Find first occurrence of a character c.
TString & Remove(Ssiz_t pos)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual Int_t YtoPixel(Double_t y) const =0
virtual Double_t GetY1() const =0
virtual Double_t AbsPixeltoY(Int_t py)=0
virtual Double_t GetY2() const =0