63 fShapeName->SetToolTipText(
"Enter the torus name");
74 fER->Resize(100,
fER->GetDefaultHeight());
142 fUndo->Associate(
this);
166 fApply->Connect(
"Clicked()",
"TGeoTorusEditor",
this,
"DoApply()");
167 fUndo->Connect(
"Clicked()",
"TGeoTorusEditor",
this,
"DoUndo()");
168 fShapeName->Connect(
"TextChanged(const char *)",
"TGeoTorusEditor",
this,
"DoModified()");
169 fER->Connect(
"ValueSet(Long_t)",
"TGeoTorusEditor",
this,
"DoR()");
170 fERmin->Connect(
"ValueSet(Long_t)",
"TGeoTorusEditor",
this,
"DoRmin()");
171 fERmax->Connect(
"ValueSet(Long_t)",
"TGeoTorusEditor",
this,
"DoRmax()");
172 fEPhi1->Connect(
"ValueSet(Long_t)",
"TGeoTorusEditor",
this,
"DoPhi1()");
173 fEDphi->Connect(
"ValueSet(Long_t)",
"TGeoTorusEditor",
this,
"DoDphi()");
174 fER->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTorusEditor",
this,
"DoModified()");
175 fERmin->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTorusEditor",
this,
"DoModified()");
176 fERmax->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTorusEditor",
this,
"DoModified()");
177 fEPhi1->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTorusEditor",
this,
"DoModified()");
178 fEDphi->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTorusEditor",
this,
"DoModified()");
197 const char *sname =
fShape->GetName();
198 if (!strcmp(sname,
fShape->ClassName()))
252 fShape->SetDimensions(param);
261 fPad->GetView()->ShowAxis();
354 if (phi < 0 || phi > 360) {
369 if (dphi <= 0 || dphi > 360) {
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
externTGeoManager * gGeoManager
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual TList * GetList() const
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
TGCompositeFrame(const TGCompositeFrame &)=delete
virtual Bool_t IsComposite() const
This class handles GUI labels.
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
ROOT GUI Window base class.
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
void Update() override
Override Update from TGedFrame as fGedEditor can be null.
TGeoGedFrame(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
void DoRmax()
Slot for Rmax.
void DoPhi1()
Slot for phi.
void DoRmin()
Slot for Rmin.
void DoUndo()
Slot for undoing last operation.
void DoName()
Slot for name.
TGeoTorusEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for torus editor.
void DoDphi()
Slot for Dphi.
~TGeoTorusEditor() override
Destructor.
void SetModel(TObject *obj) override
Connect to the selected object.
void DoApply()
Slot for applying current settings.
void DoModified()
Slot for notifying modifications.
virtual void ConnectSignals2Slots()
Connect signals to slots.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
Mother of all ROOT objects.
virtual TClass * IsA() const
virtual void SetRange(const Double_t *min, const Double_t *max)=0