58 fNodeName->SetToolTipText(
"Enter the node name");
74 gClient->GetColorByName(
"#0000ff", color);
79 fBSelMother->SetToolTipText(
"Select one of the existing volumes");
92 gClient->GetColorByName(
"#0000ff", color);
97 fBSelVolume->SetToolTipText(
"Select one of the existing volumes");
110 gClient->GetColorByName(
"#0000ff", color);
115 fBSelMatrix->SetToolTipText(
"Select one of the existing matrices");
130 fUndo->Associate(
this);
154 fBSelMother->Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoSelectMother()");
155 fBSelVolume->Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoSelectVolume()");
156 fBSelMatrix->Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoSelectMatrix()");
157 fApply->Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoApply()");
158 fUndo->Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoUndo()");
159 fEditMother->Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoEditMother()");
160 fEditVolume->Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoEditVolume()");
161 fEditMatrix->Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoEditMatrix()");
162 fNodeName->Connect(
"TextChanged(const char *)",
"TGeoNodeEditor",
this,
"DoNodeName()");
176 const char *sname =
fNode->GetName();
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
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.
TGClient * fClient
Connection to display server.
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.
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.
Geometrical transformation package.
void DoNodeNumber()
Change node copy number.
TGNumberEntry * fNodeNumber
void DoSelectMatrix()
Select the matrix.
void DoEditMother()
Edit the mother volume.
TGTextButton * fEditMatrix
~TGeoNodeEditor() override
Destructor.
void DoEditMatrix()
Edit selected material.
void DoSelectMother()
Select the mother volume.
TGTextButton * fEditVolume
void DoUndo()
Slot for undoing last operation.
TGTextButton * fEditMother
TGPictureButton * fBSelMatrix
void DoEditVolume()
Edit selected volume.
TGeoNodeEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for node editor.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGeoVolume * fSelectedMother
void DoApply()
Slot for applying modifications.
TGeoVolume * fSelectedVolume
void SetModel(TObject *obj) override
Connect to a editable object.
TGPictureButton * fBSelMother
void DoSelectVolume()
Select the volume.
TGPictureButton * fBSelVolume
TGeoMatrix * fSelectedMatrix
void DoNodeName()
Change node name.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
static TObject * GetSelected()
static; return selected object
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".