Logo ROOT   6.18/05
Reference Guide
TCurlyArcEditor.h
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Ilka Antcheva, Otto Schaile 15/12/04
3
4/*************************************************************************
5 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TCurlyArcEditor
13#define ROOT_TCurlyArcEditor
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TCurlyArcEditor //
18// //
19// Implements GUI for editing CurlyArc attributes: radius, phi1, phi2. // //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23#include "TGedFrame.h"
24
25class TGNumberEntry;
26class TCurlyArc;
27
28class TCurlyArcEditor : public TGedFrame {
29
30protected:
31 TCurlyArc *fCurlyArc; // CurlyArc object
32 TGNumberEntry *fRadiusEntry; // radius entry
33 TGNumberEntry *fPhiminEntry; // Phimin entry
34 TGNumberEntry *fPhimaxEntry; // Phimax entry
35 TGNumberEntry *fCenterXEntry; // center x entry
36 TGNumberEntry *fCenterYEntry; // center y entry
37
38 virtual void ConnectSignals2Slots();
39
40public:
41 TCurlyArcEditor(const TGWindow *p = 0,
42 Int_t width = 140, Int_t height = 30,
43 UInt_t options = kChildFrame,
45 virtual ~TCurlyArcEditor();
46
47 virtual void SetModel(TObject* obj);
48 virtual void DoRadius();
49 virtual void DoPhimin();
50 virtual void DoPhimax();
51 virtual void DoCenterXY();
52
53 ClassDef(TCurlyArcEditor,0) // GUI for editing arrow attributes
54};
55
56#endif
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
virtual void DoCenterXY()
Slot connected to set center .
virtual void DoPhimin()
Slot connected to the phimin setting.
TGNumberEntry * fCenterYEntry
virtual void ConnectSignals2Slots()
Connect signals to slots.
TCurlyArc * fCurlyArc
TGNumberEntry * fRadiusEntry
virtual void SetModel(TObject *obj)
Pick up the used curly arc attributes.
virtual void DoRadius()
Slot connected to the radius setting.
TGNumberEntry * fPhimaxEntry
TGNumberEntry * fCenterXEntry
virtual ~TCurlyArcEditor()
Destructor of CurlyArc editor.
TGNumberEntry * fPhiminEntry
TCurlyArcEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of CurlyArc GUI.
virtual void DoPhimax()
Slot connected to the phimax setting.
Implements curly or wavy arcs used to draw Feynman diagrams.
Definition: TCurlyArc.h:20
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Mother of all ROOT objects.
Definition: TObject.h:37