Logo ROOT   6.10/09
Reference Guide
TGeoMediumEditor.h
Go to the documentation of this file.
1 // @(#):$Id$
2 // Author: M.Gheata
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGeoMediumEditor
13 #define ROOT_TGeoMediumEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TGeoMediumEditor //
18 // //
19 // Editor for a TGeoMedium. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGWidget.h"
24 #include "TGeoGedFrame.h"
25 
26 class TGeoMedium;
27 class TGeoMaterial;
28 class TGeoTabManager;
29 class TGTextEntry;
30 class TGNumberEntry;
31 class TGTab;
32 class TGComboBox;
33 class TGTextButton;
34 class TGPictureButton;
35 class TGCheckButton;
36 class TGLabel;
37 
39 
40 protected:
41 
42  TGeoMedium *fMedium; // Medium object
43 
44  Bool_t fIsEditable; // Flag that the medium can be changed
45  Bool_t fIsModified; // Modified flag
46  TGTextEntry *fMedName; // Medium name text entry
47  TGNumberEntry *fMedId; // Number entry for medium id
48 // TGComboBox *fMatList; // Combo box for all materials
49  TGeoMaterial *fSelectedMaterial; // Selected material
50  TGLabel *fLSelMaterial; // Selected material label
51  TGPictureButton *fBSelMaterial; // Button for selecting a material
52  TGTextButton *fEditMaterial; // Check button for material editing
53  TGCheckButton *fMedSensitive; // Check button for sensitivity
54  TGComboBox *fMagfldOption; // Combo box with magnetic field options
55  TGNumberEntry *fMedFieldm; // Number entry for fieldm
56  TGNumberEntry *fMedTmaxfd; // Number entry for tmaxfd
57  TGNumberEntry *fMedStemax; // Number entry for stemax
58  TGNumberEntry *fMedDeemax; // Number entry for deemax
59  TGNumberEntry *fMedEpsil; // Number entry for epsil
60  TGNumberEntry *fMedStmin; // Number entry for stmin
61  TGTextButton *fApply; // Apply-Button to accept changes
62  TGTextButton *fUndo; // Undo-Button
63 
64  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
65 
66 public:
67  TGeoMediumEditor(const TGWindow *p = 0,
68  Int_t width = 140, Int_t height = 30,
69  UInt_t options = kChildFrame,
71  virtual ~TGeoMediumEditor();
72  virtual void SetModel(TObject *obj);
73 
74  void DoEditMaterial();
75  void DoSelectMaterial();
76  void DoMedName();
77  void DoMedId();
78  void DoToggleSensitive();
79  void DoMagfldSelect(Int_t ientry);
80  void DoFieldm();
81  void DoTmaxfd();
82  void DoStemax();
83  void DoDeemax();
84  void DoEpsil();
85  void DoStmin();
86  void DoApply();
87  void DoUndo();
88 
89  ClassDef(TGeoMediumEditor,0) // TGeoMedium editor
90 };
91 
92 #endif
TGLabel * fLSelMaterial
Definition: TGTab.h:62
TGNumberEntry * fMedTmaxfd
void DoStmin()
Slot for min. step.
TGeoMedium * fMedium
Base class describing materials.
Definition: TGeoMaterial.h:29
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TGNumberEntry * fMedStmin
TGNumberEntry * fMedDeemax
void DoDeemax()
Slot for the maximum allowed dedx.
#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
void DoEditMaterial()
Edit selected material.
TGNumberEntry * fMedStemax
TGNumberEntry * fMedFieldm
TGTextButton * fApply
TGPictureButton * fBSelMaterial
TGCheckButton * fMedSensitive
void DoToggleSensitive()
Slot for sensitivity.
TGNumberEntry * fMedId
unsigned int UInt_t
Definition: RtypesCore.h:42
TGTextButton * fEditMaterial
void DoUndo()
Slot for undoing last operation.
TGeoMaterial * fSelectedMaterial
TGComboBox * fMagfldOption
void DoEpsil()
Slot for tracking precision.
void DoMedId()
Slot for medium id.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGTextEntry * fMedName
virtual ~TGeoMediumEditor()
Destructor.
TGTextButton * fUndo
TGNumberEntry * fMedEpsil
Media are used to store properties related to tracking and which are useful only when using geometry ...
Definition: TGeoMedium.h:23
void DoTmaxfd()
Slot for tmaxfd.
void DoApply()
Slot for applying modifications.
Mother of all ROOT objects.
Definition: TObject.h:37
void DoSelectMaterial()
Select the material component.
void DoMagfldSelect(Int_t ientry)
Slot for mag. field.
void DoFieldm()
Slot for max field.
virtual void SetModel(TObject *obj)
Connect to the selected object.
void DoMedName()
Slot for medium name.
TGeoMediumEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for medium editor.
void DoStemax()
Slot for the max allowed step.