12 #ifndef ROOT_TGeoManagerEditor
13 #define ROOT_TGeoManagerEditor
31 class TGPictureButton;
36 class TGeoManagerEditor :
public TGedFrame {
40 TGeoManager *fGeometry;
41 TGeoTabManager *fTabMgr;
43 TGCompositeFrame *fVolumeTab;
45 TGShutter *fCategories;
46 TGTextEntry *fManagerName;
47 TGTextEntry *fManagerTitle;
48 TGTextEntry *fMediumName;
49 TGTextEntry *fMatrixName;
50 TGTextEntry *fMaterialName;
51 TGTextEntry *fVolumeName;
52 TGeoMaterial *fSelectedMaterial;
53 TGeoMaterial *fSelectedMaterial2;
54 TGLabel *fLSelMaterial;
55 TGLabel *fLSelMaterial2;
56 TGPictureButton *fBSelMaterial;
57 TGPictureButton *fBSelMaterial2;
58 TGeoVolume *fSelectedVolume;
60 TGPictureButton *fBSelVolume;
61 TGeoShape *fSelectedShape;
62 TGeoShape *fSelectedShape2;
65 TGPictureButton *fBSelShape;
66 TGPictureButton *fBSelShape2;
67 TGeoMatrix *fSelectedMatrix;
69 TGPictureButton *fBSelMatrix;
70 TGeoMedium *fSelectedMedium;
71 TGeoMedium *fSelectedMedium2;
73 TGLabel *fLSelMedium2;
74 TGPictureButton *fBSelMedium;
75 TGPictureButton *fBSelMedium2;
76 TGPictureButton *fShapeButton[21];
77 TGPictureButton *fMatrixButton[3];
78 TGPictureButton *fVolumeButton[2];
79 TGPictureButton *fMaterialButton[2];
80 TGRadioButton *fExportOption[2];
81 TGTextButton *fExportButton;
82 TGComboBox *fElementList;
83 TGNumberEntry *fEntryDensity;
84 TGPictureButton *fMediumButton;
85 TGNumberEntry *fMediumId;
86 TGTextButton *fEditShape;
87 TGTextButton *fEditMedium;
88 TGTextButton *fEditMaterial;
89 TGTextButton *fEditMatrix;
90 TGTextButton *fEditVolume;
91 TGTextButton *fSetTopVolume;
93 TGPictureButton *fBSelTop;
94 TGTextButton *fCloseGeometry;
100 TGCompositeFrame *f7;
101 TCanvas *fConnectedCanvas;
103 virtual void ConnectSignals2Slots();
104 void ShowSelectShape(Bool_t show=kTRUE);
105 void ShowSelectVolume(Bool_t show=kTRUE);
106 void ShowSelectMaterial(Bool_t show=kTRUE);
107 void ShowSelectMedium(Bool_t show=kTRUE);
108 void ShowSelectMatrix(Bool_t show=kTRUE);
111 TGeoManagerEditor(
const TGWindow *p = 0,
112 Int_t width = 140, Int_t height = 30,
113 UInt_t options = kChildFrame,
114 Pixel_t back = GetDefaultFrameBackground());
115 virtual ~TGeoManagerEditor();
116 static void LoadLib() {;}
117 virtual void SetModel(TObject *obj);
119 virtual void SelectedSlot(TVirtualPad* pad, TObject* obj, Int_t event);
120 void ConnectSelected(TCanvas *c);
121 void DisconnectSelected();
139 void DoCreateTorus();
143 void DoCreateParab();
144 void DoCreateComposite();
145 void DoCreateMaterial();
146 void DoCreateMixture();
147 void DoCreateMedium();
148 void DoCreateTranslation();
149 void DoCreateRotation();
150 void DoCreateCombi();
151 void DoCreateVolume();
152 void DoCreateAssembly();
156 void DoEditMaterial();
158 void DoSelectShape();
159 void DoSelectShape2();
160 void DoSelectVolume();
161 void DoSelectMatrix();
162 void DoSelectMaterial();
163 void DoSelectMaterial2();
164 void DoSelectMedium();
165 void DoSelectMedium2();
166 void DoSetTopVolume();
167 void DoSelectTopVolume();
168 void DoExportGeometry();
169 void DoCloseGeometry();
171 ClassDef(TGeoManagerEditor,0)