146 fApply->
Connect(
"Clicked()",
"TGeoTubeEditor",
this,
"DoApply()");
147 fUndo->
Connect(
"Clicked()",
"TGeoTubeEditor",
this,
"DoUndo()");
148 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoTubeEditor",
this,
"DoModified()");
149 fERmin->
Connect(
"ValueSet(Long_t)",
"TGeoTubeEditor",
this,
"DoRmin()");
150 fERmax->
Connect(
"ValueSet(Long_t)",
"TGeoTubeEditor",
this,
"DoRmax()");
151 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoTubeEditor",
this,
"DoDz()");
250 if (rmax<rmin+1.
e-10) {
269 if (rmax<rmin+1.
e-10) {
372 fApply->
Connect(
"Clicked()",
"TGeoTubeSegEditor",
this,
"DoApply()");
373 fUndo->
Connect(
"Clicked()",
"TGeoTubeSegEditor",
this,
"DoUndo()");
374 fEPhi1->
Connect(
"ValueSet(Long_t)",
"TGeoTubeSegEditor",
this,
"DoPhi1()");
375 fEPhi2->
Connect(
"ValueSet(Long_t)",
"TGeoTubeSegEditor",
this,
"DoPhi2()");
378 fSPhi->
Connect(
"PositionChanged()",
"TGeoTubeSegEditor",
this,
"DoPhi()");
418 if (phi1 > 360-1.
e-10) {
422 if (phi2<phi1+1.
e-10) {
441 if (phi2-phi1 > 360.) {
445 if (phi2<phi1+1.
e-10) {
482 if (rmin<0 || rmax<rmin)
return;
486 if ((phi2-phi1) > 360.001) {
555 nef->
SetToolTipText(
"Enter the theta angle of the lower plane normal");
557 fEThlo->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoThlo()");
558 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
568 nef->
SetToolTipText(
"Enter the phi angle of the lower plane normal");
570 fEPhlo->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoPhlo()");
571 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
585 nef->
SetToolTipText(
"Enter the theta angle of the upper plane normal");
587 fEThhi->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoThhi()");
588 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
598 nef->
SetToolTipText(
"Enter the phi angle of the upper plane normal");
600 fEPhhi->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoPhhi()");
601 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
726 if (rmin<0 || rmax<rmin)
return;
730 if ((phi2-phi1) > 360.001) {
749 ((
TGeoCtub*)
fShape)->SetCtubDimensions(rmin, rmax, dz, phi1, phi2, lx,ly,lz,tx,ty,tz);
virtual Float_t GetMinPosition() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
TGeoTubeEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for tube editor.
virtual ~TGeoCtubEditor()
Destructor.
virtual Float_t GetMaxPosition() const
virtual void ComputeBBox()
compute bounding box of the tube
void DoPhi1()
Slot for phi1.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoPhi()
Slot for phi slider.
void DoThlo()
Slot for phi1.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
TVirtualGeoPainter * GetPainter() const
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void DoUndo()
Slot for undoing last operation.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual void SetNumber(Double_t val)
virtual Bool_t IsPaintingShape() const =0
virtual Bool_t IsComposite() const
virtual void SetRange(Float_t min, Float_t max)
void DoThhi()
Slot for phi1.
TGeoCtubEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for cut tube editor.
void DoPhi2()
Slot for phi2.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
virtual Double_t GetRmax() const
virtual void DoApply()
Slot for applying modifications.
TGeoTubeSegEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for tube segment editor.
void DoModified()
Slot for signaling modifications.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
constexpr Double_t DegToRad()
Conversion from degree to radian: .
TGCompositeFrame(const TGCompositeFrame &)
virtual TList * GetList() const
Double_t ATan2(Double_t, Double_t)
TGCompositeFrame * fDFrame
virtual TView * GetView() const =0
virtual void SetModel(TObject *obj)
Connect to the selected object.
virtual const char * GetName() const
Get the shape name.
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.
virtual ~TGeoTubeSegEditor()
Destructor.
virtual void SetSize(const TGDimension &s)
virtual void ShowAxis()=0
virtual UInt_t GetDefaultWidth() const
virtual void DoApply()
Slot for applying modifications.
static void MoveFrame(TGCompositeFrame *fr, TGCompositeFrame *p)
Move frame fr at the end of the list of parent p.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
TGDimension GetSize() const
const char * GetText() const
A tube segment cut with 2 planes.
virtual UInt_t GetDefaultHeight() const
void DoRmax()
Slot for rmax.
virtual ~TGeoTubeEditor()
Destructor.
Editor for a TGeoTubeSeg.
R__EXTERN TGeoManager * gGeoManager
virtual Double_t GetNumber() const
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void DoApply()
Slot for applying modifications.
Mother of all ROOT objects.
virtual void SetModel(TObject *obj)
Connect to the selected object.
constexpr Double_t RadToDeg()
Conversion from radian to degree: .
TGNumberEntryField * GetNumberEntry() const
virtual Double_t GetRmin() const
void DoPhlo()
Slot for phi1.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGCompositeFrame * fBFrame
void DoPhhi()
Slot for phi1.
virtual void SetPosition(Float_t min, Float_t max)
virtual void Update()
Override Update from TGedFrame as fGedEditor can be null.
virtual void SetModel(TObject *obj)
Connect to the selected object.
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...
void DoRmin()
Slot for rmin.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void Draw(Option_t *option="")
Draw this shape.
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoName()
Perform name change.
void SetTubeDimensions(Double_t rmin, Double_t rmax, Double_t dz)
Set tube dimensions.
virtual Double_t GetDz() const
UInt_t GetDefaultHeight() const
Common base class for geombuilder editors.
virtual void DoUndo()
Slot for undoing last operation.
virtual void DoUndo()
Slot for undoing last operation.