83 fIsWavy->
SetToolTipText(
"Toggle between wavy line (Gluon) if selected; curly line (Gamma) otherwise.");
161 fIsWavy->
Connect(
"Clicked()",
"TCurlyLineEditor",
this,
"DoWavy()");
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
TClass instances represent classes, structs and namespaces in the ROOT type system.
Implements GUI for editing CurlyLine attributes: shape, size, angle.
TGCompositeFrame * fStartXFrame
TGNumberEntry * fAmplitudeEntry
ampl entry
virtual void DoWavy()
Slot connected to the wavy / curly setting.
TGNumberEntry * fWaveLengthEntry
wavelength entry
TGNumberEntry * fStartXEntry
start x entry
virtual void DoAmplitude()
Slot connected to the amplitude setting.
virtual void DoWaveLength()
Slot connected to the wavelength setting.
TGNumberEntry * fEndYEntry
end y entry
TCurlyLineEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of CurlyLine GUI.
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttFillEditor.
virtual void DoStartXY()
Slot connected to the CurlyLine StartPoint.
virtual ~TCurlyLineEditor()
Destructor of CurlyLine editor.
TGCheckButton * fIsWavy
toggle wavy / curly
TGNumberEntry * fEndXEntry
end x entry
virtual void ConnectSignals2Slots()
Connect signals to slots.
TCurlyLine * fCurlyLine
CurlyLineobject.
virtual void SetModel(TObject *obj)
Pick up the used curly line attributes.
virtual void DoEndXY()
Slot connected to the CurlyLine End.
TGNumberEntry * fStartYEntry
start y entry
Implements curly or wavy polylines used to draw Feynman diagrams.
virtual void SetWaveLength(Double_t WaveLength)
Set wave length.
virtual void SetCurly()
Set curly.
virtual void SetAmplitude(Double_t x)
Set amplitude.
virtual void SetStartPoint(Double_t x1, Double_t y1)
Set start point.
Double_t GetAmplitude() const
Double_t GetStartY() const
virtual void SetEndPoint(Double_t x2, Double_t y2)
Set end point.
virtual void SetWavy()
Set wavy.
Double_t GetWaveLength() const
Double_t GetStartX() const
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.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
TGNumberEntryField * GetNumberEntry() const
Get the number entry field.
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 void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
ROOT GUI Window base class.
void ExcludeClassEditor(TClass *cl, Bool_t recurse=kFALSE)
Exclude editor for class cl from current construction.
Base frame for implementing GUI - a service class.
virtual Option_t * GetDrawOption() const
Get draw options of the selected object.
virtual void ActivateBaseClassEditors(TClass *cl)
Provide list of editors for base-classes.
TGedEditor * fGedEditor
manager of this frame
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.
Bool_t fAvoidSignal
flag for executing slots
Mother of all ROOT objects.
virtual Option_t * GetDrawOption() const
Get option used by the graphics system to draw this object.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void Paint(Option_t *option="") override
Paint this polyline with its current attributes.
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.
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.