158 fApply->
Connect(
"Clicked()",
"TGeoHypeEditor",
this,
"DoApply()");
159 fUndo->
Connect(
"Clicked()",
"TGeoHypeEditor",
this,
"DoUndo()");
160 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoHypeEditor",
this,
"DoModified()");
161 fERin->
Connect(
"ValueSet(Long_t)",
"TGeoHypeEditor",
this,
"DoRin()");
162 fERout->
Connect(
"ValueSet(Long_t)",
"TGeoHypeEditor",
this,
"DoRout()");
163 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoHypeEditor",
this,
"DoDz()");
164 fEStIn->
Connect(
"ValueSet(Long_t)",
"TGeoHypeEditor",
this,
"DoStIn()");
165 fEStOut->
Connect(
"ValueSet(Long_t)",
"TGeoHypeEditor",
this,
"DoStOut()");
240 if ((dz <= 0) || (rin < 0) || (rin > rout) ||
241 (rin * rin + tin * tin * dz * dz > rout * rout + tout * tout * dz * dz)) {
311 Double_t rinmax =
TMath::Sqrt((rout * rout + tout * tout * dz * dz) / (tin * tin * dz * dz));
314 rin = rinmax - 1.e-6;
334 Double_t routmin =
TMath::Sqrt((rin * rin + tin * tin * dz * dz) / (tout * tout * dz * dz));
336 if (rout < routmin) {
337 rout = routmin + 1.e-6;
393 tin = tinmax - 1.e-6;
425 if (tout < toutmin) {
426 tout = toutmin + 1.e-6;
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 void SetSize(const TGDimension &s)
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
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.
virtual Double_t GetDX() const
virtual Double_t GetDZ() const
virtual Double_t GetDY() const
Common base class for geombuilder editors.
void Update() override
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.
void DoUndo()
Slot for undoing last operation.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoRin()
Slot for Rin.
void DoRout()
Slot for Rout.
void DoModified()
Slot for notifying modifications.
void DoStOut()
Slot for StOut.
void SetModel(TObject *obj) override
Connect to the selected object.
void DoName()
Slot for name.
void DoStIn()
Slot for StIn.
void DoApply()
Slot for applying current settings.
TGeoHypeEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for Hype editor.
~TGeoHypeEditor() override
Destructor.
void ComputeBBox() override
void SetDimensions(Double_t *param) override
Double_t GetStOut() const
TVirtualGeoPainter * GetPainter() const
void Draw(Option_t *option="") override
Draw this shape.
const char * GetName() const override
Get the shape name.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
virtual Double_t GetRmin() const
virtual Double_t GetDz() const
virtual Double_t GetRmax() const
virtual void SetName(const char *name)
Set the name of the TNamed.
Mother of all ROOT objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
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.
virtual void ShowAxis()=0
virtual void SetRange(const Double_t *min, const Double_t *max)=0
virtual Bool_t IsPaintingShape() const =0
virtual TView * GetView() const =0
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Double_t ATan(Double_t)
Returns the principal value of the arc tangent of x, expressed in radians.
constexpr Double_t DegToRad()
Conversion from degree to radian: .
Double_t Sqrt(Double_t x)
Returns the square root of x.
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.
Double_t Tan(Double_t)
Returns the tangent of an angle of x radians.
constexpr Double_t RadToDeg()
Conversion from radian to degree: .
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.