46 kHYPE_NAME, kHYPE_RIN, kHYPE_ROUT, kHYPE_DZ, kHYPE_STIN,
47 kHYPE_STOUT, kHYPE_APPLY, kHYPE_UNDO
169 fApply->
Connect(
"Clicked()",
"TGeoHypeEditor",
this,
"DoApply()");
170 fUndo->
Connect(
"Clicked()",
"TGeoHypeEditor",
this,
"DoUndo()");
171 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoHypeEditor",
this,
"DoModified()");
172 fERin->
Connect(
"ValueSet(Long_t)",
"TGeoHypeEditor",
this,
"DoRin()");
173 fERout->
Connect(
"ValueSet(Long_t)",
"TGeoHypeEditor",
this,
"DoRout()");
174 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoHypeEditor",
this,
"DoDz()");
175 fEStIn->
Connect(
"ValueSet(Long_t)",
"TGeoHypeEditor",
this,
"DoStIn()");
176 fEStOut->
Connect(
"ValueSet(Long_t)",
"TGeoHypeEditor",
this,
"DoStOut()");
249 if ((dz<=0) || (rin<0) || (rin>rout) ||
250 (rin*rin+tin*tin*dz*dz > rout*rout+tout*tout*dz*dz)) {
343 if (rout < routmin) {
344 rout = routmin+1.e-6;
429 if (tout < toutmin) {
430 tout = toutmin+1.e-6;
Double_t GetStOut() const
void DoApply()
Slot for applying current settings.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
void DoStIn()
Slot for StIn.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
virtual Bool_t IsComposite() 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)
Change (i.e.
virtual void SetNumber(Double_t val)
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void SetRange(const Double_t *min, const Double_t *max)=0
virtual Bool_t IsPaintingShape() const =0
virtual TList * GetList() const
Short_t Min(Short_t a, Short_t b)
virtual Double_t GetDY() const
TGeoHypeEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for Hype editor.
virtual Double_t GetDZ() const
void DoRin()
Slot for Rin.
void DoModified()
Slot for notifying modifications.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hirarchically all daughters of a composite frame.
virtual void ComputeBBox()
Compute bounding box of the hyperboloid.
TGNumberEntryField * GetNumberEntry() const
void DoUndo()
Slot for undoing last operation.
const char * GetText() const
TVirtualGeoPainter * GetPainter() const
ClassImp(TGeoHypeEditor) enum ETGeoHypeWid
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
TGCompositeFrame(const TGCompositeFrame &)
virtual TView * GetView() const =0
void DoName()
Slot for 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.
virtual Double_t GetDX() const
virtual void SetSize(const TGDimension &s)
virtual void SetDimensions(Double_t *param)
Set dimensions of the hyperboloid starting from an array.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual Double_t GetRmin() const
virtual void ShowAxis()=0
virtual ~TGeoHypeEditor()
Destructor.
virtual const char * GetName() const
Get the shape name.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
R__EXTERN TGeoManager * gGeoManager
TGDimension GetSize() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Mother of all ROOT objects.
virtual void SetModel(TObject *obj)
Connect to the selected object.
virtual UInt_t GetDefaultHeight() const
Short_t Max(Short_t a, Short_t b)
virtual void Update()
Override Update from TGedFrame as fGedEditor can be null.
virtual Double_t GetDz() const
void DoStOut()
Slot for StOut.
virtual Double_t GetNumber() const
UInt_t GetDefaultHeight() const
Double_t Sqrt(Double_t x)
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.
virtual void Draw(Option_t *option="")
Draw this shape.
virtual void MakeTitle(const char *title)
Create attribute frame title.
void DoRout()
Slot for Rout.
virtual Double_t GetRmax() const