73 gClient->GetColorByName(
"#0000ff", color);
91 gClient->GetColorByName(
"#0000ff", color);
109 gClient->GetColorByName(
"#0000ff", color);
156 fApply->
Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoApply()");
157 fUndo->
Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoUndo()");
161 fNodeName->
Connect(
"TextChanged(const char *)",
"TGeoNodeEditor",
this,
"DoNodeName()");
204 else fSelectedMother = vol;
216 else fSelectedVolume = vol;
228 else fSelectedMatrix = matrix;
276 if (!name[0] || !strcmp(name,
fNode->
GetName()))
return;
virtual const char * GetName() const
Returns name of object.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
TGPictureButton * fBSelMatrix
TGeoVolume * fSelectedMother
TGTextButton * fEditVolume
void SetTab()
Set a given tab element as active one.
TGPictureButton * fBSelMother
TGeoVolume * fSelectedVolume
Geometrical transformation package.
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
TGeoMatrix * fSelectedMatrix
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void SetName(const char *name)
Set the name of the TNamed.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual void SetNumber(Double_t val)
virtual void Draw(Option_t *option="")
draw top volume according to option
void DoEditMother()
Edit the mother volume.
void DoNodeNumber()
Change node copy number.
virtual Bool_t IsComposite() const
TGTextButton * fEditMother
virtual void SetModel(TObject *obj)
Connect to a editable object.
void SetVolTabEnabled(Bool_t flag=kTRUE)
Enable/disable tabs.
TGeoVolume * GetMotherVolume() const
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hirarchically all daughters of a composite frame.
void DoSelectMother()
Select the mother volume.
virtual void SetText(TGString *newText)
Set new text in label.
TGTextButton * fEditMatrix
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
void DoEditMatrix()
Edit selected material.
TGCompositeFrame(const TGCompositeFrame &)
virtual TList * GetList() const
virtual TGeoMatrix * GetMatrix() const =0
void DoSelectMatrix()
Select the matrix.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGPictureButton * fBSelVolume
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...
virtual void Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
virtual void SetSize(const TGDimension &s)
virtual ~TGeoNodeEditor()
Destructor.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
void GetVolumeEditor(TGeoVolume *vol)
Get editor for a volume.
static TObject * GetSelected()
static; return selected object
TGDimension GetSize() const
void DoUndo()
Slot for undoing last operation.
const char * GetText() const
virtual UInt_t GetDefaultHeight() const
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
void DoSelectVolume()
Select the volume.
TGeoNodeEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for node editor.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Mother of all ROOT objects.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
TGNumberEntryField * GetNumberEntry() const
void DoEditVolume()
Edit selected volume.
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...
void DoNodeName()
Change node name.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
TGNumberEntry * fNodeNumber
virtual void MakeTitle(const char *title)
Create attribute frame title.
void GetMatrixEditor(TGeoMatrix *matrix)
Get editor for a matrix.
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
TGeoVolume * GetVolume() const
void DoApply()
Slot for applying modifications.