151 fApply->
Connect(
"Clicked()",
"TGeoTubeEditor",
this,
"DoApply()");
152 fUndo->
Connect(
"Clicked()",
"TGeoTubeEditor",
this,
"DoUndo()");
153 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoTubeEditor",
this,
"DoModified()");
154 fERmin->
Connect(
"ValueSet(Long_t)",
"TGeoTubeEditor",
this,
"DoRmin()");
155 fERmax->
Connect(
"ValueSet(Long_t)",
"TGeoTubeEditor",
this,
"DoRmax()");
156 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoTubeEditor",
this,
"DoDz()");
255 if (rmax<rmin+1.
e-10) {
274 if (rmax<rmin+1.
e-10) {
382 fApply->
Connect(
"Clicked()",
"TGeoTubeSegEditor",
this,
"DoApply()");
383 fUndo->
Connect(
"Clicked()",
"TGeoTubeSegEditor",
this,
"DoUndo()");
384 fEPhi1->
Connect(
"ValueSet(Long_t)",
"TGeoTubeSegEditor",
this,
"DoPhi1()");
385 fEPhi2->
Connect(
"ValueSet(Long_t)",
"TGeoTubeSegEditor",
this,
"DoPhi2()");
388 fSPhi->
Connect(
"PositionChanged()",
"TGeoTubeSegEditor",
this,
"DoPhi()");
428 if (phi1 > 360-1.
e-10) {
432 if (phi2<phi1+1.
e-10) {
451 if (phi2-phi1 > 360.) {
455 if (phi2<phi1+1.
e-10) {
492 if (rmin<0 || rmax<rmin)
return;
496 if ((phi2-phi1) > 360.001) {
570 nef->
SetToolTipText(
"Enter the theta angle of the lower plane normal");
572 fEThlo->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoThlo()");
573 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
583 nef->
SetToolTipText(
"Enter the phi angle of the lower plane normal");
585 fEPhlo->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoPhlo()");
586 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
600 nef->
SetToolTipText(
"Enter the theta angle of the upper plane normal");
602 fEThhi->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoThhi()");
603 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
613 nef->
SetToolTipText(
"Enter the phi angle of the upper plane normal");
615 fEPhhi->
Connect(
"ValueSet(Long_t)",
"TGeoCtubEditor",
this,
"DoPhhi()");
616 nef->
Connect(
"TextChanged(const char *)",
"TGeoCtubEditor",
this,
"DoModified()");
741 if (rmin<0 || rmax<rmin)
return;
745 if ((phi2-phi1) > 360.001) {
764 ((
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.
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 hirarchically 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.
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.
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.
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
virtual void DoUndo()
Slot for undoing last operation.
virtual void DoUndo()
Slot for undoing last operation.