68 fShapeName->SetToolTipText(
"Enter the sphere name");
105 fSPhi->SetRange(0., 720.);
174 fUndo->Associate(
this);
198 fApply->Connect(
"Clicked()",
"TGeoSphereEditor",
this,
"DoApply()");
199 fUndo->Connect(
"Clicked()",
"TGeoSphereEditor",
this,
"DoUndo()");
200 fShapeName->Connect(
"TextChanged(const char *)",
"TGeoSphereEditor",
this,
"DoModified()");
201 fERmin->Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoRmin()");
202 fERmax->Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoRmax()");
203 fEPhi1->Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoPhi1()");
204 fEPhi2->Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoPhi2()");
205 fETheta1->Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoTheta1()");
206 fETheta2->Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoTheta2()");
207 fSPhi->Connect(
"PositionChanged()",
"TGeoSphereEditor",
this,
"DoPhi()");
208 fSTheta->Connect(
"PositionChanged()",
"TGeoSphereEditor",
this,
"DoTheta()");
275 if ((phi2 - phi1) > 360.001) {
281 fSPhi->SetPosition(phi1, phi2);
286 fShape->SetSphDimensions(rmin, rmax, theta1, theta2, phi1, phi2);
293 fPad->GetView()->ShowAxis();
356 if (rmax < rmin + 1.e-10) {
372 if (phi1 > 360 - 1.e-10) {
376 if (phi2 < phi1 + 1.e-10) {
383 fSPhi->SetPosition(phi1, phi2);
397 if (phi2 - phi1 > 360.) {
401 if (phi2 < phi1 + 1.e-10) {
408 fSPhi->SetPosition(phi1, phi2);
439 if (theta2 < theta1 + 1.e-10) {
440 theta2 = theta1 + 0.1;
446 fSTheta->SetPosition(theta1, theta2);
460 if (theta2 < theta1 + 1.e-10) {
461 theta1 = theta2 - 0.1;
467 fSTheta->SetPosition(theta1, theta2);
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
Dragging the slider will generate the event:
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
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.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGeoSphereEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for sphere editor.
void DoTheta1()
Slot for theta1.
void DoRmin()
Slot for Rmin.
void DoName()
Slot for name.
void DoPhi2()
Slot for phi2.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoTheta()
Slot for theta slider.
void DoModified()
Slot for signaling modifications.
void DoTheta2()
Slot for theta2.
void DoPhi()
Slot for phi slider.
void SetModel(TObject *obj) override
Connect to a given sphere.
TGDoubleVSlider * fSTheta
void DoPhi1()
Slot for phi1.
void DoRmax()
Slot for Rmax.
virtual void DoUndo()
Slot for undoing last operation.
~TGeoSphereEditor() override
Destructor.
virtual void DoApply()
Slot for applying modifications.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
Mother of all ROOT objects.
virtual TClass * IsA() const