11#ifndef ROOT_TCurlyLine
12#define ROOT_TCurlyLine
static const double x2[5]
static const double x1[5]
#define ClassDef(name, id)
Abstract base class for elements drawn in the editor.
Implements curly or wavy polylines used to draw Feynman diagrams.
TCurlyLine()
Default constructor.
virtual void SetWaveLength(Double_t WaveLength)
Set wave length.
virtual void SetCurly()
Set curly.
Double_t fY1
start y, center for arc
virtual void SetAmplitude(Double_t x)
Set amplitude.
virtual void SetBBoxY1(const Int_t y)
Set top of BoundingBox to a value (resize in y direction on top)
Double_t fWaveLength
wavelength of sinusoid in percent of pad height
Double_t fAmplitude
amplitude of sinusoid in percent of pad height
virtual void SetStartPoint(Double_t x1, Double_t y1)
Set start point.
Double_t GetAmplitude() const
Int_t fNsteps
used internally (controls precision)
virtual Rectangle_t GetBBox()
Return the bounding Box of the CurlyLine.
virtual void SetBBoxCenter(const TPoint &p)
Set center of the BoundingBox.
virtual void SetBBoxX2(const Int_t x)
Set right hands ide of BoundingBox to a value (resize in x direction on right)
virtual TPoint GetBBoxCenter()
Return the center of the BoundingBox as TPoint in pixels.
static Double_t GetDefaultWaveLength()
Get default wave length.
static Bool_t GetDefaultIsCurly()
Get default "IsCurly".
virtual void Build()
Create a curly (Gluon) or wavy (Gamma) line.
static void SetDefaultAmplitude(Double_t Amplitude)
Set default amplitude.
Double_t GetStartY() const
static void SetDefaultWaveLength(Double_t WaveLength)
Set default wave length.
static Bool_t fgDefaultIsCurly
default curly type
static Double_t GetDefaultAmplitude()
Get default amplitude.
virtual void SetEndPoint(Double_t x2, Double_t y2)
Set end point.
virtual void SetBBoxCenterX(const Int_t x)
Set X coordinate of the center of the BoundingBox.
virtual void SetBBoxY2(const Int_t y)
Set bottom of BoundingBox to a value (resize in y direction on bottom)
virtual void SetBBoxCenterY(const Int_t y)
Set Y coordinate of the center of the BoundingBox.
Double_t fX1
start x, center for arc
static Double_t fgDefaultWaveLength
default wavelength
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save primitive as a C++ statement(s) on output stream out.
static void SetDefaultIsCurly(Bool_t IsCurly)
Set default "IsCurly".
virtual void SetWavy()
Set wavy.
Double_t GetWaveLength() const
static Double_t fgDefaultAmplitude
default amplitude
Double_t GetStartX() const
virtual void SetBBoxX1(const Int_t x)
Set left hand side of BoundingBox to a value (resize in x direction on left)
Bool_t fIsCurly
true: Gluon, false: Gamma
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a line.
Defined by an array on N points in a 2-D space.
Rectangle structure (maps to the X11 XRectangle structure)