92 kMANAGER_NAME, kMANAGER_TITLE,
93 kMANAGER_SHAPE_SELECT, kMANAGER_MEDIA_SELECT,kMANAGER_MATERIAL_SELECT, kMANAGER_ELEMENT_SELECT,
94 kMANAGER_SHAPE_SELECT2, kMANAGER_MEDIUM_SELECT2, kMANAGER_VOLUME_SELECT,
95 kMANAGER_EDIT_SHAPE, kMANAGER_EDIT_MEDIUM, kMANAGER_DENSITY_SELECT, kMANAGER_NELEM_SELECT,
96 kMANAGER_MATERIAL_SELECT2, kMANAGER_MEDIUM_SELECT, kMANAGER_MATRIX_SELECT, kMANAGER_TOP_SELECT,
97 kEXPORT_ROOT, kEXPORT_C, kEXPORT_GEOMETRY,
98 kCAT_GENERAL, kCAT_SHAPES, kCAT_VOLUMES, kCAT_MEDIA, kCAT_MATERIALS, kCAT_MATRICES,
99 kCREATE_BOX, kCREATE_PARA, kCREATE_TRD1, kCREATE_TRD2,
100 kCREATE_TRAP, kCREATE_GTRA, kCREATE_XTRU, kCREATE_ARB8,
101 kCREATE_TUBE, kCREATE_TUBS, kCREATE_CONE, kCREATE_CONS,
102 kCREATE_SPHE, kCREATE_CTUB, kCREATE_ELTU, kCREATE_TORUS,
103 kCREATE_PCON, kCREATE_PGON, kCREATE_HYPE, kCREATE_PARAB, kCREATE_COMP,
104 kCREATE_MATERIAL, kCREATE_MIXTURE, kCREATE_MEDIUM, kCREATE_VOLUME, kCREATE_ASSEMBLY,
105 kCREATE_TRANSLATION, kCREATE_ROTATION, kCREATE_COMBI,
106 kMEDIUM_NAME, kMEDIUM_ID, kMATRIX_NAME, kMATERIAL_NAME, kVOLUME_NAME,
107 kMANAGER_APPLY, kMANAGER_CANCEL, kMANAGER_UNDO
140 gClient->GetColorByName(
"#ff0000", color);
154 gClient->GetColorByName(
"#ff0000", color);
174 gClient->GetColorByName(
"#ff0000", color);
179 gClient->GetColorByName(
"#0000ff", color);
204 gClient->GetColorByName(
"#ff0000", color);
270 gClient->GetColorByName(
"#ff0000", color);
276 gClient->GetColorByName(
"#0000ff", color);
300 gClient->GetColorByName(
"#ff0000", color);
316 gClient->GetColorByName(
"#0000ff", color);
330 gClient->GetColorByName(
"#0000ff", color);
353 gClient->GetColorByName(
"#ff0000", color);
359 gClient->GetColorByName(
"#0000ff", color);
391 gClient->GetColorByName(
"#ff0000", color);
446 gClient->GetColorByName(
"#ff0000", color);
452 gClient->GetColorByName(
"#0000ff", color);
476 gClient->GetColorByName(
"#ff0000", color);
502 gClient->GetColorByName(
"#0000ff", color);
524 gClient->GetColorByName(
"#ff0000", color);
530 gClient->GetColorByName(
"#0000ff", color);
554 gClient->GetColorByName(
"#ff0000", color);
581 gClient->GetColorByName(
"#ff0000", color);
587 gClient->GetColorByName(
"#0000ff", color);
673 c->
Connect(
"Selected(TVirtualPad*,TObject*,Int_t)",
"TGeoManagerEditor",
674 this,
"SelectedSlot(TVirtualPad*,TObject*,Int_t)");
683 this,
"SelectedSlot(TVirtualPad*,TObject*,Int_t)");
722 fBSelTop->
Connect(
"Clicked()",
"TGeoManagerEditor",
this,
"DoSelectTopVolume()");
880 fSelectedShape =
new TGeoTrap(
TString::Format(
"trap_%i",
id), 1., 15., 45., 0.5, 0.3, 0.5, 30., 0.5, 0.3, 0.5, 30.);
893 fSelectedShape =
new TGeoGtra(
TString::Format(
"gtra_%i",
id), 1., 15., 45., 45.,0.5, 0.3, 0.5, 30., 0.5, 0.3, 0.5, 30.);
986 fSelectedShape =
new TGeoCtub(
TString::Format(
"ctub_%i",
id), 0.5, 1., 1.,0.,45.,0.,0.,-1,0.,0.,1);
1084 Error(
"DoCreateMaterial",
"Cannot find selected element in list");
1268 else fSelectedMatrix = matrix;
1280 else fSelectedShape = shape;
1292 else fSelectedShape2 = shape;
1304 else fSelectedMaterial = mat;
1316 else fSelectedMaterial2 = mat;
1328 else fSelectedMedium = med;
1340 else fSelectedMedium2 = med;
1352 else fSelectedVolume = vol;
1364 else fSelectedVolume = vol;
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual const char * GetTitle() const
Returns title of object.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
void DoEditMedium()
Slot for editing selected medium.
TGPictureButton * fBSelTop
TGCompositeFrame * GetVolumeTab() const
void DoCreateCons()
Create a cone segment.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
TGPictureButton * fBSelMedium
void SetTab()
Set a given tab element as active one.
TGNumberEntry * fMediumId
TList * GetListOfMaterials() const
void DoExportGeometry()
Export geometry as .root or .C file.
void DoSelectMedium()
Slot for selecting an existing medium.
void ShowSelectShape(Bool_t show=kTRUE)
Show/hide interface for shape selection.
TGeoVolume * GetMasterVolume() const
void DoCreateComposite()
Create a composite shape.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
TGPictureButton * fVolumeButton[2]
void DoCreateXtru()
Create an extruded polygone.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoCreateSphe()
Create a sphere.
void DoEditMaterial()
Slot for editing selected material.
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
void DoCloseGeometry()
Slot for closing the geometry.
TGTextEntry * fMatrixName
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
void DoSelectMatrix()
Slot for selecting an existing matrix.
void ShowSelectMatrix(Bool_t show=kTRUE)
Show/hide interface for matrix selection.
void DoSelectShape()
Slot for selecting an existing shape.
virtual void SetName(const char *name)
Change (i.e.
TGeoVolume * fSelectedVolume
TGeoElementTable * GetElementTable()
Returns material table. Creates it if not existing.
void DoCreateMaterial()
Create a new material.
TGeoMedium * fSelectedMedium
virtual void SetNumber(Double_t val)
virtual void Draw(Option_t *option="")
draw top volume according to option
TGCompositeFrame * fVolumeTab
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
void DoCreateEltu()
Create an eliptical tube.
TObjArray * GetListOfShapes() const
void DoCreateTrd2()
Create a Trd2.
void DoCreateTrd1()
Create a Trd1.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
void GetMaterialEditor(TGeoMaterial *material)
Get editor for a material.
void DoCreatePara()
Create a parallelipiped.
TGPictureButton * fBSelMaterial2
void DoCreateParab()
Create a paraboloid.
void DoSelectMedium2()
Slot for selecting an existing medium for making a volume.
void DoCreateTube()
Create a tube.
TGeoShape * fSelectedShape
void DoSetTopVolume()
Set top volume for the geometry.
void SetVolTabEnabled(Bool_t flag=kTRUE)
Enable/disable tabs.
TGPictureButton * fBSelVolume
TGTextEntry * fManagerName
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
void DoSelectVolume()
Slot for selecting an existing volume.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hirarchically all daughters of a composite frame.
const char * Data() const
virtual void AddItem(TGShutterItem *item)
Add shutter item to shutter frame.
virtual Int_t Export(const char *filename, const char *name="", Option_t *option="vg")
Export this geometry to a file.
TGPictureButton * fBSelMaterial
TGTextButton * fEditVolume
TGNumberEntryField * GetNumberEntry() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
void DoCreateBox()
Create a box.
void DoCreateTranslation()
Create a new translation.
void DoCreateCombi()
Create a new translation + rotation.
void DoEditVolume()
Slot for editing selected volume.
void DoSelectTopVolume()
Slot for seting top geometry volume.
virtual void SetText(TGString *newText)
Set new text in label.
TGButton * GetButton() const
void GetMediumEditor(TGeoMedium *medium)
Get editor for a medium.
const char * GetText() const
TList * GetListOfMedia() const
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
TGCompositeFrame(const TGCompositeFrame &)
void DoCreateCone()
Create a cone.
virtual TGVerticalFrame * CreateEditorTabSubFrame(const char *name)
Create a vertical frame to be used by 'owner' in extra tab 'name'.
TGPictureButton * fShapeButton[21]
TGShutterItem * GetItem(const char *name)
returns a shutter item by name (name is hot string of shutter item)
void DoCreateRotation()
Create a new rotation.
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
void DoCreateTorus()
Create a torus shape.
TCanvas * fConnectedCanvas
void DoSelectMaterial()
Slot for selecting an existing material.
void DoCreateArb8()
Create an arbitrary polygone with maximum 8 vertices sitting on 2 parallel planes.
void DisconnectSelected()
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void DoCreateMixture()
Create a new mixture.
TGeoVolume * GetTopVolume() const
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TView * GetView() const =0
TGeoShape * fSelectedShape2
virtual Int_t GetSelected() const
TGTextButton * fEditMedium
TGFrame * GetContainer() const
TGeoMedium * fSelectedMedium2
void DoEditShape()
Slot for editing selected shape.
TObjArray * GetListOfVolumes() const
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
virtual void Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
void ShowSelectMaterial(Bool_t show=kTRUE)
Show/hide interface for material selection.
void DoCreateMedium()
Create a new medium.
void ConnectSelected(TCanvas *c)
TGTextButton * fCloseGeometry
TGeoMatrix * fSelectedMatrix
void SetNumStyle(EStyle style)
ClassImp(TGeoManagerEditor) enum ETGeoVolumeWid
static TGeoTabManager * GetMakeTabManager(TGedEditor *ged)
Static method to return the tab manager currently appended to the pad or create one if not existing...
void ShowSelectVolume(Bool_t show=kTRUE)
Show/hide interface for volume selection.
virtual Bool_t SetTab(Int_t tabIndex, Bool_t emit=kTRUE)
Brings the composite frame with the index tabIndex to the front and generate the following event if t...
virtual void SetModel(TObject *obj)
Refresh editor according the selected obj.
void DoCreateTrap()
Create a general trapezoid.
virtual void RegisterYourself()
Register the matrix in the current manager, which will become the owner.
TGTextButton * fSetTopVolume
void GetVolumeEditor(TGeoVolume *vol)
Get editor for a volume.
virtual void ShowAxis()=0
virtual const char * GetName() const
Returns name of object.
TSubString Strip(EStripType s=kTrailing, char c= ' ') const
Return a substring of self stripped at beginning and/or end.
void ShowSelectMedium(Bool_t show=kTRUE)
Show/hide interface for medium selection.
TGTextButton * fEditMaterial
TGComboBox * fElementList
void CloseGeometry(Option_t *option="d")
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-...
TGeoMaterial * fSelectedMaterial2
TGTextEntry * fVolumeName
TObjArray * GetListOfMatrices() const
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
virtual void Layout()
Layout shutter items.
void DoCreateGtra()
Create a twisted trapezoid.
TString & Remove(Ssiz_t pos)
virtual ~TGeoManagerEditor()
Destructor.
void DoCreateHype()
Create a hyperboloid.
virtual Int_t GetSize() const
TGTextEntry * fMaterialName
R__EXTERN TGeoManager * gGeoManager
void DoCreateTubs()
Create a tube segment.
void DoSelectMaterial2()
Slot for selecting an existing material and making a medium.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual void AddEntry(TGString *s, Int_t id)
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
TGTextButton * fEditShape
static TObject * GetSelected()
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
Int_t GetEntries() const
Return the number of objects in array (i.e.
TGNumberEntry * fEntryDensity
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
TGeoManagerEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for manager editor.
TGPictureButton * fMatrixButton[3]
virtual void SelectedSlot(TVirtualPad *pad, TObject *obj, Int_t event)
Connected to TCanvas::Selected.
TGPictureButton * fBSelMedium2
void DoSelectShape2()
Slot for selecting a shape for making a volume.
TGTextButton * fExportButton
Mother of all ROOT objects.
TGPictureButton * fBSelShape
TGPictureButton * fMediumButton
void DoCreatePgon()
Create a polygone shape.
TGPictureButton * fBSelShape2
virtual UInt_t GetDefaultHeight() const
TGCompositeFrame * fVolumeTab
TGRadioButton * fExportOption[2]
TGTextEntry * fManagerTitle
void DoCreatePcon()
Create a polycone shape.
void BuildDefaultMaterials()
Now just a shortcut for GetElementTable.
ClassImp(TSlaveInfo) Int_t TSlaveInfo const TSlaveInfo * si
Used to sort slaveinfos by ordinal.
TGPictureButton * fBSelMatrix
void DoCreateVolume()
Create a new volume.
virtual Long_t GetIntNumber() const
TVirtualPad * GetPad() const
Int_t GetNelements() const
virtual Double_t GetNumber() const
TGTextButton * fEditMatrix
TGeoElement * GetElement(Int_t z)
virtual void DisconnectFromCanvas()
Disconnect this editor from the Selected signal of fCanvas.
UInt_t GetDefaultHeight() const
TGPictureButton * fMaterialButton[2]
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line...
void DoCreateCtub()
Create a cut tube.
TGTextEntry * fMediumName
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void Draw(Option_t *option="")
Draw this shape.
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
void GetMatrixEditor(TGeoMatrix *matrix)
Get editor for a matrix.
virtual TCanvas * GetCanvas() const
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
void DoCreateAssembly()
Create a new volume assembly.
void DoEditMatrix()
Slot for editing selected matrix.
TGeoMaterial * fSelectedMaterial
void DoName()
Change name/title of the geometry.
void GetShapeEditor(TGeoShape *shape)
Get editor for a shape.