134 fApply->
Connect(
"Clicked()",
"TGeoTranslationEditor",
this,
"DoApply()");
135 fCancel->
Connect(
"Clicked()",
"TGeoTranslationEditor",
this,
"DoCancel()");
136 fUndo->
Connect(
"Clicked()",
"TGeoTranslationEditor",
this,
"DoUndo()");
137 fTransName->
Connect(
"TextChanged(const char *)",
"TGeoTranslationEditor",
this,
"DoModified()");
138 fTransDx->
Connect(
"ValueSet(Long_t)",
"TGeoTranslationEditor",
this,
"DoDx()");
139 fTransDy->
Connect(
"ValueSet(Long_t)",
"TGeoTranslationEditor",
this,
"DoDy()");
140 fTransDz->
Connect(
"ValueSet(Long_t)",
"TGeoTranslationEditor",
this,
"DoDz()");
200 if (!changed)
return kFALSE;
335 nef->
SetToolTipText(
"Modify the second rotation angle about the new X");
364 nef->
SetToolTipText(
"Enter the new rotation angle about the selected axis");
418 fApply->
Connect(
"Clicked()",
"TGeoRotationEditor",
this,
"DoApply()");
419 fCancel->
Connect(
"Clicked()",
"TGeoRotationEditor",
this,
"DoCancel()");
420 fUndo->
Connect(
"Clicked()",
"TGeoRotationEditor",
this,
"DoUndo()");
421 fRotName->
Connect(
"TextChanged(const char *)",
"TGeoRotationEditor",
this,
"DoModified()");
422 fRotPhi->
Connect(
"ValueSet(Long_t)",
"TGeoRotationEditor",
this,
"DoRotPhi()");
423 fRotTheta->
Connect(
"ValueSet(Long_t)",
"TGeoRotationEditor",
this,
"DoRotTheta()");
424 fRotPsi->
Connect(
"ValueSet(Long_t)",
"TGeoRotationEditor",
this,
"DoRotPsi()");
425 fRotAxis->
Connect(
"ValueSet(Long_t)",
"TGeoRotationEditor",
this,
"DoRotAngle()");
466 if (!strcmp(name,
"no_name") || !strcmp(name,
fRotation->
GetName()))
return;
519 Double_t phi0 = 0., theta0 = 0., psi0 = 0.;
522 if (phi != psi0 || theta != theta0 || psi != psi0) changed =
kTRUE;
530 if (!changed)
return kFALSE;
682 nef->
SetToolTipText(
"Modify the second rotation angle about the new X");
711 nef->
SetToolTipText(
"Enter the new rotation angle about the selected axis");
765 fApply->
Connect(
"Clicked()",
"TGeoCombiTransEditor",
this,
"DoApply()");
766 fCancel->
Connect(
"Clicked()",
"TGeoCombiTransEditor",
this,
"DoCancel()");
767 fUndo->
Connect(
"Clicked()",
"TGeoCombiTransEditor",
this,
"DoUndo()");
768 fRotName->
Connect(
"TextChanged(const char *)",
"TGeoCombiTransEditor",
this,
"DoModified()");
769 fRotPhi->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoRotPhi()");
770 fRotTheta->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoRotTheta()");
771 fRotPsi->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoRotPsi()");
772 fRotAxis->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoRotAngle()");
773 fTransDx->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoDx()");
774 fTransDy->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoDy()");
775 fTransDz->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoDz()");
828 if (!strcmp(name,
"no_name") || !strcmp(name,
fCombi->
GetName()))
return;
889 Double_t phi0 = 0., theta0 = 0., psi0 = 0.;
891 if (rot) rot->
GetAngles(phi0,theta0,psi0);
901 if (phi != psi0 || theta != theta0 || psi != psi0) changed =
kTRUE;
902 if (changed && rot) rot->
SetAngles(phi, theta, psi);
909 if (changedtr) changed =
kTRUE;
910 if (!changed)
return kFALSE;
void DoRotTheta()
Slot for theta (Euler X convention)
virtual const char * GetName() const
Returns name of object.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
void SetRotation(const TGeoRotation &other)
Copy the rotation from another one.
void DoRotAngle()
Slot for additional rotation about one axis.
void DoRotPsi()
Slot for psi (Euler X convention)
void DoRotTheta()
Slot for theta (Euler X convention)
void DoModified()
Slot for notifying changes.
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void SetName(const char *name)
Set the name of the TNamed.
void DoApply()
Slot for applying changes.
void DoName()
Slot for name.
virtual void RotateX(Double_t angle)
Rotate about X axis of the master frame with angle expressed in degrees.
virtual void SetNumber(Double_t val)
void DoRotPsi()
Slot for psi (Euler X convention)
Bool_t DoParameters()
Slot for checking parameters.
Class describing translations.
virtual ~TGeoRotationEditor()
Destructor.
virtual UInt_t GetDefaultHeight() const
virtual Bool_t IsComposite() const
void SetTranslation(const TGeoTranslation &tr)
copy the translation component
virtual void RotateY(Double_t angle)
Rotate about Y axis with angle expressed in degrees.
virtual void RotateX(Double_t angle)
Rotate about X axis with angle expressed in degrees.
TGNumberEntry * fRotTheta
virtual void SetModel(TObject *obj)
Connect to the new matrix.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void DoApply()
Slot for applying modifications.
virtual void SetModel(TObject *obj)
Connect to the selected rotation.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
TGCompositeFrame(const TGCompositeFrame &)
virtual TList * GetList() const
Editor for a TGeoRotation.
virtual void RotateY(Double_t angle)
Rotate about Y axis of the master frame with angle expressed in degrees.
void DoRotPhi()
Slot for phi (Euler X convention)
TGeoRotationEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for rotation editor.
virtual const Double_t * GetTranslation() const
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
virtual void Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
TGNumberEntry * fRotTheta
void DoRotAngle()
Slot for additional rotation about one axis.
void DoUndo()
Slot for undoing last changes.
virtual void SetSize(const TGDimension &s)
Editor for a TGeoCombiTrans.
void DoUndo()
Slot for undoing last operation.
Class describing rotation + translation.
void DoCancel()
Slot for cancelling last modifications non-applied.
void DoCancel()
Slot for cancelling last un-applied operations.
virtual const Double_t * GetTranslation() const
TGeoRotation * GetRotation() const
Bool_t DoParameters()
Slot for checking parameters.
void DoCancel()
Slot for cancelling last un-applied operations.
virtual void RotateZ(Double_t angle)
Rotate about Z axis of the master frame with angle expressed in degrees.
Class describing rotations.
TGDimension GetSize() const
void DoName()
Slot for name.
const char * GetText() const
virtual void Modified(Bool_t flag=1)=0
virtual UInt_t GetDefaultHeight() const
virtual ~TGeoCombiTransEditor()
Destructor.
void DoName()
Slot for name.
void GetAngles(Double_t &theta1, Double_t &phi1, Double_t &theta2, Double_t &phi2, Double_t &theta3, Double_t &phi3) const
Retrieve rotation angles.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual Double_t GetNumber() const
void DoApply()
Slot for applying modifications.
void DoModified()
Slot for notifying changes.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Editor for a TGeoTranslation.
Mother of all ROOT objects.
TGeoCombiTransEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for combi matrix editor.
TGNumberEntryField * GetNumberEntry() const
Bool_t DoParameters()
Slot for checking parameters.
TGeoTranslationEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for translation editor.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void SetAngles(Double_t phi, Double_t theta, Double_t psi)
Set matrix elements according to Euler angles.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line...
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void RotateZ(Double_t angle)
Rotate about Z axis with angle expressed in degrees.
virtual void MakeTitle(const char *title)
Create attribute frame title.
void DoUndo()
Slot for undoing last changes.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoModified()
Slot for notifying changes.
void SetTranslation(Double_t dx, Double_t dy, Double_t dz)
Set translation components.
TGeoTranslation * fTranslation
void DoRotPhi()
Slot for phi (Euler X convention)
UInt_t GetDefaultHeight() const
Common base class for geombuilder editors.
virtual void SetModel(TObject *obj)
Connect to the selected combi matrix.
virtual ~TGeoTranslationEditor()
Destructor.
const char * Data() const