Logo ROOT   6.10/09
Reference Guide
TGeoHypeEditor.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_TGeoHypeEditor
12 #define ROOT_TGeoHypeEditor
13 
14 //////////////////////////////////////////////////////////////////////////
15 // //
16 // TGeoHypeEditor //
17 // //
18 // Editor for a TGeoHype. //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #include "TGWidget.h"
23 #include "TGeoGedFrame.h"
24 
25 class TGeoHype;
26 class TGeoTabManager;
27 class TGTextEntry;
28 class TGNumberEntry;
29 class TGTab;
30 class TGComboBox;
31 class TGTextButton;
32 class TGCheckButton;
33 class TString;
34 
35 class TGeoHypeEditor : public TGeoGedFrame {
36 
37 protected:
38 
39  Double_t fRini; // Initial inner radius
40  Double_t fRouti; // Initial outer radius
41  Double_t fDzi; // Initial half length Dz
42  Double_t fStIni; // Initial stereo angle for inner surface
43  Double_t fStOuti; // Initial stereo angle for outer surface
44  TString fNamei; // Initial name
45  TGeoHype *fShape; // Shape object
46  Bool_t fIsModified; // Flag that volume was modified
47  Bool_t fIsShapeEditable; // Flag that the shape can be changed
48 
49  TGTextEntry *fShapeName; // Shape name text entry
50  TGNumberEntry *fERin; // Number entry for Rin
51  TGNumberEntry *fERout; // Number entry for Rout
52  TGNumberEntry *fEDz; // Number entry for Dz
53  TGNumberEntry *fEStIn; // Number entry for StIn
54  TGNumberEntry *fEStOut; // Number entry for StOut
55  TGTextButton *fApply; // Apply-Button to accept changes
56  TGTextButton *fUndo; // Undo-Button
57  TGCheckButton *fDelayed; // Check button for delayed draw
58 
59  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
60  Bool_t IsDelayed() const;
61 
62 public:
63  TGeoHypeEditor(const TGWindow *p = 0,
64  Int_t width = 140, Int_t height = 30,
65  UInt_t options = kChildFrame,
67  virtual ~TGeoHypeEditor();
68  virtual void SetModel(TObject *obj);
69 
70  void DoRin();
71  void DoRout();
72  void DoDz();
73  void DoStIn();
74  void DoStOut();
75  void DoModified();
76  void DoName();
77  void DoApply();
78  void DoUndo();
79 
80  ClassDef(TGeoHypeEditor,0) // TGeoHype editor
81 };
82 
83 #endif
Bool_t fIsShapeEditable
void DoApply()
Slot for applying current settings.
void DoStIn()
Slot for StIn.
TGTextEntry * fShapeName
Definition: TGTab.h:62
TGNumberEntry * fEStOut
TGNumberEntry * fERin
virtual void ConnectSignals2Slots()
Connect signals to slots.
Basic string class.
Definition: TString.h:129
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TGeoHypeEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for Hype editor.
TGNumberEntry * fEStIn
void DoRin()
Slot for Rin.
void DoModified()
Slot for notifying modifications.
#define ClassDef(name, id)
Definition: Rtypes.h:297
ULong_t Pixel_t
Definition: GuiTypes.h:39
void DoUndo()
Slot for undoing last operation.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGTextButton * fApply
void DoName()
Slot for name.
TGCheckButton * fDelayed
Double_t fStOuti
unsigned int UInt_t
Definition: RtypesCore.h:42
Hyperboloid class defined by 5 parameters.
Definition: TGeoHype.h:17
virtual ~TGeoHypeEditor()
Destructor.
double Double_t
Definition: RtypesCore.h:55
Mother of all ROOT objects.
Definition: TObject.h:37
void DoDz()
Slot for Z.
virtual void SetModel(TObject *obj)
Connect to the selected object.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
TGeoHype * fShape
void DoStOut()
Slot for StOut.
TGNumberEntry * fERout
TGTextButton * fUndo
void DoRout()
Slot for Rout.
TGNumberEntry * fEDz