File indexing completed on 2025-01-18 10:11:50
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef ROOT_TGeoBBoxEditor
0012 #define ROOT_TGeoBBoxEditor
0013
0014 #include "TGWidget.h"
0015 #include "TGeoGedFrame.h"
0016
0017 class TGeoBBox;
0018 class TGeoTabManager;
0019 class TGTextEntry;
0020 class TGNumberEntry;
0021 class TGTab;
0022 class TGComboBox;
0023 class TGTextButton;
0024 class TGCheckButton;
0025 class TString;
0026
0027 class TGeoBBoxEditor : public TGeoGedFrame {
0028
0029 protected:
0030 Double_t fDxi;
0031 Double_t fDyi;
0032 Double_t fDzi;
0033 Double_t fOrigi[3];
0034 TString fNamei;
0035 TGeoBBox *fShape;
0036 Bool_t fIsModified;
0037 Bool_t fIsShapeEditable;
0038 TGTextEntry *fShapeName;
0039 TGNumberEntry *fBoxDx;
0040 TGNumberEntry *fBoxDy;
0041 TGNumberEntry *fBoxDz;
0042 TGNumberEntry *fBoxOx;
0043 TGNumberEntry *fBoxOy;
0044 TGNumberEntry *fBoxOz;
0045 TGTextButton *fApply;
0046 TGTextButton *fUndo;
0047 TGCheckButton *fDelayed;
0048
0049 virtual void ConnectSignals2Slots();
0050 Bool_t IsDelayed() const;
0051
0052 public:
0053 TGeoBBoxEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0054 Pixel_t back = GetDefaultFrameBackground());
0055 ~TGeoBBoxEditor() override;
0056 void SetModel(TObject *obj) override;
0057
0058 void DoDx();
0059 void DoDy();
0060 void DoDz();
0061 void DoOx();
0062 void DoOy();
0063 void DoOz();
0064 void DoModified();
0065 void DoName();
0066 void DoApply();
0067 void DoUndo();
0068
0069 ClassDefOverride(TGeoBBoxEditor, 0)
0070 };
0071
0072 #endif