101 gClient->GetColorByName(
"#ff0000", color);
113 gClient->GetColorByName(
"#ff0000", color);
119 gClient->GetColorByName(
"#0000ff", color);
137 gClient->GetColorByName(
"#0000ff", color);
161 gClient->GetColorByName(
"#ff0000", color);
187 gClient->GetColorByName(
"#ff0000", color);
195 gClient->GetColorByName(
"#0000ff", color);
209 gClient->GetColorByName(
"#0000ff", color);
295 gClient->GetColorByName(
"#ff0000", color);
404 fVolumeName->
Connect(
"TextChanged(const char *)",
"TGeoVolumeEditor",
this,
"DoVolumeName()");
405 fDivName->
Connect(
"TextChanged(const char *)",
"TGeoVolumeEditor",
this,
"DoDivName()");
409 fAddNode->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoAddNode()");
415 fBVis[0]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoVisVolume()");
416 fBVis[1]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoVisDaughters()");
417 fBAuto->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoVisAuto()");
418 fEVisLevel->
Connect(
"ValueSet(Long_t)",
"TGeoVolumeEditor",
this,
"DoVisLevel()");
419 fBView[0]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoViewAll()");
420 fBView[1]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoViewLeaves()");
421 fBView[2]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoViewOnly()");
422 fBDiv[0]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoDivSelAxis()");
423 fBDiv[1]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoDivSelAxis()");
424 fBDiv[2]->
Connect(
"Clicked()",
"TGeoVolumeEditor",
this,
"DoDivSelAxis()");
425 fEDivFrom->
Connect(
"ValueSet(Long_t)",
"TGeoVolumeEditor",
this,
"DoDivFromTo()");
426 fEDivStep->
Connect(
"ValueSet(Long_t)",
"TGeoVolumeEditor",
this,
"DoDivStep()");
427 fEDivN->
Connect(
"ValueSet(Long_t)",
"TGeoVolumeEditor",
this,
"DoDivN()");
483 Double_t start=0., step=0., end = 0.;
484 Int_t ndiv = 2, iaxis = 1;
486 for (
Int_t i=0; i<3; i++) {
539 else fSelectedShape = shape;
551 else fSelectedMedium = med;
563 else fSelectedMatrix = matrix;
575 else fSelectedVolume = vol;
654 Int_t ndiv = 2, iaxis = 1;
782 for (
Int_t i=0; i<3; i++) {
811 for (
Int_t i=0; i<3; i++) {
833 max = min + ndiv*step;
836 step = (max-
min)/ndiv;
853 for (
Int_t i=0; i<3; i++) {
871 max = min + ndiv*step;
880 step = (max-
min)/ndiv;
896 for (
Int_t i=0; i<3; i++) {
919 max = min + ndiv*step;
926 ndiv = (
Int_t)((max-min)/step);
939 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.
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
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.
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)
Change (i.e.
void DoSelectShape()
Select a new shape.
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 hirarchically 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
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
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.
const TGWindow * GetParent() const
void DoSelectMedium()
Select a new medium.
Bool_t IsVisLeaves() const
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
virtual Int_t GetNumberOfEntries() const
virtual Int_t GetDivAxis()
TGCheckButton * fBRaytrace
TGNumberEntry * fCopyNumber
Mother of all ROOT objects.
TGRadioButton * fBView[3]
void SetVisLevel(Int_t level=3)
set default level down to which visualization is performed
virtual Int_t GetSelected() const
TGNumberEntryField * GetNumberEntry() const
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.
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.