68 fShapeName->SetToolTipText(
"Enter the parallelepiped name");
79 fEH1->Resize(100,
fEH1->GetDefaultHeight());
82 fEH1->Associate(
this);
93 nef->
SetToolTipText(
"Enter the half length in x at low z and y low edge");
94 fEBl1->Associate(
this);
103 fETl1->Resize(100,
fETl1->GetDefaultHeight());
105 nef->
SetToolTipText(
"Enter the half length in x at low z and y high edge");
106 fETl1->Associate(
this);
115 fESc1->Resize(100,
fESc1->GetDefaultHeight());
118 fESc1->Associate(
this);
127 fESc2->Resize(100,
fESc2->GetDefaultHeight());
130 fESc2->Associate(
this);
139 fEDz->Resize(100,
fEDz->GetDefaultHeight());
142 fEDz->Associate(
this);
152 nef->
SetToolTipText(
"Enter angle between centers of x edges an y axis at low z");
174 fEPhi->Resize(100,
fEPhi->GetDefaultHeight());
177 fEPhi->Associate(
this);
194 fUndo->Associate(
this);
218 fApply->Connect(
"Clicked()",
"TGeoTrapEditor",
this,
"DoApply()");
219 fUndo->Connect(
"Clicked()",
"TGeoTrapEditor",
this,
"DoUndo()");
220 fShapeName->Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
221 fEH1->Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoH1()");
222 fEBl1->Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoBl1()");
223 fETl1->Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoTl1()");
224 fEDz->Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoDz()");
225 fESc1->Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoSc1()");
226 fESc2->Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoSc2()");
227 fEAlpha1->Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoAlpha1()");
228 fETheta->Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoTheta()");
229 fEPhi->Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoPhi()");
230 fEH1->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
231 fEBl1->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
232 fETl1->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
233 fEDz->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
234 fESc1->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
235 fESc2->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
236 fEAlpha1->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
237 fETheta->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
238 fEPhi->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
263 const char *sname =
fShape->GetName();
264 if (!strcmp(sname,
fShape->ClassName()))
274 fESc1->SetNumber(1.);
335 fShape->SetDimensions(param);
344 fPad->GetView()->ShowAxis();
371 fESc1->SetNumber(1.);
405 fEBl1->SetNumber(bl1);
420 fETl1->SetNumber(tl1);
450 fESc1->SetNumber(sc1);
465 fESc2->SetNumber(sc2);
512 if (phi < 0 || phi > 360) {
514 fEPhi->SetNumber(phi);
555 fETwist->Connect(
"ValueSet(Long_t)",
"TGeoGtraEditor",
this,
"DoTwist()");
556 nef->
Connect(
"TextChanged(const char *)",
"TGeoGtraEditor",
this,
"DoModified()");
594 const char *sname =
fShape->GetName();
595 if (!strcmp(sname,
fShape->ClassName()))
605 fESc1->SetNumber(1.);
663 fPad->GetView()->ShowAxis();
682 fESc1->SetNumber(1.);
700 if (twist <= -180 || twist >= 180) {
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
externTGeoManager * gGeoManager
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.
TGCompositeFrame(const TGCompositeFrame &)=delete
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.
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.
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
ROOT GUI Window base class.
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
void ComputeBBox() override
void Update() override
Override Update from TGedFrame as fGedEditor can be null.
TGeoGedFrame(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
~TGeoGtraEditor() override
Destructor.
void SetModel(TObject *obj) override
Connect to a given twisted trapezoid.
void DoUndo() override
Slot for undoing last operation.
void DoApply() override
Slot for applying current settings.
TGeoGtraEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for gtra editor.
void DoTwist()
Change the twist angle.
void SetDimensions(Double_t *param) override
static void MoveFrame(TGCompositeFrame *fr, TGCompositeFrame *p)
Move frame fr at the end of the list of parent p.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
TGCompositeFrame * fDFrame
void DoTl1()
Slot for Tl1.
TGeoTrapEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for para editor.
void SetModel(TObject *obj) override
Connect to the selected object.
virtual void DoUndo()
Slot for undoing last operation.
~TGeoTrapEditor() override
Destructor.
void DoPhi()
Slot for phi.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoName()
Slot for name.
TGCompositeFrame * fBFrame
void DoAlpha1()
Slot for alpha1.
void DoBl1()
Slot for Bl1.
virtual void DoApply()
Slot for applying current settings.
void DoTheta()
Slot for theta.
void DoModified()
Slot for notifying modifications.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
Mother of all ROOT objects.
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.
virtual void SetRange(const Double_t *min, const Double_t *max)=0
T1 Sign(T1 a, T2 b)
Returns a value with the magnitude of a and the sign of b.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.