140 fApply->
Connect(
"Clicked()",
"TGeoTubeEditor",
this,
"DoApply()");
141 fUndo->
Connect(
"Clicked()",
"TGeoTubeEditor",
this,
"DoUndo()");
142 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoTubeEditor",
this,
"DoModified()");
143 fERmin->
Connect(
"ValueSet(Long_t)",
"TGeoTubeEditor",
this,
"DoRmin()");
144 fERmax->
Connect(
"ValueSet(Long_t)",
"TGeoTubeEditor",
this,
"DoRmax()");
145 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoTubeEditor",
this,
"DoDz()");
246 if (rmax < rmin + 1.e-10) {
266 if (rmax < rmin + 1.e-10) {
369 fApply->
Connect(
"Clicked()",
"TGeoTubeSegEditor",
this,
"DoApply()");
370 fUndo->
Connect(
"Clicked()",
"TGeoTubeSegEditor",
this,
"DoUndo()");
371 fEPhi1->
Connect(
"ValueSet(Long_t)",
"TGeoTubeSegEditor",
this,
"DoPhi1()");
372 fEPhi2->
Connect(
"ValueSet(Long_t)",
"TGeoTubeSegEditor",
this,
"DoPhi2()");
375 fSPhi->
Connect(
"PositionChanged()",
"TGeoTubeSegEditor",
this,
"DoPhi()");
416 if (phi1 > 360 - 1.e-10) {
420 if (phi2 < phi1 + 1.e-10) {
441 if (phi2 - phi1 > 360.) {
445 if (phi2 < phi1 + 1.e-10) {
487 if (rmin < 0 || rmax < rmin)
492 if ((phi2 - phi1) > 360.001) {
559 nef->
SetToolTipText(
"Enter the theta angle of the lower plane normal");
561 fEThlo->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoThlo()");
562 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
572 nef->
SetToolTipText(
"Enter the phi angle of the lower plane normal");
574 fEPhlo->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoPhlo()");
575 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
589 nef->
SetToolTipText(
"Enter the theta angle of the upper plane normal");
591 fEThhi->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoThhi()");
592 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
602 nef->
SetToolTipText(
"Enter the phi angle of the upper plane normal");
604 fEPhhi->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoPhhi()");
605 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
745 if (rmin < 0 || rmax < rmin)
750 if ((phi2 - phi1) > 360.001) {
769 ((
TGeoCtub *)
fShape)->SetCtubDimensions(rmin, rmax, dz, phi1, phi2, lx, ly, lz, tx, ty, tz);
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 height
R__EXTERN TGeoManager * 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.
virtual Float_t GetMaxPosition() const
virtual Float_t GetMinPosition() const
virtual void SetRange(Float_t min, Float_t max)
virtual void SetPosition(Float_t min, Float_t max)
Dragging the slider will generate the event:
virtual void SetSize(const TGDimension &s)
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
virtual UInt_t GetDefaultWidth() const
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.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
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.
void DoUndo() override
Slot for undoing last operation.
void DoPhlo()
Slot for phi1.
void DoThhi()
Slot for phi1.
~TGeoCtubEditor() override
Destructor.
TGeoCtubEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for cut tube editor.
void DoApply() override
Slot for applying modifications.
void SetModel(TObject *obj) override
Connect to the selected object.
void DoPhhi()
Slot for phi1.
void DoThlo()
Slot for phi1.
Common base class for geombuilder editors.
void Update() override
Override Update from TGedFrame as fGedEditor can be null.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
TVirtualGeoPainter * GetPainter() const
void Draw(Option_t *option="") override
Draw this shape.
const char * GetName() const override
Get the shape name.
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.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoRmax()
Slot for rmax.
void SetModel(TObject *obj) override
Connect to the selected object.
void DoRmin()
Slot for rmin.
TGCompositeFrame * fDFrame
~TGeoTubeEditor() override
Destructor.
void DoModified()
Slot for signaling modifications.
TGCompositeFrame * fBFrame
virtual void DoUndo()
Slot for undoing last operation.
TGeoTubeEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for tube editor.
void DoName()
Perform name change.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual void DoApply()
Slot for applying modifications.
Editor for a TGeoTubeSeg.
void DoApply() override
Slot for applying modifications.
TGeoTubeSegEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for tube segment editor.
void DoPhi2()
Slot for phi2.
void ConnectSignals2Slots() override
Connect signals to slots.
~TGeoTubeSegEditor() override
Destructor.
void DoPhi1()
Slot for phi1.
void DoPhi()
Slot for phi slider.
void DoUndo() override
Slot for undoing last operation.
void SetModel(TObject *obj) override
Connect to the selected object.
virtual Double_t GetRmin() const
void SetTubeDimensions(Double_t rmin, Double_t rmax, Double_t dz)
virtual Double_t GetDz() const
void ComputeBBox() override
virtual Double_t GetRmax() const
virtual void SetName(const char *name)
Set the name of the TNamed.
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.
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
virtual void ShowAxis()=0
virtual Bool_t IsPaintingShape() const =0
virtual TView * GetView() const =0
Double_t ACos(Double_t)
Returns the principal value of the arc cosine of x, expressed in radians.
Double_t ATan2(Double_t y, Double_t x)
Returns the principal value of the arc tangent of y/x, expressed in radians.
constexpr Double_t DegToRad()
Conversion from degree to radian: .
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
constexpr Double_t RadToDeg()
Conversion from radian to degree: .