100 gClient->GetColorByName(
"#ff0000", color);
112 gClient->GetColorByName(
"#ff0000", color);
118 gClient->GetColorByName(
"#0000ff", color);
136 gClient->GetColorByName(
"#0000ff", color);
160 gClient->GetColorByName(
"#ff0000", color);
186 gClient->GetColorByName(
"#ff0000", color);
194 gClient->GetColorByName(
"#0000ff", color);
208 gClient->GetColorByName(
"#0000ff", color);
294 gClient->GetColorByName(
"#ff0000", color);
403 fVolumeName->
Connect(
"TextChanged(const char *)",
"TGeoVolumeEditor",
this,
"DoVolumeName()");
404 fDivName->
Connect(
"TextChanged(const char *)",
"TGeoVolumeEditor",
this,
"DoDivName()");
408 fAddNode->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoAddNode()");
414 fBVis[0]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoVisVolume()");
415 fBVis[1]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoVisDaughters()");
416 fBAuto->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoVisAuto()");
417 fEVisLevel->
Connect(
"ValueSet(Long_t)",
"TGeoVolumeEditor",
this,
"DoVisLevel()");
418 fBView[0]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoViewAll()");
419 fBView[1]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoViewLeaves()");
420 fBView[2]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoViewOnly()");
421 fBDiv[0]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoDivSelAxis()");
422 fBDiv[1]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoDivSelAxis()");
423 fBDiv[2]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoDivSelAxis()");
424 fEDivFrom->
Connect(
"ValueSet(Long_t)",
"TGeoVolumeEditor",
this,
"DoDivFromTo()");
425 fEDivStep->
Connect(
"ValueSet(Long_t)",
"TGeoVolumeEditor",
this,
"DoDivStep()");
426 fEDivN->
Connect(
"ValueSet(Long_t)",
"TGeoVolumeEditor",
this,
"DoDivN()");
482 Double_t start=0., step=0., end = 0.;
483 Int_t ndiv = 2, iaxis = 1;
485 for (
Int_t i=0; i<3; i++) {
538 else fSelectedShape = shape;
550 else fSelectedMedium = med;
562 else fSelectedMatrix = matrix;
574 else fSelectedVolume = vol;
653 Int_t ndiv = 2, iaxis = 1;
781 for (
Int_t i=0; i<3; i++) {
810 for (
Int_t i=0; i<3; i++) {
832 max = min + ndiv*step;
835 step = (max-min)/ndiv;
852 for (
Int_t i=0; i<3; i++) {
870 max = min + ndiv*step;
879 step = (max-min)/ndiv;
895 for (
Int_t i=0; i<3; i++) {
918 max = min + ndiv*step;
925 ndiv = (
Int_t)((max-min)/step);
938 for (
Int_t i=0; i<3; i++) {
void SetTopVisible(Bool_t vis=kTRUE)
make top volume visible on screen
TGeoVolume * fSelectedVolume
virtual const char * GetName() const
Returns name of object.
virtual void SetDefaultSize(UInt_t w, UInt_t h)
Set the default / minimal size of the widget.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
void DoDivN()
Handle division N modification.
TGeoMedium * fSelectedMedium
void DoRemoveNode()
Remove a daughter.
virtual ~TGeoVolumeEditor()
Destructor.
Int_t GetState(TGFrame *f) const
Get state of sub frame.
void DoRaytrace()
Slot for raytracing.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void SetFinder(TGeoPatternFinder *finder)
void DoDivSelAxis()
Change division axis and preserve number of slices.
virtual void Clear(Option_t *option="")
Remove all objects from the array.
Geometrical transformation package.
virtual void Delete(Option_t *option="")
Remove all objects from the array AND delete all heap based objects.
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
TGeoNode * GetNode(const char *name) const
get the pointer to a daughter node
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
void DoSelectMatrix()
Select a matrix for positioning.
virtual void SetName(const char *name)
Set the name of the TNamed.
void DoSelectShape()
Select a new shape.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
void DoVisAuto()
Slot for setting visibility depth auto.
virtual void SetNumber(Double_t val)
TGeoMatrix * fSelectedMatrix
TGNumberEntry * fEVisLevel
void DoAddNode()
Add a daughter.
void VisibleDaughters(Bool_t vis=kTRUE)
set visibility for daughters
virtual UInt_t GetDefaultHeight() const
void DoVolumeName()
Modify volume name.
void RemoveNode(TGeoNode *node)
Remove an existing daughter.
void ExcludeClassEditor(TClass *cl, Bool_t recurse=kFALSE)
Exclude editor for class cl from current construction.
void DoEditMedium()
Edit the medium of the volume.
void DoViewLeaves()
Slot for viewing last leaves only.
Bool_t IsVisibleDaughters() const
Bool_t IsVisContainers() const
Int_t GetVisLevel() const
Returns current depth to which geometry is drawn.
virtual void Layout()
Layout the elements of the composite frame.
void DoDivName()
Modify division name.
void Raytrace(Bool_t flag=kTRUE)
Draw this volume with current settings and perform raytracing in the pad.
Bool_t IsRaytracing() const
Check if the painter is currently ray-tracing the content of this volume.
TGTextButton * fEditMedium
Int_t GetNdaughters() const
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
virtual void AddItem(TGShutterItem *item)
Add shutter item to shutter frame.
TGNumberEntry * fEDivStep
TGeoPatternFinder * GetFinder() const
virtual void SetModel(TObject *obj)
Connect to the picked volume.
virtual void SetVisLeaves(Bool_t flag=kTRUE)
Set visibility for leaves.
TGFrame * GetContainer() const
virtual Long_t GetIntNumber() const
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
TGTextButton * fEditMatrix
virtual void SetText(TGString *newText)
Set new text in label.
TGTextEntry * fVolumeName
void GetMediumEditor(TGeoMedium *medium)
Get editor for a medium.
void DoVisDaughters()
Slot for setting daughters visible/invisible.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
TGCompositeFrame(const TGCompositeFrame &)
TGeoMedium * GetMedium() const
void DoApplyDiv()
Apply current division settings.
virtual Bool_t IsVisible() const
TGShutterItem * GetItem(const char *name)
returns a shutter item by name (name is hot string of shutter item)
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
virtual TGeoMatrix * GetMatrix() const =0
TGeoVolumeEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for volume editor.
void DoVisLevel()
Slot for visibility level.
void DoVisVolume()
Slot for setting volume visible/invisible.
virtual void SetDefaultSize(UInt_t w, UInt_t h)
Set the default / minimal size of the widget.
virtual TGeoVolume * Divide(const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step, Int_t numed=0, Option_t *option="")
Division a la G3.
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
TGCompositeFrame * GetVolumeTab() const
Base finder class for patterns.
virtual const char * GetName() const
Get the shape name.
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.
TGPictureButton * fBSelShape
Base abstract class for all shapes.
virtual UInt_t GetDefaultWidth() const
void SetNumStyle(EStyle style)
Double_t GetStart() const
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void DoViewOnly()
Slot for viewing volume only.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
The ROOT global object gROOT contains a list of all defined classes.
void DoEditMatrix()
Edit the position of the selected node.
static TObject * GetSelected()
static; return selected object
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
virtual const char * GetAxisName(Int_t iaxis) const =0
virtual void SetText(TGHotString *new_label)
Set new button text.
virtual void Layout()
Layout shutter items.
const char * GetText() const
virtual UInt_t GetDefaultHeight() const
TGPictureButton * fBSelMatrix
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual void AddEntry(TGString *s, Int_t id)
virtual void SetVisibility(Bool_t vis=kTRUE)
set visibility of this volume
virtual Double_t GetNumber() const
TGTextButton * fRemoveNode
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
virtual void ActivateBaseClassEditors(TClass *cl)
Add editors to fGedFrame and exclude TLineEditor.
virtual void SetVisContainers(Bool_t flag=kTRUE)
Set visibility for containers.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Media are used to store properties related to tracking and which are useful only when using geometry ...
const TGWindow * GetParent() const
void DoSelectMedium()
Select a new medium.
Bool_t IsVisLeaves() const
virtual Int_t GetNumberOfEntries() const
virtual Int_t GetDivAxis()
TGCheckButton * fBRaytrace
TGNumberEntry * fCopyNumber
Mother of all ROOT objects.
TGRadioButton * fBView[3]
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
void SetVisLevel(Int_t level=3)
set default level down to which visualization is performed
virtual Int_t GetSelected() const
TGNumberEntryField * GetNumberEntry() const
Editor for geometry volumes and assemblies of volumes.
virtual void Update()
Override Update from TGedFrame as fGedEditor can be null.
virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const =0
TGTextButton * fEditShape
TGButton * GetButton() const
TGeoManager * GetGeoManager() const
void DoDivFromTo()
Handle division range modification.
void DoEditShape()
Edit the shape of the 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...
TGeoShape * GetShape() const
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
void DoDivStep()
Handle division step modification.
TGPictureButton * fBSelVolume
void DoViewAll()
Slot for viewing volume and containers.
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.
TGPictureButton * fBSelMedium
TGeoVolume * GetVolume() const
TGNumberEntry * fEDivFrom
void DoSelectVolume()
Select a daughter volume.
UInt_t GetDefaultHeight() const
virtual void SetVisOnly(Bool_t flag=kTRUE)
Set visibility for leaves.
Common base class for geombuilder editors.
void GetShapeEditor(TGeoShape *shape)
Get editor for a shape.
TGeoShape * fSelectedShape
virtual void ActivateBaseClassEditors(TClass *cl)
Provide list of editors for base-classes.
virtual Bool_t IsAssembly() const
Returns true if the volume is an assembly or a scaled assembly.