File indexing completed on 2025-01-18 10:11:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef ROOT_TGeoTrd2Editor
0012 #define ROOT_TGeoTrd2Editor
0013
0014 #include "TGWidget.h"
0015 #include "TGeoGedFrame.h"
0016
0017 class TGeoTrd2;
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 TGeoTrd2Editor : public TGeoGedFrame {
0028
0029 protected:
0030 Double_t fDxi1;
0031 Double_t fDxi2;
0032 Double_t fDyi1;
0033 Double_t fDyi2;
0034 Double_t fDzi;
0035 TString fNamei;
0036 TGeoTrd2 *fShape;
0037 Bool_t fIsModified;
0038 Bool_t fIsShapeEditable;
0039
0040 TGTextEntry *fShapeName;
0041 TGNumberEntry *fEDx1;
0042 TGNumberEntry *fEDx2;
0043 TGNumberEntry *fEDy1;
0044 TGNumberEntry *fEDy2;
0045 TGNumberEntry *fEDz;
0046 TGTextButton *fApply;
0047 TGTextButton *fUndo;
0048 TGCheckButton *fDelayed;
0049
0050 virtual void ConnectSignals2Slots();
0051 Bool_t IsDelayed() const;
0052
0053 public:
0054 TGeoTrd2Editor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0055 Pixel_t back = GetDefaultFrameBackground());
0056 ~TGeoTrd2Editor() override;
0057 void SetModel(TObject *obj) override;
0058
0059 void DoDx1();
0060 void DoDx2();
0061 void DoDy1();
0062 void DoDy2();
0063 void DoDz();
0064 void DoModified();
0065 void DoName();
0066 void DoApply();
0067 void DoUndo();
0068
0069 ClassDefOverride(TGeoTrd2Editor, 0)
0070 };
0071
0072 #endif