172 fENz->
Connect(
"ValueSet(Long_t)",
"TGeoPconEditor",
this,
"DoNz()");
173 fEPhi1->
Connect(
"ValueSet(Long_t)",
"TGeoPconEditor",
this,
"DoPhi()");
174 fEDPhi->
Connect(
"ValueSet(Long_t)",
"TGeoPconEditor",
this,
"DoPhi()");
175 fApply->
Connect(
"Clicked()",
"TGeoPconEditor",
this,
"DoApply()");
176 fUndo->
Connect(
"Clicked()",
"TGeoPconEditor",
this,
"DoUndo()");
177 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoPconEditor",
this,
"DoModified()");
229 sect->
Connect(
"Changed(Int_t)",
"TGeoPconEditor",
this,
"DoSectionChange(Int_t)");
260 if (isect && (sect->
GetZ()<zmin)) {
261 if (!change)
return kFALSE;
267 if (!change)
return kFALSE;
339 for (isect=0; isect<nz; isect++) {
341 array[3+3*isect] = sect->
GetZ();
342 array[4+3*isect] = sect->
GetRmin();
343 array[5+3*isect] = sect->
GetRmax();
399 if (sectlo && z<sectlo->GetZ()) {
403 if (secthi && z>secthi->GetZ()) {
484 fEZ->Resize(40,fEZ->GetDefaultHeight());
487 fEZ->Associate(
this);
492 fERmin->Resize(40,fERmin->GetDefaultHeight());
495 fERmin->Associate(
this);
500 fERmax->Resize(40,fERmax->GetDefaultHeight());
503 fERmax->Associate(
this);
525 fERmin->UnmapWindow();
526 fERmax->UnmapWindow();
534 Emit(
"Changed(Int_t)", i);
542 fEZ->Connect(
"ValueSet(Long_t)",
"TGeoPconSection",
this,
"DoZ()");
543 fERmin->Connect(
"ValueSet(Long_t)",
"TGeoPconSection",
this,
"DoRmin()");
544 fERmax->Connect(
"ValueSet(Long_t)",
"TGeoPconSection",
this,
"DoRmax()");
552 return fEZ->GetNumber();
560 return fERmin->GetNumber();
568 return fERmax->GetNumber();
584 fERmin->SetNumber(rmin);
592 fERmax->SetNumber(rmax);
608 Double_t rmin = fERmin->GetNumber();
609 Double_t rmax = fERmax->GetNumber();
610 if (rmin>rmax-1.
e-8) fERmin->SetNumber(rmax);
619 Double_t rmin = fERmin->GetNumber();
620 Double_t rmax = fERmax->GetNumber();
621 if (rmax<rmin+1.
e-8) fERmax->SetNumber(rmin);
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void SetDimensions(Double_t *param)
Set polycone dimensions starting from an array.
virtual Double_t GetDX() const
virtual ~TGeoPconEditor()
Destructor.
virtual void SetModel(TObject *obj)
Connect to a given pcon.
virtual ~TGeoPconSection()
Destructor.
TVirtualGeoPainter * GetPainter() const
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void SetName(const char *name)
Set the name of the TNamed.
TGeoPconEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for polycone editor.
virtual void SetNumber(Double_t val)
virtual void SetContainer(TGFrame *f)
virtual void SetRange(const Double_t *min, const Double_t *max)=0
Double_t & Rmin(Int_t ipl)
virtual Bool_t IsPaintingShape() const =0
void DoSectionChange(Int_t i)
Change parameters of section isect;.
void CreateSections(Int_t inew)
Change dynamically the number of sections.
TGCompositeFrame * fBFrame
virtual Bool_t IsComposite() const
TGFrame * GetContainer() const
TObject * At(Int_t idx) const
virtual void Layout()
Layout the elements of the composite frame.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hirarchically all daughters of a composite frame.
virtual void DoUndo()
Slot for undoing last operation.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
Double_t GetRmin() const
Rmin value getter.
virtual Long_t GetIntNumber() const
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
TGCompositeFrame(const TGCompositeFrame &)
void DoNz()
Change number of sections.
virtual TList * GetList() const
TGViewPort * GetViewPort() const
void SetRmax(Double_t rmax)
Rmax value setter.
void Emit(const char *signal)
Acitvate signal without args.
virtual TView * GetView() const =0
Bool_t CheckSections(Bool_t change=kFALSE)
Check validity of sections.
virtual const char * GetName() const
Get the shape name.
Double_t * GetRmax() 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 Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
Double_t * GetRmin() const
void SetZ(Double_t z)
Z value setter.
void HideDaughters()
Hide daughter frames.
virtual void SetSize(const TGDimension &s)
virtual void MapSubwindows()
Map all canvas sub windows.
void SetNumStyle(EStyle style)
virtual TObject * RemoveAt(Int_t idx)
Remove object at index idx.
void DoName()
Perform name change.
Double_t GetRmax() const
Rmax value getter.
virtual void ComputeBBox()
compute bounding box of the pcon Check if the sections are in increasing Z order
virtual const Double_t * GetOrigin() const
void UpdateSections()
Update sections according fShape.
virtual void ShowAxis()=0
virtual Double_t GetDY() const
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoPhi()
Change phi range.
TGDimension GetSize() const
const char * GetText() const
virtual UInt_t GetDefaultHeight() const
R__EXTERN TGeoManager * gGeoManager
virtual Double_t GetNumber() const
virtual void ConnectSignals2Slots()
Connect signals to slots.
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.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
virtual void Layout()
Create layout for canvas.
TGNumberEntryField * GetNumberEntry() const
void SetRmin(Double_t rmin)
Rmin value setter.
virtual void Update()
Override Update from TGedFrame as fGedEditor can be null.
void DoModified()
Slot for signaling modifications.
Double_t & Rmax(Int_t ipl)
Double_t GetZ() const
Z value getter.
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 DoApply()
Slot for applying modifications.
TGCompositeFrame * fDFrame
virtual void MakeTitle(const char *title)
Create attribute frame title.
UInt_t GetDefaultHeight() const
virtual void Changed(Int_t i)
Emit Changed(Int_t) signal.
virtual Double_t GetDZ() const