45 kTORUS_NAME, kTORUS_R, kTORUS_RMIN, kTORUS_RMAX, kTORUS_PHI1,
46 kTORUS_DPHI, kTORUS_APPLY, kTORUS_UNDO
169 fApply->
Connect(
"Clicked()",
"TGeoTorusEditor",
this,
"DoApply()");
170 fUndo->
Connect(
"Clicked()",
"TGeoTorusEditor",
this,
"DoUndo()");
171 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoTorusEditor",
this,
"DoModified()");
172 fER->
Connect(
"ValueSet(Long_t)",
"TGeoTorusEditor",
this,
"DoR()");
173 fERmin->
Connect(
"ValueSet(Long_t)",
"TGeoTorusEditor",
this,
"DoRmin()");
174 fERmax->
Connect(
"ValueSet(Long_t)",
"TGeoTorusEditor",
this,
"DoRmax()");
175 fEPhi1->
Connect(
"ValueSet(Long_t)",
"TGeoTorusEditor",
this,
"DoPhi1()");
176 fEDphi->
Connect(
"ValueSet(Long_t)",
"TGeoTorusEditor",
this,
"DoDphi()");
351 if (phi<0 || phi>360) {
365 if (dphi<=0 || dphi>360) {
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
void DoDphi()
Slot for Dphi.
void DoApply()
Slot for applying current settings.
void DoUndo()
Slot for undoing last operation.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
ClassImp(TGeoTorusEditor) enum ETGeoTorusWid
virtual Bool_t IsComposite() const
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)
virtual void SetRange(const Double_t *min, const Double_t *max)=0
virtual Bool_t IsPaintingShape() const =0
virtual TList * GetList() const
TGeoTorusEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for torus editor.
virtual Double_t GetDY() const
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual Double_t GetDZ() const
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hirarchically all daughters of a composite frame.
TGNumberEntryField * GetNumberEntry() const
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 &)
void DoModified()
Slot for notifying modifications.
virtual ~TGeoTorusEditor()
Destructor.
virtual TView * GetView() const =0
void DoPhi1()
Slot for phi.
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.
void DoRmin()
Slot for Rmin.
virtual Double_t GetDX() const
virtual void SetSize(const TGDimension &s)
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void ShowAxis()=0
virtual const char * GetName() const
Get the shape name.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
R__EXTERN TGeoManager * gGeoManager
virtual void SetModel(TObject *obj)
Connect to the selected object.
TGDimension GetSize() const
virtual void SetDimensions(Double_t *param)
Set torus dimensions starting from a list.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Mother of all ROOT objects.
virtual void ComputeBBox()
Compute bounding box of the torus.
virtual UInt_t GetDefaultHeight() const
void DoRmax()
Slot for Rmax.
virtual void Update()
Override Update from TGedFrame as fGedEditor can be null.
virtual Double_t GetNumber() 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.