169 fApply->
Connect(
"Clicked()",
"TGeoConeEditor",
this,
"DoApply()");
170 fUndo->
Connect(
"Clicked()",
"TGeoConeEditor",
this,
"DoUndo()");
171 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoConeEditor",
this,
"DoModified()");
172 fERmin1->
Connect(
"ValueSet(Long_t)",
"TGeoConeEditor",
this,
"DoRmin1()");
173 fERmin2->
Connect(
"ValueSet(Long_t)",
"TGeoConeEditor",
this,
"DoRmin2()");
174 fERmax1->
Connect(
"ValueSet(Long_t)",
"TGeoConeEditor",
this,
"DoRmax1()");
175 fERmax2->
Connect(
"ValueSet(Long_t)",
"TGeoConeEditor",
this,
"DoRmax2()");
176 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoConeEditor",
this,
"DoDz()");
244 if (rmin1<0 || rmin1>rmax1)
return;
245 if (rmin2<0 || rmin2>rmax2)
return;
247 if (rmin1==rmax1 && rmin2==rmax2)
return;
445 fApply->
Connect(
"Clicked()",
"TGeoConeSegEditor",
this,
"DoApply()");
446 fUndo->
Connect(
"Clicked()",
"TGeoConeSegEditor",
this,
"DoUndo()");
447 fEPhi1->
Connect(
"ValueSet(Long_t)",
"TGeoConeSegEditor",
this,
"DoPhi1()");
448 fEPhi2->
Connect(
"ValueSet(Long_t)",
"TGeoConeSegEditor",
this,
"DoPhi2()");
451 fSPhi->
Connect(
"PositionChanged()",
"TGeoConeSegEditor",
this,
"DoPhi()");
495 if (phi1 > 360-1.e-10) {
499 if (phi2<phi1+1.e-10) {
518 if (phi2-phi1 > 360.) {
522 if (phi2<phi1+1.e-10) {
559 if (rmin1<0 || rmax1<rmin1)
return;
562 if (rmin2<0 || rmax2<rmin2)
return;
566 if ((phi2-phi1) > 360.001) {
575 ((
TGeoConeSeg*)
fShape)->SetConsDimensions(dz, rmin1, rmax1, rmin2,rmax2, phi1, phi2);
ULong_t Pixel_t
Pixel value.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
R__EXTERN TGeoManager * gGeoManager
The base class for composite widgets (menu bars, list boxes, etc.).
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.
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)
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
virtual UInt_t GetDefaultWidth() const
virtual UInt_t GetDefaultHeight() const
TGDimension GetSize() const
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.
TGNumberEntryField * GetNumberEntry() const
Get the number entry field.
void Associate(const TGWindow *w) override
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)
UInt_t GetDefaultHeight() const override
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.
TGCompositeFrame * fDFrame
void DoModified()
Slot for modifying current parameters.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual ~TGeoConeEditor()
Destructor.
virtual void SetModel(TObject *obj)
Connect to the selected object.
void DoRmin2()
Slot for Rmin2.
virtual void DoUndo()
Slot for undoing current operation.
TGeoConeEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for volume editor.
void DoName()
Slot for name.
TGCompositeFrame * fBFrame
void DoRmin1()
Slot for Rmin1.
void DoRmax1()
Slot for Rmax1.
void DoRmax2()
Slot for Rmax2.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual void DoApply()
Slot for applying current parameters.
Editor for a cone segment.
void DoPhi1()
Slot for Phi1.
virtual void SetModel(TObject *obj)
Connect to the selected object.
TGeoConeSegEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for cone segment editor.
virtual void DoApply()
Slot for applying current parameters.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoPhi2()
Slot for Phi2.
virtual ~TGeoConeSegEditor()
Destructor.
void DoPhi()
Slot for Phi.
virtual void DoUndo()
Slot for undoing last operation.
A cone segment is a cone having a range in phi.
The cones are defined by 5 parameters:
virtual Double_t GetRmax2() const
void SetConeDimensions(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)
Set cone dimensions.
virtual Double_t GetDz() const
virtual void ComputeBBox()
compute bounding box of the sphere
virtual Double_t GetRmin2() const
virtual Double_t GetRmin1() const
virtual Double_t GetRmax1() const
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.
static void MoveFrame(TGCompositeFrame *fr, TGCompositeFrame *p)
Move frame fr at the end of the list of parent p.
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.
virtual TClass * IsA() const
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.
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
virtual void ShowAxis()=0
virtual Bool_t IsPaintingShape() const =0
virtual TView * GetView() const =0