Logo ROOT  
Reference Guide
No Matches
Go to the documentation of this file.
1// @(#):$Id$
2// Author: M.Gheata
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 *************************************************************************/
12#ifndef ROOT_TGeoMediumEditor
13#define ROOT_TGeoMediumEditor
15#include "TGWidget.h"
16#include "TGeoGedFrame.h"
18class TGeoMedium;
19class TGeoMaterial;
20class TGeoTabManager;
21class TGTextEntry;
22class TGNumberEntry;
23class TGTab;
24class TGComboBox;
25class TGTextButton;
26class TGPictureButton;
27class TGCheckButton;
28class TGLabel;
33 TGeoMedium *fMedium; // Medium object
35 Bool_t fIsEditable; // Flag that the medium can be changed
36 Bool_t fIsModified; // Modified flag
37 TGTextEntry *fMedName; // Medium name text entry
38 TGNumberEntry *fMedId; // Number entry for medium id
39 // TGComboBox *fMatList; // Combo box for all materials
40 TGeoMaterial *fSelectedMaterial; // Selected material
41 TGLabel *fLSelMaterial; // Selected material label
42 TGPictureButton *fBSelMaterial; // Button for selecting a material
43 TGTextButton *fEditMaterial; // Check button for material editing
44 TGCheckButton *fMedSensitive; // Check button for sensitivity
45 TGComboBox *fMagfldOption; // Combo box with magnetic field options
46 TGNumberEntry *fMedFieldm; // Number entry for fieldm
47 TGNumberEntry *fMedTmaxfd; // Number entry for tmaxfd
48 TGNumberEntry *fMedStemax; // Number entry for stemax
49 TGNumberEntry *fMedDeemax; // Number entry for deemax
50 TGNumberEntry *fMedEpsil; // Number entry for epsil
51 TGNumberEntry *fMedStmin; // Number entry for stmin
52 TGTextButton *fApply; // Apply-Button to accept changes
53 TGTextButton *fUndo; // Undo-Button
55 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
58 TGeoMediumEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
60 ~TGeoMediumEditor() override;
61 void SetModel(TObject *obj) override;
63 void DoEditMaterial();
64 void DoSelectMaterial();
65 void DoMedName();
66 void DoMedId();
67 void DoToggleSensitive();
68 void DoMagfldSelect(Int_t ientry);
69 void DoFieldm();
70 void DoTmaxfd();
71 void DoStemax();
72 void DoDeemax();
73 void DoEpsil();
74 void DoStmin();
75 void DoApply();
76 void DoUndo();
78 ClassDefOverride(TGeoMediumEditor, 0) // TGeoMedium editor
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Selects different options.
Definition TGButton.h:264
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition TGComboBox.h:47
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
This class handles GUI labels.
Definition TGLabel.h:24
TGNumberEntry is a number entry input widget with up/down buttons.
Yield an action as soon as it is clicked.
Definition TGButton.h:228
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
Definition TGTab.h:46
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
ROOT GUI Window base class.
Definition TGWindow.h:23
Common base class for geombuilder editors.
Base class describing materials.
Editor class for TGeo tracking media.
TGComboBox * fMagfldOption
void SetModel(TObject *obj) override
Connect to the selected object.
~TGeoMediumEditor() override
TGNumberEntry * fMedFieldm
void DoMedName()
Slot for medium name.
void DoUndo()
Slot for undoing last operation.
void DoEditMaterial()
Edit selected material.
TGTextButton * fUndo
TGNumberEntry * fMedStemax
void DoStmin()
Slot for min. step.
void DoMedId()
Slot for medium id.
TGTextButton * fApply
void DoEpsil()
Slot for tracking precision.
void DoMagfldSelect(Int_t ientry)
Slot for mag. field.
void DoToggleSensitive()
Slot for sensitivity.
void DoApply()
Slot for applying modifications.
TGPictureButton * fBSelMaterial
TGeoMedium * fMedium
TGNumberEntry * fMedDeemax
void DoSelectMaterial()
Select the material component.
void DoTmaxfd()
Slot for tmaxfd.
TGNumberEntry * fMedStmin
void DoStemax()
Slot for the max allowed step.
void DoDeemax()
Slot for the maximum allowed dedx.
void DoFieldm()
Slot for max field.
TGNumberEntry * fMedId
TGNumberEntry * fMedTmaxfd
TGeoMaterial * fSelectedMaterial
TGNumberEntry * fMedEpsil
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGTextButton * fEditMaterial
TGTextEntry * fMedName
TGCheckButton * fMedSensitive
Media are used to store properties related to tracking and which are useful only when using geometry ...
Definition TGeoMedium.h:23
Manager for all editor tabs.
Mother of all ROOT objects.
Definition TObject.h:41