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