library: libGraf
#include "TCurlyArc.h"

TCurlyArc


class description - header file - source file - inheritance tree (.pdf)

class TCurlyArc : public TCurlyLine

Inheritance Chart:
TObject
TAttLine
TAttFill
<-
TPolyLine
<-
TCurlyLine
<-
TCurlyArc

    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)

Data Members

    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

Class Description

______________________________________________________________________________

 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.
______________________________________________________________________________
TCurlyArc(Double_t x1, Double_t y1, Double_t rad, Double_t phimin, Double_t phimax, Double_t wl, Double_t amp)
 create a new TCurlyarc with center (x1, y1) and radius rad.
 The wavelength and amplitude are given in percent of the line length
 phimin and phimax are given in degrees.
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.
void SavePrimitive(ostream &out, Option_t * /*= ""*/)
 Save primitive as a C++ statement(s) on output stream out
void SetCenter(Double_t x, Double_t y)
 Set Curly Arc center.
void SetRadius(Double_t x)
 Set Curly Arc radius.
void SetPhimin(Double_t x)
 Set Curly Arc minimum Phi.
void SetPhimax(Double_t x)
 Set Curly Arc maximum Phi.
void SetDefaultWaveLength(Double_t WaveLength)
 Set default wave length.
void SetDefaultAmplitude(Double_t Amplitude)
 Set default wave amplitude.
void SetDefaultIsCurly(Bool_t IsCurly)
 Set default "IsCurly".
Double_t GetDefaultWaveLength()
 Get default wave length.
Double_t GetDefaultAmplitude()
 Get default wave amplitude.
Bool_t GetDefaultIsCurly()
 Get default "IsCurly".
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)
virtual ~TCurlyArc()
Double_t GetRadius()
Double_t GetPhimin()
Double_t GetPhimax()

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.