46 kCONE_NAME, kCONE_RMIN1, kCONE_RMIN2, kCONE_RMAX1, kCONE_RMAX2, kCONE_Z,
47 kCONE_APPLY, kCONE_UNDO
175 fApply->
Connect(
"Clicked()",
"TGeoConeEditor",
this,
"DoApply()");
176 fUndo->
Connect(
"Clicked()",
"TGeoConeEditor",
this,
"DoUndo()");
177 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoConeEditor",
this,
"DoModified()");
178 fERmin1->
Connect(
"ValueSet(Long_t)",
"TGeoConeEditor",
this,
"DoRmin1()");
179 fERmin2->
Connect(
"ValueSet(Long_t)",
"TGeoConeEditor",
this,
"DoRmin2()");
180 fERmax1->
Connect(
"ValueSet(Long_t)",
"TGeoConeEditor",
this,
"DoRmax1()");
181 fERmax2->
Connect(
"ValueSet(Long_t)",
"TGeoConeEditor",
this,
"DoRmax2()");
182 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoConeEditor",
this,
"DoDz()");
250 if (rmin1<0 || rmin1>rmax1)
return;
251 if (rmin2<0 || rmin2>rmax2)
return;
253 if (rmin1==rmax1 && rmin2==rmax2)
return;
388 enum ETGeoConeSegWid {
389 kCONESEG_PHI1, kCONESEG_PHI2, kCONESEG_PHI
456 fApply->
Connect(
"Clicked()",
"TGeoConeSegEditor",
this,
"DoApply()");
457 fUndo->
Connect(
"Clicked()",
"TGeoConeSegEditor",
this,
"DoUndo()");
458 fEPhi1->
Connect(
"ValueSet(Long_t)",
"TGeoConeSegEditor",
this,
"DoPhi1()");
459 fEPhi2->
Connect(
"ValueSet(Long_t)",
"TGeoConeSegEditor",
this,
"DoPhi2()");
462 fSPhi->
Connect(
"PositionChanged()",
"TGeoConeSegEditor",
this,
"DoPhi()");
506 if (phi1 > 360-1.e-10) {
510 if (phi2<phi1+1.e-10) {
529 if (phi2-phi1 > 360.) {
533 if (phi2<phi1+1.e-10) {
570 if (rmin1<0 || rmax1<rmin1)
return;
573 if (rmin2<0 || rmax2<rmin2)
return;
577 if ((phi2-phi1) > 360.001) {
586 ((
TGeoConeSeg*)
fShape)->SetConsDimensions(dz, rmin1, rmax1, rmin2,rmax2, phi1, phi2);
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual Double_t GetRmin1() const
void DoPhi1()
Slot for Phi1.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
virtual Double_t GetRmax2() const
virtual Bool_t IsComposite() const
virtual void DoUndo()
Slot for undoing last operation.
TGeoConeEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for volume editor.
ClassImp(TGeoConeEditor) enum ETGeoConeWid
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void SetName(const char *name)
Change (i.e.
virtual void SetNumber(Double_t val)
void DoModified()
Slot for modifing current parameters.
virtual void ComputeBBox()
compute bounding box of the sphere
virtual ~TGeoConeEditor()
Destructor.
virtual Bool_t IsPaintingShape() const =0
virtual TList * GetList() const
virtual void DoApply()
Slot for applying current parameters.
virtual void SetRange(Float_t min, Float_t max)
virtual void SetModel(TObject *obj)
Connect to the selected object.
void DoRmin2()
Slot for Rmin2.
virtual Double_t GetRmax1() const
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hirarchically all daughters of a composite frame.
virtual void SetModel(TObject *obj)
Connect to the selected object.
TGNumberEntryField * GetNumberEntry() const
Bool_t IsDelayed() const
Check if shape drawing is delayed.
const char * GetText() const
TVirtualGeoPainter * GetPainter() const
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
TGCompositeFrame(const TGCompositeFrame &)
virtual UInt_t GetDefaultWidth() const
virtual TView * GetView() const =0
void DoPhi2()
Slot for Phi2.
void DoRmax1()
Slot for Rmax1.
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 void DoApply()
Slot for applying current parameters.
virtual void DoUndo()
Slot for undoing current operation.
virtual void SetSize(const TGDimension &s)
virtual Double_t GetRmin2() const
void DoRmax2()
Slot for Rmax2.
virtual void ShowAxis()=0
virtual Double_t GetDz() const
static void MoveFrame(TGCompositeFrame *fr, TGCompositeFrame *p)
Move frame fr at the end of the list of parent p.
virtual const char * GetName() const
Get the shape name.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
R__EXTERN TGeoManager * gGeoManager
void DoPhi()
Slot for Phi.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual ~TGeoConeSegEditor()
Destructor.
TGDimension GetSize() const
void DoRmin1()
Slot for Rmin1.
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
TGeoConeSegEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for cone segment editor.
TGCompositeFrame * fDFrame
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Mother of all ROOT objects.
void SetConeDimensions(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)
Set cone dimensions.
virtual UInt_t GetDefaultHeight() const
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void SetPosition(Float_t min, Float_t max)
virtual void Update()
Override Update from TGedFrame as fGedEditor can be null.
TGCompositeFrame * fBFrame
virtual Float_t GetMinPosition() const
virtual Double_t GetNumber() const
virtual Float_t GetMaxPosition() const
UInt_t GetDefaultHeight() const
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 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.
void DoName()
Slot for name.