Logo ROOT   6.12/07
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 #include "TGWidget.h"
16 #include "TGeoGedFrame.h"
17 
18 class TGeoMedium;
19 class TGeoMaterial;
20 class TGeoTabManager;
21 class TGTextEntry;
22 class TGNumberEntry;
23 class TGTab;
24 class TGComboBox;
25 class TGTextButton;
26 class TGPictureButton;
27 class TGCheckButton;
28 class TGLabel;
29 
31 
32 protected:
33 
34  TGeoMedium *fMedium; // Medium object
35 
36  Bool_t fIsEditable; // Flag that the medium can be changed
37  Bool_t fIsModified; // Modified flag
38  TGTextEntry *fMedName; // Medium name text entry
39  TGNumberEntry *fMedId; // Number entry for medium id
40 // TGComboBox *fMatList; // Combo box for all materials
41  TGeoMaterial *fSelectedMaterial; // Selected material
42  TGLabel *fLSelMaterial; // Selected material label
43  TGPictureButton *fBSelMaterial; // Button for selecting a material
44  TGTextButton *fEditMaterial; // Check button for material editing
45  TGCheckButton *fMedSensitive; // Check button for sensitivity
46  TGComboBox *fMagfldOption; // Combo box with magnetic field options
47  TGNumberEntry *fMedFieldm; // Number entry for fieldm
48  TGNumberEntry *fMedTmaxfd; // Number entry for tmaxfd
49  TGNumberEntry *fMedStemax; // Number entry for stemax
50  TGNumberEntry *fMedDeemax; // Number entry for deemax
51  TGNumberEntry *fMedEpsil; // Number entry for epsil
52  TGNumberEntry *fMedStmin; // Number entry for stmin
53  TGTextButton *fApply; // Apply-Button to accept changes
54  TGTextButton *fUndo; // Undo-Button
55 
56  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
57 
58 public:
59  TGeoMediumEditor(const TGWindow *p = 0,
60  Int_t width = 140, Int_t height = 30,
61  UInt_t options = kChildFrame,
63  virtual ~TGeoMediumEditor();
64  virtual void SetModel(TObject *obj);
65 
66  void DoEditMaterial();
67  void DoSelectMaterial();
68  void DoMedName();
69  void DoMedId();
70  void DoToggleSensitive();
71  void DoMagfldSelect(Int_t ientry);
72  void DoFieldm();
73  void DoTmaxfd();
74  void DoStemax();
75  void DoDeemax();
76  void DoEpsil();
77  void DoStmin();
78  void DoApply();
79  void DoUndo();
80 
81  ClassDef(TGeoMediumEditor,0) // TGeoMedium editor
82 };
83 
84 #endif
TGLabel * fLSelMaterial
Definition: TGTab.h:62
TGNumberEntry * fMedTmaxfd
Editor class for TGeo tracking media.
Manager for all editor tabs.
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:320
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.
Common base class for geombuilder editors.
Definition: TGeoGedFrame.h:13