Logo ROOT   6.07/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 #ifndef ROOT_TGButton
23 #include "TGWidget.h"
24 #endif
25 #ifndef ROOT_TGeoGedFrame
26 #include "TGeoGedFrame.h"
27 #endif
28 
29 class TGeoSphere;
30 class TGeoTabManager;
31 class TGTextEntry;
32 class TGNumberEntry;
33 class TGTab;
34 class TGComboBox;
35 class TGDoubleVSlider;
36 class TGTextButton;
37 class TGCheckButton;
38 class TString;
39 
41 
42 protected:
43 
44  Double_t fRmini; // Initial inner radius
45  Double_t fRmaxi; // Initial outer radius
46  Double_t fTheta1i; // Initial lower theta limit
47  Double_t fTheta2i; // Initial higher theta limit
48  Double_t fPhi1i; // Initial lower phi limit
49  Double_t fPhi2i; // Initial higher phi limit
50  TString fNamei; // Initial name
51  TGeoSphere *fShape; // Shape object
52  Bool_t fIsModified; // Flag that volume was modified
53  Bool_t fIsShapeEditable; // Flag that the shape can be changed
54  Bool_t fLock; // Lock
55 
56  TGTextEntry *fShapeName; // Shape name text entry
57  TGNumberEntry *fERmin; // Number entry for rmin
58  TGNumberEntry *fERmax; // Number entry for rmax
59  TGNumberEntry *fETheta1; // Number entry for Theta1
60  TGNumberEntry *fETheta2; // Number entry for Theta2
61  TGNumberEntry *fEPhi1; // Number entry for phi1
62  TGNumberEntry *fEPhi2; // Number entry for phi2
63  TGDoubleVSlider *fSPhi; // Phi slider
64  TGDoubleVSlider *fSTheta; // Theta slider
65  TGTextButton *fApply; // Apply-Button to accept changes
66  TGTextButton *fUndo; // Undo-Button
67  TGCheckButton *fDelayed; // Check button for delayed draw
68 
69  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
70  Bool_t IsDelayed() const;
71 
72 public:
73  TGeoSphereEditor(const TGWindow *p = 0,
74  Int_t width = 140, Int_t height = 30,
75  UInt_t options = kChildFrame,
77  virtual ~TGeoSphereEditor();
78  virtual void SetModel(TObject *obj);
79 
80  void DoRmin();
81  void DoRmax();
82  void DoPhi();
83  void DoTheta();
84  void DoTheta1();
85  void DoTheta2();
86  void DoPhi1();
87  void DoPhi2();
88  void DoModified();
89  void DoName();
90  virtual void DoApply();
91  virtual void DoUndo();
92 
93  ClassDef(TGeoSphereEditor,0) // TGeoSphere editor
94 };
95 
96 #endif
Spherical shell class.
Definition: TGeoSphere.h:19
Definition: TGTab.h:66
void DoPhi()
Slot for phi slider.
TGNumberEntry * fETheta1
TGeoSphere * fShape
Basic string class.
Definition: TString.h:137
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:254
ULong_t Pixel_t
Definition: GuiTypes.h:41
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
Bool_t IsDelayed() const
Check if shape drawing is delayed.
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:44
void DoPhi2()
Slot for phi2.
TGNumberEntry * fETheta2
virtual ~TGeoSphereEditor()
Destructor.
void DoRmax()
Slot for Rmax.
TGTextEntry * fShapeName