48 fENedges->Connect(
"ValueSet(Long_t)",
"TGeoPgonEditor",
this,
"DoNedges()");
49 fENedges->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoPgonEditor",
this,
"DoModified()");
76 const char *sname =
fShape->GetName();
77 if (!strcmp(sname,
fShape->ClassName()))
85 fENz->SetNumber(nsections);
121 if (nz !=
fShape->GetNz())
131 for (isect = 0; isect < nz; isect++) {
133 array[4 + 3 * isect] = sect->
GetZ();
134 array[5 + 3 * isect] = sect->
GetRmin();
135 array[6 + 3 * isect] = sect->
GetRmax();
144 fPad->GetView()->ShowAxis();
163 for (isect = 0; isect <
fNsections; isect++) {
175 fPad->GetView()->ShowAxis();
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
externTGeoManager * 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.
TGCompositeFrame(const TGCompositeFrame &)=delete
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.
A TGTextEntry is a one line text input widget.
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
ROOT GUI Window base class.
Bool_t fInit
init flag for setting signals/slots
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 CreateSections(Int_t inew)
Change dynamically the number of sections.
virtual void DoUndo()
Slot for undoing last operation.
void DoModified()
Slot for signaling modifications.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
Bool_t CheckSections(Bool_t change=kFALSE)
Check validity of sections.
TGCompositeFrame * fBFrame
TGCompositeFrame * fDFrame
TGeoPconEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for polycone editor.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void UpdateSections()
Update sections according fShape.
Utility frame used by TGeoPcon editor.
Double_t GetRmax() const
Rmax value getter.
Double_t GetZ() const
Z value getter.
Double_t GetRmin() const
Rmin value getter.
~TGeoPgonEditor() override
Destructor.
TGeoPgonEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for polygone editor.
void SetModel(TObject *obj) override
Connect to a given pgon.
void CreateEdges() override
Create number entry for Nedges.
void DoUndo() override
Slot for undoing last operation.
void DoNedges()
Change number of edges.
void DoApply() override
Slot for applying modifications.
void SetDimensions(Double_t *param) override
void ComputeBBox() override
void Draw(Option_t *option="") override
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.
Mother of all ROOT objects.
virtual TClass * IsA() const
virtual void SetRange(const Double_t *min, const Double_t *max)=0
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.