Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "TGedFrame.h"
17
18class TGNumberEntry;
19class TCurlyArc;
20
21class TCurlyArcEditor : public TGedFrame {
22
23protected:
24 TCurlyArc *fCurlyArc; ///< CurlyArc object
25 TGNumberEntry *fRadiusEntry; ///< radius entry
26 TGNumberEntry *fPhiminEntry; ///< Phimin entry
27 TGNumberEntry *fPhimaxEntry; ///< Phimax entry
28 TGNumberEntry *fCenterXEntry; ///< center x entry
29 TGNumberEntry *fCenterYEntry; ///< center y entry
30
31 virtual void ConnectSignals2Slots();
32
33public:
34 TCurlyArcEditor(const TGWindow *p = nullptr,
35 Int_t width = 140, Int_t height = 30,
36 UInt_t options = kChildFrame,
38 virtual ~TCurlyArcEditor();
39
40 virtual void SetModel(TObject* obj);
41 virtual void DoRadius();
42 virtual void DoPhimin();
43 virtual void DoPhimax();
44 virtual void DoCenterXY();
45
46 ClassDef(TCurlyArcEditor,0) // GUI for editing arrow attributes
47};
48
49#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:337
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Implements GUI for editing CurlyArc attributes: radius, phi1, phi2.
virtual void DoCenterXY()
Slot connected to set center .
virtual void DoPhimin()
Slot connected to the phimin setting.
TGNumberEntry * fCenterYEntry
center y entry
virtual void ConnectSignals2Slots()
Connect signals to slots.
TCurlyArc * fCurlyArc
CurlyArc object.
TGNumberEntry * fRadiusEntry
radius entry
virtual void SetModel(TObject *obj)
Pick up the used curly arc attributes.
virtual void DoRadius()
Slot connected to the radius setting.
TGNumberEntry * fPhimaxEntry
Phimax entry.
TGNumberEntry * fCenterXEntry
center x entry
virtual ~TCurlyArcEditor()
Destructor of CurlyArc editor.
TGNumberEntry * fPhiminEntry
Phimin entry.
virtual void DoPhimax()
Slot connected to the phimax setting.
Implements curly or wavy arcs used to draw Feynman diagrams.
Definition TCurlyArc.h:16
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
TGNumberEntry is a number entry input widget with up/down buttons.
ROOT GUI Window base class.
Definition TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition TGedFrame.h:27
Mother of all ROOT objects.
Definition TObject.h:41