Warning, file /include/root/TGeoMatrixEditor.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
0012 #ifndef ROOT_TGeoTranslationEditor
0013 #define ROOT_TGeoTranslationEditor
0014
0015 #include "TGWidget.h"
0016 #include "TGeoGedFrame.h"
0017
0018 class TGeoTranslation;
0019 class TGeoRotation;
0020 class TGeoCombiTrans;
0021 class TGTextEntry;
0022 class TGNumberEntry;
0023 class TGTab;
0024 class TGComboBox;
0025 class TGTextButton;
0026 class TGRadioButton;
0027 class TString;
0028
0029 class TGeoTranslationEditor : public TGeoGedFrame {
0030
0031 protected:
0032 Double_t fDxi;
0033 Double_t fDyi;
0034 Double_t fDzi;
0035 TString fNamei;
0036 TGeoTranslation *fTranslation;
0037 Bool_t fIsModified;
0038 Bool_t fIsEditable;
0039 TGTextEntry *fTransName;
0040 TGNumberEntry *fTransDx;
0041 TGNumberEntry *fTransDy;
0042 TGNumberEntry *fTransDz;
0043 TGTextButton *fApply;
0044 TGTextButton *fCancel;
0045 TGTextButton *fUndo;
0046
0047 virtual void ConnectSignals2Slots();
0048
0049 public:
0050 TGeoTranslationEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30,
0051 UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
0052 ~TGeoTranslationEditor() override;
0053 void SetModel(TObject *obj) override;
0054
0055 void DoDx();
0056 void DoDy();
0057 void DoDz();
0058 void DoModified();
0059 void DoName();
0060 Bool_t DoParameters();
0061 void DoApply();
0062 void DoCancel();
0063 void DoUndo();
0064
0065 ClassDefOverride(TGeoTranslationEditor, 0)
0066 };
0067
0068 class TGeoRotationEditor : public TGeoGedFrame {
0069
0070 protected:
0071 Double_t fPhii;
0072 Double_t fThetai;
0073 Double_t fPsii;
0074 Double_t fAngleX;
0075 Double_t fAngleY;
0076 Double_t fAngleZ;
0077 TString fNamei;
0078 TGeoRotation *fRotation;
0079 Bool_t fIsModified;
0080 Bool_t fIsEditable;
0081 TGTextEntry *fRotName;
0082 TGNumberEntry *fRotPhi;
0083 TGNumberEntry *fRotTheta;
0084 TGNumberEntry *fRotPsi;
0085 TGNumberEntry *fRotAxis;
0086 TGRadioButton *fRotX;
0087 TGRadioButton *fRotY;
0088 TGRadioButton *fRotZ;
0089 TGTextButton *fApply;
0090 TGTextButton *fCancel;
0091 TGTextButton *fUndo;
0092
0093 virtual void ConnectSignals2Slots();
0094
0095 public:
0096 TGeoRotationEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0097 Pixel_t back = GetDefaultFrameBackground());
0098 ~TGeoRotationEditor() override;
0099 void SetModel(TObject *obj) override;
0100
0101 void DoRotPhi();
0102 void DoRotTheta();
0103 void DoRotPsi();
0104 void DoRotAngle();
0105 void DoModified();
0106 void DoName();
0107 Bool_t DoParameters();
0108 void DoApply();
0109 void DoCancel();
0110 void DoUndo();
0111
0112 ClassDefOverride(TGeoRotationEditor, 0)
0113 };
0114
0115 class TGeoCombiTransEditor : public TGeoGedFrame {
0116
0117 protected:
0118 Double_t fDxi;
0119 Double_t fDyi;
0120 Double_t fDzi;
0121 Double_t fPhii;
0122 Double_t fThetai;
0123 Double_t fPsii;
0124 Double_t fAngleX;
0125 Double_t fAngleY;
0126 Double_t fAngleZ;
0127 TString fNamei;
0128 TGeoCombiTrans *fCombi;
0129 Bool_t fIsModified;
0130 Bool_t fIsEditable;
0131 TGTextEntry *fRotName;
0132 TGNumberEntry *fTransDx;
0133 TGNumberEntry *fTransDy;
0134 TGNumberEntry *fTransDz;
0135 TGNumberEntry *fRotPhi;
0136 TGNumberEntry *fRotTheta;
0137 TGNumberEntry *fRotPsi;
0138 TGNumberEntry *fRotAxis;
0139 TGRadioButton *fRotX;
0140 TGRadioButton *fRotY;
0141 TGRadioButton *fRotZ;
0142 TGTextButton *fApply;
0143 TGTextButton *fCancel;
0144 TGTextButton *fUndo;
0145
0146 virtual void ConnectSignals2Slots();
0147
0148 public:
0149 TGeoCombiTransEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0150 Pixel_t back = GetDefaultFrameBackground());
0151 ~TGeoCombiTransEditor() override;
0152 void SetModel(TObject *obj) override;
0153
0154 void DoDx();
0155 void DoDy();
0156 void DoDz();
0157 void DoRotPhi();
0158 void DoRotTheta();
0159 void DoRotPsi();
0160 void DoRotAngle();
0161 void DoModified();
0162 void DoName();
0163 Bool_t DoParameters();
0164 void DoApply();
0165 void DoCancel();
0166 void DoUndo();
0167
0168 ClassDefOverride(TGeoCombiTransEditor, 0)
0169 };
0170
0171 #endif