library: libGraf #include "TCurlyArc.h" |
TCurlyArc
class description - header file - source file - inheritance tree (.pdf)
public:
TCurlyArc()
TCurlyArc(Double_t x1, Double_t y1, Double_t rad, Double_t phimin, Double_t phimax, Double_t wl = .02, Double_t amp = .01)
TCurlyArc(const TCurlyArc&)
virtual ~TCurlyArc()
virtual void Build()
static TClass* Class()
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
static Double_t GetDefaultAmplitude()
static Bool_t GetDefaultIsCurly()
static Double_t GetDefaultWaveLength()
Double_t GetPhimax() const
Double_t GetPhimin() const
Double_t GetRadius() const
virtual TClass* IsA() const
virtual void SavePrimitive(ostream& out, Option_t* = "")
virtual void SetCenter(Double_t x1, Double_t y1)
static void SetDefaultAmplitude(Double_t Amplitude)
static void SetDefaultIsCurly(Bool_t IsCurly)
static void SetDefaultWaveLength(Double_t WaveLength)
virtual void SetPhimax(Double_t phimax)
virtual void SetPhimin(Double_t phimin)
virtual void SetRadius(Double_t radius)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
Double_t fR1 Radius of arc
Double_t fPhimin start phi (degrees)
Double_t fPhimax end phi (degrees)
Double_t fTheta used internally
static Double_t fgDefaultWaveLength default wavelength
static Double_t fgDefaultAmplitude default amplitude
static Bool_t fgDefaultIsCurly default curly type
______________________________________________________________________________
This class implements curly or wavy arcs typically used to draw Feynman diagrams.
Amplitudes and wavelengths may be specified in the constructors,
via commands or interactively from popup menus.
The class make use of TCurlyLine by inheritance, ExecuteEvent methods
are highly inspired from the methods used in TPolyLine and TArc.
The picture below has been generated by the tutorial feynman.
______________________________________________________________________________
void Build()
Create a curly (Gluon) or wavy (Gamma) arc.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to an arc.
Compute the closest distance of approach from point px,py to this arc.
The distance is computed in pixels units.
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
This member function is called when a TCurlyArc is clicked with the locator
If Left button clicked on one of the line end points, this point
follows the cursor until button is released.
if Middle button clicked, the line is moved parallel to itself
until the button is released.
Author: Otto Schaile 20/11/99
Last update: root/graf:$Name: $:$Id: TCurlyArc.cxx,v 1.11 2006/07/03 16:10:44 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.