Logo ROOT   6.14/05
Reference Guide
TGeoTorusEditor.h
Go to the documentation of this file.
1 // @(#):$Id$
2 // Author: M.Gheata
3 /*************************************************************************
4  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef ROOT_TGeoTorusEditor
12 #define ROOT_TGeoTorusEditor
13 
14 #include "TGWidget.h"
15 #include "TGeoGedFrame.h"
16 
17 class TGeoTorus;
18 class TGeoTabManager;
19 class TGTextEntry;
20 class TGNumberEntry;
21 class TGTab;
22 class TGComboBox;
23 class TGTextButton;
24 class TGCheckButton;
25 class TString;
26 
27 class TGeoTorusEditor : public TGeoGedFrame {
28 
29 protected:
30 
31  Double_t fRi; // Initial axial radius
32  Double_t fRmini; // Initial inner radius
33  Double_t fRmaxi; // Initial outer radius
34  Double_t fPhi1i; // Initial starting phi1
35  Double_t fDphii; // Initial phi extent
36  TString fNamei; // Initial name
37  TGeoTorus *fShape; // Shape object
38  Bool_t fIsModified; // Flag that volume was modified
39  Bool_t fIsShapeEditable; // Flag that the shape can be changed
40 
41  TGTextEntry *fShapeName; // Shape name text entry
42  TGNumberEntry *fER; // Number entry for R
43  TGNumberEntry *fERmin; // Number entry for Rmin
44  TGNumberEntry *fERmax; // Number entry for Rmax
45  TGNumberEntry *fEPhi1; // Number entry for phi1
46  TGNumberEntry *fEDphi; // Number entry for Dphi
47  TGTextButton *fApply; // Apply-Button to accept changes
48  TGTextButton *fUndo; // Undo-Button
49  TGCheckButton *fDelayed; // Check button for delayed draw
50 
51  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
52  Bool_t IsDelayed() const;
53 
54 public:
55  TGeoTorusEditor(const TGWindow *p = 0,
56  Int_t width = 140, Int_t height = 30,
57  UInt_t options = kChildFrame,
59  virtual ~TGeoTorusEditor();
60  virtual void SetModel(TObject *obj);
61 
62  void DoR();
63  void DoRmin();
64  void DoRmax();
65  void DoPhi1();
66  void DoDphi();
67  void DoModified();
68  void DoName();
69  void DoApply();
70  void DoUndo();
71 
72  ClassDef(TGeoTorusEditor,0) // TGeoTorus editor
73 };
74 
75 #endif
TGCheckButton * fDelayed
TGTextButton * fApply
void DoDphi()
Slot for Dphi.
void DoApply()
Slot for applying current settings.
void DoUndo()
Slot for undoing last operation.
Definition: TGTab.h:62
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
Definition: TGaxis.cxx:2551
Manager for all editor tabs.
Torus segment class.
Definition: TGeoTorus.h:17
Basic string class.
Definition: TString.h:131
TGNumberEntry * fERmin
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Editor for a TGeoTorus.
TGeoTorusEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for torus editor.
TGNumberEntry * fEPhi1
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGNumberEntry * fERmax
#define ClassDef(name, id)
Definition: Rtypes.h:320
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
void DoR()
Slot for R.
void DoModified()
Slot for notifying modifications.
virtual ~TGeoTorusEditor()
Destructor.
TGeoTorus * fShape
void DoPhi1()
Slot for phi.
void DoRmin()
Slot for Rmin.
TGNumberEntry * fER
Bool_t IsDelayed() const
Check if shape drawing is delayed.
TGTextButton * fUndo
unsigned int UInt_t
Definition: RtypesCore.h:42
double Double_t
Definition: RtypesCore.h:55
virtual void SetModel(TObject *obj)
Connect to the selected object.
Mother of all ROOT objects.
Definition: TObject.h:37
TGNumberEntry * fEDphi
void DoRmax()
Slot for Rmax.
TGTextEntry * fShapeName
void DoName()
Slot for name.
Common base class for geombuilder editors.
Definition: TGeoGedFrame.h:13