103 fColorSelect->
Connect(
"ColorSelected(Pixel_t)",
"TAttLineEditor",
this,
"DoLineColor(Pixel_t)");
104 fColorSelect->
Connect(
"AlphaColorSelected(ULong_t)",
"TAttLineEditor",
this,
"DoLineAlphaColor(ULong_t)");
105 fStyleCombo->
Connect(
"Selected(Int_t)",
"TAttLineEditor",
this,
"DoLineStyle(Int_t)");
106 fWidthCombo->
Connect(
"Selected(Int_t)",
"TAttLineEditor",
this,
"DoLineWidth(Int_t)");
107 fAlpha->
Connect(
"Released()",
"TAttLineEditor",
this,
"DoAlpha()");
108 fAlpha->
Connect(
"PositionChanged(Int_t)",
"TAttLineEditor",
this,
"DoLiveAlpha(Int_t)");
110 fAlpha->
Connect(
"Pressed()",
"TAttLineEditor",
this,
"GetCurAlpha()");
121 if (!attline)
return;
199 if (graphLineWidth >= 0) {
248 if (color->GetAlpha() == 1.) {
ULong_t Pixel_t
Pixel value.
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
Implements GUI for editing line attributes.
void SetModel(TObject *obj) override
Pick up the used line attributes.
virtual void DoAlpha()
Slot to set the alpha value.
TGHSlider * fAlpha
fill opacity
virtual void DoLineColor(Pixel_t color)
Slot connected to the line color.
~TAttLineEditor() override
Destructor of line editor.
TAttLine * fAttLine
line attribute object
TAttLineEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of line attributes GUI.
virtual void DoLineWidth(Int_t width)
Slot connected to the line width.
virtual void DoLineAlphaColor(ULongptr_t p)
Slot connected to the color with alpha.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
virtual void DoLineStyle(Int_t style)
Slot connected to the line style.
TGLineStyleComboBox * fStyleCombo
line style combo box
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
TGColorSelect * fColorSelect
line color widget
TGNumberEntryField * fAlphaField
TGLineWidthComboBox * fWidthCombo
line width combo box
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
virtual Color_t GetLineColor() const
Return the line color.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual Width_t GetLineWidth() const
Return the line width.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual Style_t GetLineStyle() const
Return the line style.
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
The color creation and management class.
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",...
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
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.
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 Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
Concrete class for horizontal slider.
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
virtual void Disable(Bool_t on=kTRUE)
This class describes layout hints used by the layout classes.
The TGLineStyleComboBox user callable and it creates a combobox for selecting the line style.
The TGLineWidthComboBox user callable and it creates a combobox for selecting the line width.
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
Set the numeric value (floating point representation).
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
virtual Int_t GetPosition() const
virtual void SetPosition(Int_t pos)
Set slider position.
virtual void SetRange(Int_t min, Int_t max)
Set slider range.
virtual void SetEnabled(Bool_t flag=kTRUE)
void SetEnabled(Bool_t flag=kTRUE)
ROOT GUI Window base class.
Base frame for implementing GUI - a service class.
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.
Int_t fPriority
location in GedEditor
Bool_t fAvoidSignal
flag for executing slots
A TGraph is an object made of two arrays X and Y with npoints each.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.