49 fUseTrans->Connect(
"Toggled(Bool_t)",
"TEveTransSubEditor",
this,
"DoUseTrans()");
52 fEditTrans->Connect(
"Toggled(Bool_t)",
"TEveTransSubEditor",
this,
"DoEditTrans()");
60 TGFont *font =
gClient->GetFont(
"-adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-iso8859-1");
71 fPos->GetValuator(0)->SetToolTip(
"X coordinate");
72 fPos->GetValuator(1)->SetToolTip(
"Y coordinate");
73 fPos->GetValuator(2)->SetToolTip(
"Z coordinate");
85 fRot->GetValuator(0)->SetToolTip(
"X coordinate");
86 fRot->GetValuator(1)->SetToolTip(
"Y coordinate");
87 fRot->GetValuator(2)->SetToolTip(
"Z coordinate");
99 fScale->GetValuator(0)->SetToolTip(
"X coordinate");
100 fScale->GetValuator(1)->SetToolTip(
"Y coordinate");
101 fScale->GetValuator(2)->SetToolTip(
"Z coordinate");
104 fPos ->Connect(
"ValueSet()",
"TEveTransSubEditor",
this,
"DoTransChanged()");
105 fRot ->Connect(
"ValueSet()",
"TEveTransSubEditor",
this,
"DoTransChanged()");
106 fScale->Connect(
"ValueSet()",
"TEveTransSubEditor",
this,
"DoTransChanged()");
114 fUpdate->Connect(
"Clicked()",
"TEveTransSubEditor",
this,
"TransChanged()");
133 for (
Int_t i=0; i<3; ++i)
135 fRot ->GetValuator(i)->GetEntry()->SetState(
fTrans->GetEditRotation());
136 fScale->GetValuator(i)->GetEntry()->SetState(
fTrans->GetEditScale());
188 Emit(
"TransChanged()");
237 fSE->Connect(
"UseTrans()",
"TEveTransEditor",
this,
"Update()");
238 fSE->Connect(
"TransChanged()",
"TEveTransEditor",
this,
"Update()");
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
Composite GUI element for setting three numerical values (label, three number-entries).
void SetModel(TObject *obj) override
Set model object.
TEveTransEditor(const TEveTransEditor &)
Sub-editor for TEveTrans class.
void UseTrans()
Emit "UseTrans()" signal.
void DoUseTrans()
Slot for UseTrans.
TEveGTriVecValuator * fScale
TGHorizontalFrame * fTopHorFrame
TGCheckButton * fUseTrans
void DoEditTrans()
Slot for EditTrans.
void TransChanged()
Set transformation values from widget and emit "TransChanged()" signal.
void SetTransFromData()
Set model object from widget data.
void SetModel(TEveTrans *t)
Set model object.
void DoTransChanged()
Slot for TransChanged.
TGVerticalFrame * fEditTransFrame
TEveGTriVecValuator * fRot
TGCheckButton * fEditTrans
TGCheckButton * fAutoUpdate
TEveTransSubEditor(const TEveTransSubEditor &)
TEveGTriVecValuator * fPos
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
Encapsulate fonts used in the GUI system.
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
virtual void SetTextFont(TGFont *font, Bool_t global=kFALSE)
Changes text font specified by pointer to TGFont object.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
Yield an action as soon as it is clicked.
TGVerticalFrame(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
ROOT GUI Window base class.
TGedFrame(const TGedFrame &)=delete
virtual void MakeTitle(const char *title)
Create attribute frame title.
Mother of all ROOT objects.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
constexpr Double_t DegToRad()
Conversion from degree to radian: .
constexpr Double_t RadToDeg()
Conversion from radian to degree: .