55 fShapeName->SetToolTipText(
"Enter the box name");
149 fUndo->Associate(
this);
173 fApply->Connect(
"Clicked()",
"TGeoBBoxEditor",
this,
"DoApply()");
174 fUndo->Connect(
"Clicked()",
"TGeoBBoxEditor",
this,
"DoUndo()");
175 fShapeName->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
176 fBoxDx->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoDx()");
177 fBoxDy->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoDy()");
178 fBoxDz->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoDz()");
179 fBoxDx->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
180 fBoxDy->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
181 fBoxDz->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
182 fBoxOx->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoOx()");
183 fBoxOy->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoOy()");
184 fBoxOz->Connect(
"ValueSet(Long_t)",
"TGeoBBoxEditor",
this,
"DoOz()");
185 fBoxOx->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
186 fBoxOy->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
187 fBoxOz->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoBBoxEditor",
this,
"DoModified()");
205 const char *sname =
fShape->GetName();
206 if (!strcmp(sname,
fShape->ClassName()))
254 orig[0] =
fBoxOx->GetNumber();
255 orig[1] =
fBoxOy->GetNumber();
256 orig[2] =
fBoxOz->GetNumber();
257 fShape->SetBoxDimensions(dx, dy, dz, orig);
265 fPad->GetView()->ShowAxis();
269 origin[0] +
fShape->GetDX(), origin[1] +
fShape->GetDY(), origin[2] +
fShape->GetDZ());
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
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