11 #ifndef ROOT_TGeoMaterialEditor
12 #define ROOT_TGeoMaterialEditor
27 class TGeoMaterialEditor :
public TGeoGedFrame {
38 TGeoMaterial *fMaterial;
40 Bool_t fIsMaterialEditable;
42 TGTextEntry *fMaterialName;
45 TGComboBox *fMatState;
46 TGNumberEntry *fMatDensity;
47 TGNumberEntry *fMatTemperature;
48 TGNumberEntry *fMatPressure;
49 TGNumberEntry *fMatRadLen;
50 TGNumberEntry *fMatAbsLen;
51 TGCompositeFrame *f23;
55 virtual void ConnectSignals2Slots();
58 TGeoMaterialEditor(
const TGWindow *p = 0,
59 Int_t width = 140, Int_t height = 30,
60 UInt_t options = kChildFrame,
61 Pixel_t back = GetDefaultFrameBackground());
62 virtual ~TGeoMaterialEditor();
63 virtual void SetModel(TObject *obj);
71 void DoState(Int_t state);
77 ClassDef(TGeoMaterialEditor,0)
83 class TGeoMixtureEditor :
public TGeoMaterialEditor {
87 TGeoMixture *fMixture;
93 TGCheckButton *fChkFraction;
94 TGNumberEntry *fNEFraction;
95 TGCheckButton *fChkNatoms;
96 TGNumberEntry *fNENatoms;
97 TGTextButton *fBAddElem;
98 TGCompositeFrame *fComps;
100 virtual void ConnectSignals2Slots();
103 TGeoMixtureEditor(
const TGWindow *p = 0,
104 Int_t width = 140, Int_t height = 30,
105 UInt_t options = kChildFrame,
106 Pixel_t back = GetDefaultFrameBackground());
107 virtual ~TGeoMixtureEditor() {}
108 virtual void SetModel(TObject *obj);
109 void UpdateElements();
113 void DoChkFraction();
117 void DoSelectElement(Int_t iel);
120 ClassDef(TGeoMixtureEditor,0)