66 fMarkerSize->GetNumberEntry()->SetToolTipText(
"Set marker size");
103 fColorSelect->Connect(
"ColorSelected(Pixel_t)",
"TAttMarkerEditor",
this,
"DoMarkerColor(Pixel_t)");
104 fColorSelect->Connect(
"AlphaColorSelected(ULong_t)",
"TAttMarkerEditor",
this,
"DoMarkerAlphaColor(ULong_t)");
105 fMarkerType->Connect(
"MarkerSelected(Style_t)",
"TAttMarkerEditor",
this,
"DoMarkerStyle(Style_t)");
106 fMarkerSize->Connect(
"ValueSet(Long_t)",
"TAttMarkerEditor",
this,
"DoMarkerSize()");
107 (
fMarkerSize->GetNumberEntry())->Connect(
"ReturnPressed()",
"TAttMarkerEditor",
this,
"DoMarkerSize()");
108 fAlpha->Connect(
"Released()",
"TAttMarkerEditor",
this,
"DoAlpha()");
109 fAlpha->Connect(
"PositionChanged(Int_t)",
"TAttMarkerEditor",
this,
"DoLiveAlpha(Int_t)");
110 fAlphaField->Connect(
"ReturnPressed()",
"TAttMarkerEditor",
this,
"DoAlphaField()");
111 fAlpha->Connect(
"Pressed()",
"TAttMarkerEditor",
this,
"GetCurAlpha()");
133 if ((marker==1 || marker==6 || marker==7) && !
fSizeForText) {
151 fAlpha->SetPosition((
Int_t)(color->GetAlpha()*1000));
166 fAlpha->SetPosition((
Int_t)(tcolor->GetAlpha()*1000));
181 fAttMarker->SetMarkerColor(color->GetNumber());
182 fAlpha->SetPosition((
Int_t)(color->GetAlpha()*1000));
194 if ((marker==1 || marker==6 || marker==7) && !
fSizeForText) {
211 if ((marker==1 || marker==6 || marker==7) && !
fSizeForText) {
259 if (color->GetAlpha() == 1.) {
276 fAlpha->SetPosition((
Int_t)(color->GetAlpha()*1000));
ULong_t Pixel_t
Pixel value.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
unsigned long ULongptr_t
Unsigned integer large enough to hold a pointer (platform-dependent).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
short Color_t
Color number (short).
short Style_t
Style number (short).
float Float_t
Float 4 bytes (float).
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
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
static Int_t GetColorTransparent(Int_t color, Float_t a)
static Int_t GetColor(const char *hexcolor)
static ULong_t Number2Pixel(Int_t ci)
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
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.
TGNumberEntry is a number entry input widget with up/down buttons.
ROOT GUI Window base class.
TGedFrame(const TGedFrame &)=delete
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.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".