166 fENz->
Connect(
"ValueSet(Long_t)",
"TGeoPconEditor",
this,
"DoNz()");
167 fEPhi1->
Connect(
"ValueSet(Long_t)",
"TGeoPconEditor",
this,
"DoPhi()");
168 fEDPhi->
Connect(
"ValueSet(Long_t)",
"TGeoPconEditor",
this,
"DoPhi()");
169 fApply->
Connect(
"Clicked()",
"TGeoPconEditor",
this,
"DoApply()");
170 fUndo->
Connect(
"Clicked()",
"TGeoPconEditor",
this,
"DoUndo()");
171 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoPconEditor",
this,
"DoModified()");
181 if (obj == 0 || (obj->IsA() != TGeoPcon::Class())) {
223 sect->
Connect(
"Changed(Int_t)",
"TGeoPconEditor",
this,
"DoSectionChange(Int_t)");
254 if (isect && (sect->
GetZ()<zmin)) {
255 if (!change)
return kFALSE;
261 if (!change)
return kFALSE;
333 for (isect=0; isect<nz; isect++) {
335 array[3+3*isect] = sect->
GetZ();
336 array[4+3*isect] = sect->
GetRmin();
337 array[5+3*isect] = sect->
GetRmax();
393 if (sectlo && z<sectlo->GetZ()) {
397 if (secthi && z>secthi->GetZ()) {
535 Emit(
"Changed(Int_t)", i);
543 fEZ->
Connect(
"ValueSet(Long_t)",
"TGeoPconSection",
this,
"DoZ()");
544 fERmin->
Connect(
"ValueSet(Long_t)",
"TGeoPconSection",
this,
"DoRmin()");
545 fERmax->
Connect(
"ValueSet(Long_t)",
"TGeoPconSection",
this,
"DoRmax()");
ULong_t Pixel_t
Pixel value.
include TDocParser_001 C image html pict1_TDocParser_001 png width
R__EXTERN TGeoManager * gGeoManager
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
virtual void SetContainer(TGFrame *f)
TGFrame * GetContainer() const
virtual void MapSubwindows()
Map all canvas sub windows.
TGViewPort * GetViewPort() const
virtual void Layout()
Create layout for canvas.
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 void Layout()
Layout the elements of the composite frame.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
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.
virtual void MapWindow()
map window
virtual void UnmapWindow()
unmap window
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.
virtual Long_t GetIntNumber() const
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
virtual Double_t GetNumber() const
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
void SetNumStyle(EStyle style)
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 const Double_t * GetOrigin() const
virtual Double_t GetDX() const
virtual Double_t GetDZ() const
virtual Double_t GetDY() 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 ~TGeoPconEditor()
Destructor.
void CreateSections(Int_t inew)
Change dynamically the number of sections.
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 DoUndo()
Slot for undoing last operation.
void DoModified()
Slot for signaling modifications.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoNz()
Change number of sections.
void DoSectionChange(Int_t i)
Change parameters of section isect;.
Bool_t CheckSections(Bool_t change=kFALSE)
Check validity of sections.
TGCompositeFrame * fBFrame
void DoName()
Perform name change.
TGCompositeFrame * fDFrame
virtual void SetModel(TObject *obj)
Connect to a given pcon.
void DoPhi()
Change phi range.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoApply()
Slot for applying modifications.
void UpdateSections()
Update sections according fShape.
Utility frame used by TGeoPcon editor.
void SetZ(Double_t z)
Z value setter.
void SetRmin(Double_t rmin)
Rmin value setter.
void SetRmax(Double_t rmax)
Rmax value setter.
TGeoPconSection(const TGWindow *p, UInt_t w, UInt_t h, Int_t id)
Constructor.
void HideDaughters()
Hide daughter frames.
Double_t GetRmax() const
Rmax value getter.
virtual void Changed(Int_t i)
Emit Changed(Int_t) signal.
Double_t GetZ() const
Z value getter.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual ~TGeoPconSection()
Destructor.
Double_t GetRmin() const
Rmin value getter.
A polycone is represented by a sequence of tubes/cones, glued together at defined Z planes.
Double_t * GetRmax() const
virtual void SetDimensions(Double_t *param)
Set polycone dimensions starting from an array.
Double_t & Rmin(Int_t ipl)
Double_t & Rmax(Int_t ipl)
virtual void ComputeBBox()
compute bounding box of the pcon Check if the sections are in increasing Z order
Double_t * GetRmin() const
virtual const char * GetName() const
Get the shape name.
virtual void Draw(Option_t *option="")
Draw this shape.
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.
virtual TObject * RemoveAt(Int_t idx)
Remove object at index idx.
TObject * At(Int_t idx) const
Mother of all ROOT objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
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.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
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