Logo ROOT   6.10/09
Reference Guide
TGeoSphereEditor.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_TGeoSphereEditor
12 #define ROOT_TGeoSphereEditor
13 
14 //////////////////////////////////////////////////////////////////////////
15 // //
16 // TGeoSphereEditor //
17 // //
18 // Editor for a TGeoSphere. //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #include "TGWidget.h"
23 #include "TGeoGedFrame.h"
24 
25 class TGeoSphere;
26 class TGeoTabManager;
27 class TGTextEntry;
28 class TGNumberEntry;
29 class TGTab;
30 class TGComboBox;
31 class TGDoubleVSlider;
32 class TGTextButton;
33 class TGCheckButton;
34 class TString;
35 
37 
38 protected:
39 
40  Double_t fRmini; // Initial inner radius
41  Double_t fRmaxi; // Initial outer radius
42  Double_t fTheta1i; // Initial lower theta limit
43  Double_t fTheta2i; // Initial higher theta limit
44  Double_t fPhi1i; // Initial lower phi limit
45  Double_t fPhi2i; // Initial higher phi limit
46  TString fNamei; // Initial name
47  TGeoSphere *fShape; // Shape object
48  Bool_t fIsModified; // Flag that volume was modified
49  Bool_t fIsShapeEditable; // Flag that the shape can be changed
50  Bool_t fLock; // Lock
51 
52  TGTextEntry *fShapeName; // Shape name text entry
53  TGNumberEntry *fERmin; // Number entry for rmin
54  TGNumberEntry *fERmax; // Number entry for rmax
55  TGNumberEntry *fETheta1; // Number entry for Theta1
56  TGNumberEntry *fETheta2; // Number entry for Theta2
57  TGNumberEntry *fEPhi1; // Number entry for phi1
58  TGNumberEntry *fEPhi2; // Number entry for phi2
59  TGDoubleVSlider *fSPhi; // Phi slider
60  TGDoubleVSlider *fSTheta; // Theta slider
61  TGTextButton *fApply; // Apply-Button to accept changes
62  TGTextButton *fUndo; // Undo-Button
63  TGCheckButton *fDelayed; // Check button for delayed draw
64 
65  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
66  Bool_t IsDelayed() const;
67 
68 public:
69  TGeoSphereEditor(const TGWindow *p = 0,
70  Int_t width = 140, Int_t height = 30,
71  UInt_t options = kChildFrame,
73  virtual ~TGeoSphereEditor();
74  virtual void SetModel(TObject *obj);
75 
76  void DoRmin();
77  void DoRmax();
78  void DoPhi();
79  void DoTheta();
80  void DoTheta1();
81  void DoTheta2();
82  void DoPhi1();
83  void DoPhi2();
84  void DoModified();
85  void DoName();
86  virtual void DoApply();
87  virtual void DoUndo();
88 
89  ClassDef(TGeoSphereEditor,0) // TGeoSphere editor
90 };
91 
92 #endif
Spherical shell class.
Definition: TGeoSphere.h:17
Definition: TGTab.h:62
void DoPhi()
Slot for phi slider.
TGNumberEntry * fETheta1
TGeoSphere * fShape
Basic string class.
Definition: TString.h:129
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual void SetModel(TObject *obj)
Connect to a given sphere.
virtual void DoApply()
Slot for applying modifications.
TGNumberEntry * fEPhi1
virtual void ConnectSignals2Slots()
Connect signals to slots.
#define ClassDef(name, id)
Definition: Rtypes.h:297
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGCheckButton * fDelayed
void DoTheta2()
Slot for theta2.
TGTextButton * fUndo
void DoName()
Slot for name.
void DoRmin()
Slot for Rmin.
void DoModified()
Slot for signaling modifications.
TGDoubleVSlider * fSTheta
virtual void DoUndo()
Slot for undoing last operation.
TGNumberEntry * fERmin
unsigned int UInt_t
Definition: RtypesCore.h:42
TGTextButton * fApply
TGNumberEntry * fERmax
void DoTheta1()
Slot for theta1.
void DoPhi1()
Slot for phi1.
TGDoubleVSlider * fSPhi
double Double_t
Definition: RtypesCore.h:55
TGeoSphereEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for sphere editor.
TGNumberEntry * fEPhi2
void DoTheta()
Slot for theta slider.
Mother of all ROOT objects.
Definition: TObject.h:37
void DoPhi2()
Slot for phi2.
TGNumberEntry * fETheta2
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual ~TGeoSphereEditor()
Destructor.
void DoRmax()
Slot for Rmax.
TGTextEntry * fShapeName