104 fColorSelect->
Connect(
"ColorSelected(Pixel_t)",
"TAttMarkerEditor",
this,
"DoMarkerColor(Pixel_t)");
105 fColorSelect->
Connect(
"AlphaColorSelected(ULong_t)",
"TAttMarkerEditor",
this,
"DoMarkerAlphaColor(ULong_t)");
106 fMarkerType->
Connect(
"MarkerSelected(Style_t)",
"TAttMarkerEditor",
this,
"DoMarkerStyle(Style_t)");
109 fAlpha->
Connect(
"Released()",
"TAttMarkerEditor",
this,
"DoAlpha()");
110 fAlpha->
Connect(
"PositionChanged(Int_t)",
"TAttMarkerEditor",
this,
"DoLiveAlpha(Int_t)");
112 fAlpha->
Connect(
"Pressed()",
"TAttMarkerEditor",
this,
"GetCurAlpha()");
134 if ((marker==1 || marker==6 || marker==7) && !
fSizeForText) {
195 if ((marker==1 || marker==6 || marker==7) && !
fSizeForText) {
212 if ((marker==1 || marker==6 || marker==7) && !
fSizeForText) {
260 if (color->GetAlpha() == 1.) {
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
Implements GUI for editing marker attributes.
virtual void DoAlpha()
Slot to set the alpha value.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
void SetModel(TObject *obj) override
Pick up the values of used marker attributes.
Bool_t fSizeForText
true if "text" draw option uses marker size
TAttMarker * fAttMarker
marker attribute object
virtual void ConnectSignals2Slots()
Connect signals to slots.
~TAttMarkerEditor() override
Destructor of marker editor.
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
TAttMarkerEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of marker attributes GUI.
TGNumberEntryField * fAlphaField
virtual void DoMarkerStyle(Style_t style)
Slot connected to the marker type.
TGedMarkerSelect * fMarkerType
marker type
virtual void DoMarkerSize()
Slot connected to the marker size.
TGHSlider * fAlpha
fill opacity
virtual void DoMarkerColor(Pixel_t color)
Slot connected to the marker color.
TGColorSelect * fColorSelect
marker color
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
virtual void DoMarkerAlphaColor(ULongptr_t p)
Slot connected to the color with alpha.
TGNumberEntry * fMarkerSize
marker size combo box
virtual Style_t GetMarkerStyle() const
Return the marker style.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual Color_t GetMarkerColor() const
Return the marker color.
virtual Size_t GetMarkerSize() const
Return the marker size.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
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.
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.
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).
TGNumberEntry is a number entry input widget with up/down buttons.
TGNumberEntryField * GetNumberEntry() const
Get the number entry field.
virtual void SetState(Bool_t enable=kTRUE)
Set the active state.
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)
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)
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
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.
Option_t * GetDrawOption() const override
Get draw options of the selected object.
Bool_t fAvoidSignal
flag for executing slots
The TGedMarkerSelect widget is a button showing selected marker and a little down arrow.
void SetMarkerStyle(Style_t pattern)
Set marker.
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.
void ToUpper()
Change string to upper case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const