Warning, file /include/root/TGeoTrapEditor.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef ROOT_TGeoTrapEditor
0012 #define ROOT_TGeoTrapEditor
0013
0014 #include "TGWidget.h"
0015 #include "TGeoGedFrame.h"
0016
0017 class TGeoTrap;
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 TGeoTrapEditor : public TGeoGedFrame {
0028
0029 protected:
0030 Double_t fH1i;
0031 Double_t fBl1i;
0032 Double_t fTl1i;
0033 Double_t fDzi;
0034 Double_t fSci;
0035 Double_t fAlpha1i;
0036 Double_t fThetai;
0037 Double_t fPhii;
0038 TString fNamei;
0039 TGeoTrap *fShape;
0040 Bool_t fIsModified;
0041 Bool_t fIsShapeEditable;
0042
0043 TGTextEntry *fShapeName;
0044 TGNumberEntry *fEH1;
0045 TGNumberEntry *fEBl1;
0046 TGNumberEntry *fETl1;
0047 TGNumberEntry *fESc1;
0048 TGNumberEntry *fESc2;
0049 TGNumberEntry *fEDz;
0050 TGNumberEntry *fEAlpha1;
0051 TGNumberEntry *fETheta;
0052 TGNumberEntry *fEPhi;
0053 TGTextButton *fApply;
0054 TGTextButton *fUndo;
0055 TGCompositeFrame *fBFrame;
0056 TGCheckButton *fDelayed;
0057 TGCompositeFrame *fDFrame;
0058
0059 virtual void ConnectSignals2Slots();
0060 Bool_t IsDelayed() const;
0061
0062 public:
0063 TGeoTrapEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0064 Pixel_t back = GetDefaultFrameBackground());
0065 ~TGeoTrapEditor() override;
0066 void SetModel(TObject *obj) override;
0067
0068 void DoH1();
0069 void DoBl1();
0070 void DoTl1();
0071 void DoDz();
0072 void DoSc1();
0073 void DoSc2();
0074 void DoAlpha1();
0075 void DoTheta();
0076 void DoPhi();
0077 void DoModified();
0078 void DoName();
0079 virtual void DoApply();
0080 virtual void DoUndo();
0081
0082 ClassDefOverride(TGeoTrapEditor, 0)
0083 };
0084
0085 class TGeoGtraEditor : public TGeoTrapEditor {
0086
0087 protected:
0088 Double_t fTwisti;
0089 TGNumberEntry *fETwist;
0090
0091 public:
0092 TGeoGtraEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0093 Pixel_t back = GetDefaultFrameBackground());
0094 ~TGeoGtraEditor() override;
0095 void SetModel(TObject *obj) override;
0096
0097 void DoTwist();
0098 void DoApply() override;
0099 void DoUndo() override;
0100
0101 ClassDefOverride(TGeoGtraEditor, 0)
0102 };
0103
0104 #endif