Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGeoMediumEditor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#):$Id$
0002 // Author: M.Gheata
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGeoMediumEditor
0013 #define ROOT_TGeoMediumEditor
0014 
0015 #include "TGWidget.h"
0016 #include "TGeoGedFrame.h"
0017 
0018 class TGeoMedium;
0019 class TGeoMaterial;
0020 class TGeoTabManager;
0021 class TGTextEntry;
0022 class TGNumberEntry;
0023 class TGTab;
0024 class TGComboBox;
0025 class TGTextButton;
0026 class TGPictureButton;
0027 class TGCheckButton;
0028 class TGLabel;
0029 
0030 class TGeoMediumEditor : public TGeoGedFrame {
0031 
0032 protected:
0033    TGeoMedium *fMedium; // Medium object
0034 
0035    Bool_t fIsEditable;              // Flag that the medium can be changed
0036    Bool_t fIsModified;              // Modified flag
0037    TGTextEntry *fMedName;           // Medium name text entry
0038    TGNumberEntry *fMedId;           // Number entry for medium id
0039                                     //   TGComboBox          *fMatList;         // Combo box for all materials
0040    TGeoMaterial *fSelectedMaterial; // Selected material
0041    TGLabel *fLSelMaterial;          // Selected material label
0042    TGPictureButton *fBSelMaterial;  // Button for selecting a material
0043    TGTextButton *fEditMaterial;     // Check button for material editing
0044    TGCheckButton *fMedSensitive;    // Check button for sensitivity
0045    TGComboBox *fMagfldOption;       // Combo box with magnetic field options
0046    TGNumberEntry *fMedFieldm;       // Number entry for fieldm
0047    TGNumberEntry *fMedTmaxfd;       // Number entry for tmaxfd
0048    TGNumberEntry *fMedStemax;       // Number entry for stemax
0049    TGNumberEntry *fMedDeemax;       // Number entry for deemax
0050    TGNumberEntry *fMedEpsil;        // Number entry for epsil
0051    TGNumberEntry *fMedStmin;        // Number entry for stmin
0052    TGTextButton *fApply;            // Apply-Button to accept changes
0053    TGTextButton *fUndo;             // Undo-Button
0054 
0055    virtual void ConnectSignals2Slots(); // Connect the signals to the slots
0056 
0057 public:
0058    TGeoMediumEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0059                     Pixel_t back = GetDefaultFrameBackground());
0060    ~TGeoMediumEditor() override;
0061    void SetModel(TObject *obj) override;
0062 
0063    void DoEditMaterial();
0064    void DoSelectMaterial();
0065    void DoMedName();
0066    void DoMedId();
0067    void DoToggleSensitive();
0068    void DoMagfldSelect(Int_t ientry);
0069    void DoFieldm();
0070    void DoTmaxfd();
0071    void DoStemax();
0072    void DoDeemax();
0073    void DoEpsil();
0074    void DoStmin();
0075    void DoApply();
0076    void DoUndo();
0077 
0078    ClassDefOverride(TGeoMediumEditor, 0) // TGeoMedium editor
0079 };
0080 
0081 #endif