138 fApply->
Connect(
"Clicked()",
"TGeoTranslationEditor",
this,
"DoApply()");
139 fCancel->
Connect(
"Clicked()",
"TGeoTranslationEditor",
this,
"DoCancel()");
140 fUndo->
Connect(
"Clicked()",
"TGeoTranslationEditor",
this,
"DoUndo()");
141 fTransName->
Connect(
"TextChanged(const char *)",
"TGeoTranslationEditor",
this,
"DoModified()");
142 fTransDx->
Connect(
"ValueSet(Long_t)",
"TGeoTranslationEditor",
this,
"DoDx()");
143 fTransDy->
Connect(
"ValueSet(Long_t)",
"TGeoTranslationEditor",
this,
"DoDy()");
144 fTransDz->
Connect(
"ValueSet(Long_t)",
"TGeoTranslationEditor",
this,
"DoDz()");
344 nef->
SetToolTipText(
"Modify the second rotation angle about the new X");
372 nef->
SetToolTipText(
"Enter the new rotation angle about the selected axis");
425 fApply->
Connect(
"Clicked()",
"TGeoRotationEditor",
this,
"DoApply()");
426 fCancel->
Connect(
"Clicked()",
"TGeoRotationEditor",
this,
"DoCancel()");
427 fUndo->
Connect(
"Clicked()",
"TGeoRotationEditor",
this,
"DoUndo()");
428 fRotName->
Connect(
"TextChanged(const char *)",
"TGeoRotationEditor",
this,
"DoModified()");
429 fRotPhi->
Connect(
"ValueSet(Long_t)",
"TGeoRotationEditor",
this,
"DoRotPhi()");
430 fRotTheta->
Connect(
"ValueSet(Long_t)",
"TGeoRotationEditor",
this,
"DoRotTheta()");
431 fRotPsi->
Connect(
"ValueSet(Long_t)",
"TGeoRotationEditor",
this,
"DoRotPsi()");
432 fRotAxis->
Connect(
"ValueSet(Long_t)",
"TGeoRotationEditor",
this,
"DoRotAngle()");
536 Double_t phi0 = 0., theta0 = 0., psi0 = 0.;
539 if (phi != psi0 || theta != theta0 || psi != psi0)
710 nef->
SetToolTipText(
"Modify the second rotation angle about the new X");
737 nef->
SetToolTipText(
"Enter the new rotation angle about the selected axis");
790 fApply->
Connect(
"Clicked()",
"TGeoCombiTransEditor",
this,
"DoApply()");
791 fCancel->
Connect(
"Clicked()",
"TGeoCombiTransEditor",
this,
"DoCancel()");
792 fUndo->
Connect(
"Clicked()",
"TGeoCombiTransEditor",
this,
"DoUndo()");
793 fRotName->
Connect(
"TextChanged(const char *)",
"TGeoCombiTransEditor",
this,
"DoModified()");
794 fRotPhi->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoRotPhi()");
795 fRotTheta->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoRotTheta()");
796 fRotPsi->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoRotPsi()");
797 fRotAxis->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoRotAngle()");
798 fTransDx->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoDx()");
799 fTransDy->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoDy()");
800 fTransDz->
Connect(
"ValueSet(Long_t)",
"TGeoCombiTransEditor",
this,
"DoDz()");
925 Double_t phi0 = 0., theta0 = 0., psi0 = 0.;
938 if (phi != psi0 || theta != theta0 || psi != psi0)
ULong_t Pixel_t
Pixel value.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint angle
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual TList * GetList() const
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
UInt_t GetDefaultHeight() const override
virtual void SetSize(const TGDimension &s)
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
virtual UInt_t GetDefaultHeight() const
TGDimension GetSize() const
virtual Bool_t IsComposite() const
This class handles GUI labels.
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
TGNumberEntryField * GetNumberEntry() const
Get the number entry field.
void Associate(const TGWindow *w) override
Make w the window that will receive the generated messages.
virtual Double_t GetNumber() const
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
UInt_t GetDefaultHeight() const override
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
const char * GetText() const
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
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.
ROOT GUI Window base class.
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
Editor for a TGeoCombiTrans.
TGeoCombiTransEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for combi matrix editor.
void DoRotPsi()
Slot for psi (Euler X convention)
void DoModified()
Slot for notifying changes.
void DoUndo()
Slot for undoing last changes.
Bool_t DoParameters()
Slot for checking parameters.
void DoName()
Slot for name.
void DoRotAngle()
Slot for additional rotation about one axis.
void DoRotPhi()
Slot for phi (Euler X convention)
void DoApply()
Slot for applying modifications.
TGNumberEntry * fRotTheta
virtual void ConnectSignals2Slots()
Connect signals to slots.
void SetModel(TObject *obj) override
Connect to the selected combi matrix.
void DoRotTheta()
Slot for theta (Euler X convention)
void DoCancel()
Slot for cancelling last un-applied operations.
~TGeoCombiTransEditor() override
Destructor.
Class describing rotation + translation.
const Double_t * GetTranslation() const override
void RotateY(Double_t angle) override
Rotate about Y axis with angle expressed in degrees.
void RotateX(Double_t angle) override
Rotate about X axis with angle expressed in degrees.
TGeoRotation * GetRotation() const
void SetTranslation(const TGeoTranslation &tr)
copy the translation component
void SetRotation(const TGeoRotation &other)
Copy the rotation from another one.
void RotateZ(Double_t angle) override
Rotate about Z axis with angle expressed in degrees.
Common base class for geombuilder editors.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
Editor for a TGeoRotation.
void DoApply()
Slot for applying modifications.
void DoRotPhi()
Slot for phi (Euler X convention)
void DoRotAngle()
Slot for additional rotation about one axis.
void DoCancel()
Slot for cancelling last un-applied operations.
TGNumberEntry * fRotTheta
void DoUndo()
Slot for undoing last changes.
void SetModel(TObject *obj) override
Connect to the selected rotation.
void DoName()
Slot for name.
Bool_t DoParameters()
Slot for checking parameters.
void DoModified()
Slot for notifying changes.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoRotPsi()
Slot for psi (Euler X convention)
~TGeoRotationEditor() override
Destructor.
void DoRotTheta()
Slot for theta (Euler X convention)
TGeoRotationEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for rotation editor.
Class describing rotations.
void RotateX(Double_t angle) override
Rotate about X axis of the master frame with angle expressed in degrees.
void SetAngles(Double_t phi, Double_t theta, Double_t psi)
Set matrix elements according to Euler angles.
void RotateY(Double_t angle) override
Rotate about Y axis of the master frame with angle expressed in degrees.
void RotateZ(Double_t angle) override
Rotate about Z axis of the master frame with angle expressed in degrees.
void GetAngles(Double_t &theta1, Double_t &phi1, Double_t &theta2, Double_t &phi2, Double_t &theta3, Double_t &phi3) const
Retrieve rotation angles.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
Editor for a TGeoTranslation.
~TGeoTranslationEditor() override
Destructor.
TGeoTranslation * fTranslation
void SetModel(TObject *obj) override
Connect to the new matrix.
void DoModified()
Slot for notifying changes.
void DoName()
Slot for name.
TGeoTranslationEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for translation editor.
void DoUndo()
Slot for undoing last operation.
Bool_t DoParameters()
Slot for checking parameters.
void DoCancel()
Slot for cancelling last modifications non-applied.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoApply()
Slot for applying changes.
Class describing translations.
void SetTranslation(Double_t dx, Double_t dy, Double_t dz)
Set translation components.
const Double_t * GetTranslation() const override
const char * GetName() const override
Returns name of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
Mother of all ROOT objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual TClass * IsA() 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.
const char * Data() const
virtual void Modified(Bool_t flag=1)=0