Warning, file /include/root/TGeoConeEditor.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_TGeoConeEditor
0012 #define ROOT_TGeoConeEditor
0013
0014 #include "TGWidget.h"
0015 #include "TGeoGedFrame.h"
0016
0017 class TGeoCone;
0018 class TGeoConeSeg;
0019 class TGeoTabManager;
0020 class TGTextEntry;
0021 class TGNumberEntry;
0022 class TGTab;
0023 class TGComboBox;
0024 class TGTextButton;
0025 class TGCheckButton;
0026 class TString;
0027
0028 class TGeoConeEditor : public TGeoGedFrame {
0029
0030 protected:
0031 Double_t fRmini1;
0032 Double_t fRmaxi1;
0033 Double_t fRmini2;
0034 Double_t fRmaxi2;
0035 Double_t fDzi;
0036 TString fNamei;
0037 TGeoCone *fShape;
0038 Bool_t fIsModified;
0039 Bool_t fIsShapeEditable;
0040 TGTextEntry *fShapeName;
0041 TGNumberEntry *fERmin1;
0042 TGNumberEntry *fERmin2;
0043 TGNumberEntry *fERmax1;
0044 TGNumberEntry *fERmax2;
0045 TGNumberEntry *fEDz;
0046 TGTextButton *fApply;
0047 TGTextButton *fUndo;
0048 TGCompositeFrame *fBFrame;
0049 TGCheckButton *fDelayed;
0050 TGCompositeFrame *fDFrame;
0051
0052 virtual void ConnectSignals2Slots();
0053 Bool_t IsDelayed() const;
0054
0055 public:
0056 TGeoConeEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0057 Pixel_t back = GetDefaultFrameBackground());
0058 ~TGeoConeEditor() override;
0059 void SetModel(TObject *obj) override;
0060
0061 void DoRmin1();
0062 void DoRmin2();
0063 void DoRmax1();
0064 void DoRmax2();
0065 void DoDz();
0066 void DoModified();
0067 void DoName();
0068 virtual void DoApply();
0069 virtual void DoUndo();
0070
0071 ClassDefOverride(TGeoConeEditor, 0)
0072 };
0073
0074 class TGDoubleVSlider;
0075
0076 class TGeoConeSegEditor : public TGeoConeEditor {
0077
0078 protected:
0079 Bool_t fLock;
0080 Double_t fPmini;
0081 Double_t fPmaxi;
0082 TGDoubleVSlider *fSPhi;
0083 TGNumberEntry *fEPhi1;
0084 TGNumberEntry *fEPhi2;
0085
0086 void ConnectSignals2Slots() override;
0087
0088 public:
0089 TGeoConeSegEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0090 Pixel_t back = GetDefaultFrameBackground());
0091 ~TGeoConeSegEditor() override;
0092 void SetModel(TObject *obj) override;
0093
0094 void DoPhi();
0095 void DoPhi1();
0096 void DoPhi2();
0097 void DoApply() override;
0098 void DoUndo() override;
0099
0100 ClassDefOverride(TGeoConeSegEditor, 0)
0101 };
0102
0103 #endif