110 fColorSelect->
Connect(
"ColorSelected(Pixel_t)",
"TAttMarkerEditor",
this,
"DoMarkerColor(Pixel_t)");
111 fColorSelect->
Connect(
"AlphaColorSelected(ULong_t)",
"TAttMarkerEditor",
this,
"DoMarkerAlphaColor(ULong_t)");
112 fMarkerType->
Connect(
"MarkerSelected(Style_t)",
"TAttMarkerEditor",
this,
"DoMarkerStyle(Style_t)");
115 fAlpha->
Connect(
"Released()",
"TAttMarkerEditor",
this,
"DoAlpha()");
116 fAlpha->
Connect(
"PositionChanged(Int_t)",
"TAttMarkerEditor",
this,
"DoLiveAlpha(Int_t)");
118 fAlpha->
Connect(
"Pressed()",
"TAttMarkerEditor",
this,
"GetCurAlpha()");
140 if ((marker==1 || marker==6 || marker==7) && !
fSizeForText) {
201 if ((marker==1 || marker==6 || marker==7) && !
fSizeForText) {
218 if ((marker==1 || marker==6 || marker==7) && !
fSizeForText) {
266 if (color->GetAlpha() == 1.) {
269 color->SetAlpha((
Float_t)a/1000);
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual Int_t GetPosition() const
virtual void SetRange(Int_t min, Int_t max)
virtual Option_t * GetDrawOption() const
Get draw options of the selected object.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
virtual ~TAttMarkerEditor()
Destructor of marker editor.
virtual void SetNumber(Double_t val)
void ToUpper()
Change string to upper case.
void SetMarkerStyle(Style_t pattern)
Set marker.
virtual void DoMarkerAlphaColor(ULong_t p)
Slot connected to the color with alpha.
virtual void SetState(Bool_t enable=kTRUE)
Set the active state.
virtual Style_t GetMarkerStyle() const
Return the marker style.
TGedMarkerSelect * fMarkerType
virtual void Update()
Update the current pad when an attribute is changed via GUI.
TGCompositeFrame(const TGCompositeFrame &)
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
virtual Size_t GetMarkerSize() const
Return the marker size.
virtual void DoMarkerColor(Pixel_t color)
Slot connected to the marker color.
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
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...
virtual void Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
virtual void DoAlpha()
Slot to set the alpha value.
virtual void Disable(Bool_t on=kTRUE)
TGNumberEntryField * fAlphaField
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void SetPosition(Int_t pos)
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb"...
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
TGNumberEntry * fMarkerSize
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
void SetEnabled(Bool_t flag=kTRUE)
virtual Double_t GetNumber() const
virtual void SetModel(TObject *obj)
Pick up the values of used marker attributes.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
static constexpr double s
virtual void SetEnabled(Bool_t flag=kTRUE)
The color creation and management class.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void DoMarkerSize()
Slot connected to the marker size.
virtual void ConnectSignals2Slots()
Connect signals to slots.
Mother of all ROOT objects.
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
virtual void SetNumber(Double_t val)
Set the numeric value (floating point representation).
TGNumberEntryField * GetNumberEntry() const
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
TGColorSelect * fColorSelect
virtual Color_t GetMarkerColor() const
Return the marker color.
virtual void DoMarkerStyle(Style_t style)
Slot connected to the marker type.
TAttMarkerEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of marker attributes GUI.
virtual void MakeTitle(const char *title)
Create attribute frame title.