56 fShapeName->SetToolTipText(
"Enter the box name");
150 fUndo->Associate(
this);
174 fApply->Connect(
"Clicked()",
"TGeoBBoxEditor",
this,
"DoApply()");
175 fUndo->Connect(
"Clicked()",
"TGeoBBoxEditor",
this,
"DoUndo()");
176 fShapeName->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
177 fBoxDx->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoDx()");
178 fBoxDy->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoDy()");
179 fBoxDz->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoDz()");
180 fBoxDx->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
181 fBoxDy->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
182 fBoxDz->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
183 fBoxOx->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoOx()");
184 fBoxOy->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoOy()");
185 fBoxOz->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoOz()");
186 fBoxOx->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
187 fBoxOy->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
188 fBoxOz->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
206 const char *sname =
fShape->GetName();
207 if (!strcmp(sname,
fShape->ClassName()))
255 orig[0] =
fBoxOx->GetNumber();
256 orig[1] =
fBoxOy->GetNumber();
257 orig[2] =
fBoxOz->GetNumber();
258 fShape->SetBoxDimensions(dx, dy, dz, orig);
266 fPad->GetView()->ShowAxis();
270 origin[0] +
fShape->GetDX(), origin[1] +
fShape->GetDY(), origin[2] +
fShape->GetDZ());
ULong_t Pixel_t
Pixel value.
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
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
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
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 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.
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
virtual void MakeTitle(const char *title)
Create attribute frame title.
void DoDy()
Slot for Dy modification.
void SetModel(TObject *obj) override
Update editor for a new selected box.
void DoApply()
Slot for applying current parameters.
TGeoBBoxEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for volume editor.
void DoDz()
Slot for Dz modification.
void DoOz()
Slot for Oz modification.
void DoUndo()
Slot for undoing last operation.
void DoDx()
Slot for Dx modification.
void DoName()
Slot for name.
void DoModified()
Slot for modifying current parameters.
void DoOx()
Slot for Ox modification.
void DoOy()
Slot for Oy modification.
~TGeoBBoxEditor() override
Destructor.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void Update() override
Override Update from TGedFrame as fGedEditor can be null.
TGeoGedFrame(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
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