138 gClient->GetColorByName(
"#ff0000", color);
152 gClient->GetColorByName(
"#ff0000", color);
172 gClient->GetColorByName(
"#ff0000", color);
177 gClient->GetColorByName(
"#0000ff", color);
202 gClient->GetColorByName(
"#ff0000", color);
268 gClient->GetColorByName(
"#ff0000", color);
274 gClient->GetColorByName(
"#0000ff", color);
298 gClient->GetColorByName(
"#ff0000", color);
314 gClient->GetColorByName(
"#0000ff", color);
328 gClient->GetColorByName(
"#0000ff", color);
351 gClient->GetColorByName(
"#ff0000", color);
357 gClient->GetColorByName(
"#0000ff", color);
389 gClient->GetColorByName(
"#ff0000", color);
444 gClient->GetColorByName(
"#ff0000", color);
450 gClient->GetColorByName(
"#0000ff", color);
474 gClient->GetColorByName(
"#ff0000", color);
500 gClient->GetColorByName(
"#0000ff", color);
522 gClient->GetColorByName(
"#ff0000", color);
528 gClient->GetColorByName(
"#0000ff", color);
552 gClient->GetColorByName(
"#ff0000", color);
579 gClient->GetColorByName(
"#ff0000", color);
585 gClient->GetColorByName(
"#0000ff", color);
671 c->
Connect(
"Selected(TVirtualPad*,TObject*,Int_t)",
"TGeoManagerEditor",
672 this,
"SelectedSlot(TVirtualPad*,TObject*,Int_t)");
681 this,
"SelectedSlot(TVirtualPad*,TObject*,Int_t)");
720 fBSelTop->
Connect(
"Clicked()",
"TGeoManagerEditor",
this,
"DoSelectTopVolume()");
878 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.);
891 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.);
984 fSelectedShape =
new TGeoCtub(
TString::Format(
"ctub_%i",
id), 0.5, 1., 1.,0.,45.,0.,0.,-1,0.,0.,1);
1082 Error(
"DoCreateMaterial",
"Cannot find selected element in list");
1266 else fSelectedMatrix = matrix;
1278 else fSelectedShape = shape;
1290 else fSelectedShape2 = shape;
1302 else fSelectedMaterial = mat;
1314 else fSelectedMaterial2 = mat;
1326 else fSelectedMedium = med;
1338 else fSelectedMedium2 = med;
1350 else fSelectedVolume = vol;
1362 else fSelectedVolume = vol;
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual const char * GetName() const
Returns name 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
void DoCreateCons()
Create a cone segment.
TGPictureButton * fBSelMedium
void SetTab()
Set a given tab element as active one.
TGNumberEntry * fMediumId
The manager class for any TGeo geometry.
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.
void DoCreateComposite()
Create a composite shape.
TGPictureButton * fVolumeButton[2]
void DoCreateXtru()
Create an extruded polygone.
virtual void ConnectSignals2Slots()
Connect signals to slots.
Gtra is a twisted trapezoid.
Geometrical transformation package.
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.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
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)
Set the name of the TNamed.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
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
Class describing translations.
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
void DoCreateEltu()
Create an elliptical tube.
Base class describing materials.
void DoCreateTrd2()
Create a Trd2.
void DoCreateTrd1()
Create a Trd1.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
TGeoVolume * GetMasterVolume() const
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.
A trapezoid with only x length varying with z.
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.
TList * GetListOfMaterials() const
void DoSelectVolume()
Slot for selecting an existing volume.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
TList * GetListOfMedia() 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
TGFrame * GetContainer() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
A phi segment of a conical tube.
virtual Long_t GetIntNumber() const
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 setting top geometry volume.
virtual void SetText(TGString *newText)
Set new text in label.
void GetMediumEditor(TGeoMedium *medium)
Get editor for a medium.
Base class for chemical elements.
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.
TRAP is a general trapezoid, i.e.
Editor for TGeoManager class.
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()
void DoCreateMixture()
Create a new mixture.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TView * GetView() const =0
TGeoShape * fSelectedShape2
TGCompositeFrame * GetVolumeTab() const
TGTextButton * fEditMedium
TGeoMedium * fSelectedMedium2
void DoEditShape()
Slot for editing selected shape.
A trapezoid with both x and y lengths varying with z.
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.
Base abstract class for all shapes.
void ConnectSelected(TCanvas *c)
TGTextButton * fCloseGeometry
TGeoMatrix * fSelectedMatrix
Class describing rotation + translation.
void SetNumStyle(EStyle style)
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
static TGeoTabManager * GetMakeTabManager(TGedEditor *ged)
Static method to return the tab manager currently appended to the pad or create one if not existing...
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
void ShowSelectVolume(Bool_t show=kTRUE)
Show/hide interface for volume selection.
TObjArray * GetListOfShapes() const
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.
Hyperboloid class defined by 5 parameters.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
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
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
Int_t GetNelements() const
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-...
static TObject * GetSelected()
static; return selected object
TGeoMaterial * fSelectedMaterial2
TGTextEntry * fVolumeName
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
TObjArray * GetListOfMatrices() const
Class describing rotations.
TVirtualPad * GetPad() const
virtual void Layout()
Layout shutter items.
void DoCreateGtra()
Create a twisted trapezoid.
const char * GetText() const
TString & Remove(Ssiz_t pos)
A tube segment cut with 2 planes.
virtual UInt_t GetDefaultHeight() const
virtual ~TGeoManagerEditor()
Destructor.
void DoCreateHype()
Create a hyperboloid.
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)
virtual Double_t GetNumber() const
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
TGTextButton * fEditShape
static constexpr double s
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
TGNumberEntry * fEntryDensity
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Media are used to store properties related to tracking and which are useful only when using geometry ...
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 Int_t GetSelected() const
TGNumberEntryField * GetNumberEntry() const
TGCompositeFrame * fVolumeTab
TGRadioButton * fExportOption[2]
TGTextEntry * fManagerTitle
void DoCreatePcon()
Create a polycone shape.
TObjArray * GetListOfVolumes() const
void BuildDefaultMaterials()
Now just a shortcut for GetElementTable.
Int_t GetEntries() const
Return the number of objects in array (i.e.
TGPictureButton * fBSelMatrix
void DoCreateVolume()
Create a new volume.
TGButton * GetButton() const
TGTextButton * fEditMatrix
TGeoElement * GetElement(Int_t z)
virtual void DisconnectFromCanvas()
Disconnect this editor from the Selected signal of fCanvas.
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...
TGeoVolume * GetTopVolume() const
void DoCreateCtub()
Create a cut tube.
TGTextEntry * fMediumName
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
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="")
Set the title of the TNamed.
void GetMatrixEditor(TGeoMatrix *matrix)
Get editor for a matrix.
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.
UInt_t GetDefaultHeight() const
virtual const char * GetTitle() const
Returns title of object.
void GetShapeEditor(TGeoShape *shape)
Get editor for a shape.
const char * Data() const
virtual TCanvas * GetCanvas() const