100 fColorSelect->
Connect(
"ColorSelected(Pixel_t)",
"TAttFillEditor",
this,
"DoFillColor(Pixel_t)");
101 fColorSelect->
Connect(
"AlphaColorSelected(ULong_t)",
"TAttFillEditor",
this,
"DoFillAlphaColor(ULong_t)");
102 fPatternSelect->
Connect(
"PatternSelected(Style_t)",
"TAttFillEditor",
this,
"DoFillPattern(Style_t)");
103 fAlpha->
Connect(
"Released()",
"TAttFillEditor",
this,
"DoAlpha()");
104 fAlpha->
Connect(
"PositionChanged(Int_t)",
"TAttFillEditor",
this,
"DoLiveAlpha(Int_t)");
106 fAlpha->
Connect(
"Pressed()",
"TAttFillEditor",
this,
"GetCurAlpha()");
116 if (!attfill)
return;
216 if (color->GetAlpha() == 1.) {
219 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)
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
virtual void SetModel(TObject *obj)
Pick up the used fill attributes.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
Fill Area Attributes class.
virtual ~TAttFillEditor()
Destructor of fill editor.
virtual void DoFillPattern(Style_t color)
Slot connected to the fill area pattern.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
TGCompositeFrame(const TGCompositeFrame &)
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
virtual void DoFillColor(Pixel_t color)
Slot connected to the fill area 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 SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void Disable(Bool_t on=kTRUE)
virtual void DoAlpha()
Slot to set the alpha value.
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"...
void SetPattern(Style_t pattern, Bool_t emit=kTRUE)
Set pattern.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
void SetEnabled(Bool_t flag=kTRUE)
virtual Color_t GetFillColor() const
Return the fill area color.
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.
TAttFillEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of fill attributes GUI.
Mother of all ROOT objects.
virtual void SetNumber(Double_t val)
Set the numeric value (floating point representation).
virtual void DoFillAlphaColor(ULong_t p)
Slot connected to the fill area color with alpha.
double f2(const double *x)
TGedPatternSelect * fPatternSelect
TGColorSelect * fColorSelect
virtual Style_t GetFillStyle() const
Return the fill area style.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void MakeTitle(const char *title)
Create attribute frame title.
TGNumberEntryField * fAlphaField