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);
include TDocParser_001 C image html pict1_TDocParser_001 png width
R__EXTERN TGeoManager * gGeoManager
virtual TList * GetList() const
TGCompositeFrame(const TGCompositeFrame &)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
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)
virtual void SetSize(const TGDimension &s)
virtual UInt_t GetDefaultWidth() const
virtual UInt_t GetDefaultHeight() const
TGDimension GetSize() const
virtual Bool_t IsComposite() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void SetNumber(Double_t val)
UInt_t GetDefaultHeight() const
TGNumberEntryField * GetNumberEntry() const
virtual void Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
virtual Double_t GetNumber() const
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.
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void SetModel(TObject *obj)
Connect to the selected object.
virtual void DoUndo()
Slot for undoing last operation.
void DoPhlo()
Slot for phi1.
virtual void DoApply()
Slot for applying modifications.
virtual ~TGeoCtubEditor()
Destructor.
void DoThhi()
Slot for phi1.
void DoPhhi()
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 DoThlo()
Slot for phi1.
A tube segment cut with 2 planes.
Common base class for geombuilder editors.
virtual void Update()
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
virtual const char * GetName() const
Get the shape name.
virtual void Draw(Option_t *option="")
Draw this shape.
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 ~TGeoTubeEditor()
Destructor.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoRmax()
Slot for rmax.
void DoRmin()
Slot for rmin.
TGCompositeFrame * fDFrame
void DoModified()
Slot for signaling modifications.
TGCompositeFrame * fBFrame
virtual void DoUndo()
Slot for undoing last operation.
void DoName()
Perform name change.
virtual void SetModel(TObject *obj)
Connect to the selected object.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
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 void DoApply()
Slot for applying modifications.
Editor for a TGeoTubeSeg.
virtual void DoUndo()
Slot for undoing last operation.
virtual ~TGeoTubeSegEditor()
Destructor.
virtual void DoApply()
Slot for applying modifications.
void DoPhi2()
Slot for phi2.
virtual void SetModel(TObject *obj)
Connect to the selected object.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoPhi1()
Slot for phi1.
void DoPhi()
Slot for phi slider.
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.
virtual Double_t GetRmin() const
void SetTubeDimensions(Double_t rmin, Double_t rmax, Double_t dz)
Set tube dimensions.
virtual Double_t GetDz() const
virtual void ComputeBBox()
compute bounding box of the tube
virtual Double_t GetRmax() const
virtual void SetName(const char *name)
Set the name of the TNamed.
Mother of all ROOT objects.
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=0, void *receiver=0, const char *slot=0)
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 ATan2(Double_t, Double_t)
constexpr Double_t DegToRad()
Conversion from degree to radian:
constexpr Double_t RadToDeg()
Conversion from radian to degree: