196 fApply->
Connect(
"Clicked()",
"TGeoSphereEditor",
this,
"DoApply()");
197 fUndo->
Connect(
"Clicked()",
"TGeoSphereEditor",
this,
"DoUndo()");
198 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoSphereEditor",
this,
"DoModified()");
199 fERmin->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoRmin()");
200 fERmax->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoRmax()");
201 fEPhi1->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoPhi1()");
202 fEPhi2->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoPhi2()");
203 fETheta1->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoTheta1()");
204 fETheta2->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoTheta2()");
205 fSPhi->
Connect(
"PositionChanged()",
"TGeoSphereEditor",
this,
"DoPhi()");
206 fSTheta->
Connect(
"PositionChanged()",
"TGeoSphereEditor",
this,
"DoTheta()");
272 if ((phi2-phi1) > 360.001) {
351 if (rmax < rmin+1.
e-10) {
353 if (rmin < 0.) rmin = 0.;
367 if (phi1 > 360-1.
e-10) {
371 if (phi2<phi1+1.
e-10) {
390 if (phi2-phi1 > 360.) {
394 if (phi2<phi1+1.
e-10) {
428 if (theta2<theta1+1.
e-10) {
429 theta2 = theta1 + 0.1;
447 if (theta2<theta1+1.
e-10) {
448 theta1 = theta2 - 0.1;
virtual Float_t GetMinPosition() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual Float_t GetMaxPosition() const
void DoPhi()
Slot for phi slider.
TVirtualGeoPainter * GetPainter() 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)
Set the name of the TNamed.
virtual void SetNumber(Double_t val)
virtual Double_t GetRmax() const
virtual Bool_t IsPaintingShape() const =0
virtual Bool_t IsComposite() const
virtual void SetModel(TObject *obj)
Connect to a given sphere.
virtual void SetRange(Float_t min, Float_t max)
virtual void DoApply()
Slot for applying modifications.
virtual void ConnectSignals2Slots()
Connect signals to slots.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
void DoTheta2()
Slot for theta2.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
TGCompositeFrame(const TGCompositeFrame &)
void SetSphDimensions(Double_t rmin, Double_t rmax, Double_t theta1, Double_t theta2, Double_t phi1, Double_t phi2)
Set spherical segment dimensions.
virtual TList * GetList() const
void DoName()
Slot for name.
void DoRmin()
Slot for Rmin.
virtual TView * GetView() const =0
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.
void DoModified()
Slot for signaling modifications.
Double_t GetTheta1() const
virtual void SetSize(const TGDimension &s)
TGDoubleVSlider * fSTheta
virtual void DoUndo()
Slot for undoing last operation.
virtual void ShowAxis()=0
void DoTheta1()
Slot for theta1.
void DoPhi1()
Slot for phi1.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
TGDimension GetSize() const
const char * GetText() const
virtual UInt_t GetDefaultHeight() const
R__EXTERN TGeoManager * gGeoManager
virtual Double_t GetNumber() const
virtual void ComputeBBox()
compute bounding box of the sphere
TGeoSphereEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for sphere editor.
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.
void DoTheta()
Slot for theta slider.
Mother of all ROOT objects.
void DoPhi2()
Slot for phi2.
TGNumberEntryField * GetNumberEntry() const
virtual void SetPosition(Float_t min, Float_t max)
virtual void Update()
Override Update from TGedFrame as fGedEditor can be null.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual ~TGeoSphereEditor()
Destructor.
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.
void DoRmax()
Slot for Rmax.
virtual void Draw(Option_t *option="")
Draw this shape.
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual Double_t GetRmin() const
UInt_t GetDefaultHeight() const
Common base class for geombuilder editors.
Double_t GetTheta2() const