194 fApply->
Connect(
"Clicked()",
"TGeoSphereEditor",
this,
"DoApply()");
195 fUndo->
Connect(
"Clicked()",
"TGeoSphereEditor",
this,
"DoUndo()");
196 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoSphereEditor",
this,
"DoModified()");
197 fERmin->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoRmin()");
198 fERmax->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoRmax()");
199 fEPhi1->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoPhi1()");
200 fEPhi2->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoPhi2()");
201 fETheta1->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoTheta1()");
202 fETheta2->
Connect(
"ValueSet(Long_t)",
"TGeoSphereEditor",
this,
"DoTheta2()");
203 fSPhi->
Connect(
"PositionChanged()",
"TGeoSphereEditor",
this,
"DoPhi()");
204 fSTheta->
Connect(
"PositionChanged()",
"TGeoSphereEditor",
this,
"DoTheta()");
214 if (obj == 0 || (obj->IsA()!=TGeoSphere::Class())) {
270 if ((phi2-phi1) > 360.001) {
349 if (rmax < rmin+1.e-10) {
364 if (phi1 > 360-1.e-10) {
368 if (phi2<phi1+1.e-10) {
387 if (phi2-phi1 > 360.) {
391 if (phi2<phi1+1.e-10) {
425 if (theta2<theta1+1.e-10) {
426 theta2 = theta1 + 0.1;
444 if (theta2<theta1+1.e-10) {
445 theta1 = theta2 - 0.1;
ULong_t Pixel_t
Pixel value.
include TDocParser_001 C image html pict1_TDocParser_001 png width
R__EXTERN TGeoManager * gGeoManager
The base class for composite widgets (menu bars, list boxes, etc.).
virtual TList * GetList() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual Float_t GetMaxPosition() const
virtual Float_t GetMinPosition() const
virtual void SetRange(Float_t min, Float_t max)
virtual void SetPosition(Float_t min, Float_t max)
Dragging the slider will generate the event:
virtual void SetSize(const TGDimension &s)
virtual UInt_t GetDefaultHeight() const
TGDimension GetSize() const
virtual Bool_t IsComposite() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
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.
UInt_t GetDefaultHeight() const
TGNumberEntryField * GetNumberEntry() const
virtual void Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
virtual Double_t GetNumber() const
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
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.
const char * GetText() const
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
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.
ROOT GUI Window base class.
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
Common base class for geombuilder editors.
virtual void Update()
Override Update from TGedFrame as fGedEditor can be null.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
TVirtualGeoPainter * GetPainter() const
virtual const char * GetName() const
Get the shape name.
virtual void Draw(Option_t *option="")
Draw this shape.
virtual ~TGeoSphereEditor()
Destructor.
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.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoTheta1()
Slot for theta1.
void DoRmin()
Slot for Rmin.
virtual void SetModel(TObject *obj)
Connect to a given sphere.
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.
TGDoubleVSlider * fSTheta
void DoPhi1()
Slot for phi1.
void DoRmax()
Slot for Rmax.
virtual void DoUndo()
Slot for undoing last operation.
virtual void DoApply()
Slot for applying modifications.
TGeoSphere are not just balls having internal and external radii, but sectors of a sphere having defi...
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 Double_t GetRmin() const
virtual void ComputeBBox()
compute bounding box of the sphere
Double_t GetTheta2() const
virtual Double_t GetRmax() const
Double_t GetTheta1() const
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
virtual void SetName(const char *name)
Set the name of the TNamed.
Mother of all ROOT objects.
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 ShowAxis()=0
virtual Bool_t IsPaintingShape() const =0
virtual TView * GetView() const =0