00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef ROOT_TGeoConeEditor
00012 #define ROOT_TGeoConeEditor
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef ROOT_TGButton
00023 #include "TGWidget.h"
00024 #endif
00025 #ifndef ROOT_TGeoGedFrame
00026 #include "TGeoGedFrame.h"
00027 #endif
00028
00029 class TGeoCone;
00030 class TGeoConeSeg;
00031 class TGeoTabManager;
00032 class TGTextEntry;
00033 class TGNumberEntry;
00034 class TGTab;
00035 class TGComboBox;
00036 class TGTextButton;
00037 class TGCheckButton;
00038 class TString;
00039
00040 class TGeoConeEditor : public TGeoGedFrame {
00041
00042 protected:
00043
00044 Double_t fRmini1;
00045 Double_t fRmaxi1;
00046 Double_t fRmini2;
00047 Double_t fRmaxi2;
00048 Double_t fDzi;
00049 TString fNamei;
00050 TGeoCone *fShape;
00051 Bool_t fIsModified;
00052 Bool_t fIsShapeEditable;
00053 TGTextEntry *fShapeName;
00054 TGNumberEntry *fERmin1;
00055 TGNumberEntry *fERmin2;
00056 TGNumberEntry *fERmax1;
00057 TGNumberEntry *fERmax2;
00058 TGNumberEntry *fEDz;
00059 TGTextButton *fApply;
00060 TGTextButton *fUndo;
00061 TGCompositeFrame *fBFrame;
00062 TGCheckButton *fDelayed;
00063 TGCompositeFrame *fDFrame;
00064
00065 virtual void ConnectSignals2Slots();
00066 Bool_t IsDelayed() const;
00067
00068 public:
00069 TGeoConeEditor(const TGWindow *p = 0,
00070 Int_t width = 140, Int_t height = 30,
00071 UInt_t options = kChildFrame,
00072 Pixel_t back = GetDefaultFrameBackground());
00073 virtual ~TGeoConeEditor();
00074 virtual void SetModel(TObject *obj);
00075
00076 void DoRmin1();
00077 void DoRmin2();
00078 void DoRmax1();
00079 void DoRmax2();
00080 void DoDz();
00081 void DoModified();
00082 void DoName();
00083 virtual void DoApply();
00084 virtual void DoUndo();
00085
00086 ClassDef(TGeoConeEditor,0)
00087 };
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097 class TGDoubleVSlider;
00098
00099 class TGeoConeSegEditor : public TGeoConeEditor {
00100
00101 protected:
00102
00103 Bool_t fLock;
00104 Double_t fPmini;
00105 Double_t fPmaxi;
00106 TGDoubleVSlider *fSPhi;
00107 TGNumberEntry *fEPhi1;
00108 TGNumberEntry *fEPhi2;
00109
00110 virtual void ConnectSignals2Slots();
00111
00112 public:
00113 TGeoConeSegEditor(const TGWindow *p = 0,
00114 Int_t width = 140, Int_t height = 30,
00115 UInt_t options = kChildFrame,
00116 Pixel_t back = GetDefaultFrameBackground());
00117 virtual ~TGeoConeSegEditor();
00118 virtual void SetModel(TObject *obj);
00119
00120 void DoPhi();
00121 void DoPhi1();
00122 void DoPhi2();
00123 virtual void DoApply();
00124 virtual void DoUndo();
00125
00126 ClassDef(TGeoConeSegEditor,0)
00127 };
00128
00129 #endif