64 kVOL_NAME, kVOL_TITLE, kVOL_SHAPE_SELECT, kVOL_MEDIA_SELECT, kVOL_NODE_SELECT,
65 kVOL_VOL_SELECT, kVOL_MATRIX_SELECT, kVOL_EDIT_SHAPE, kVOL_EDIT_MEDIUM, kVOL_NODEID,
66 kVOL_APPLY, kVOL_CANCEL, kVOL_UNDO, kVOL_VISLEVEL, kVOL_DIVSTART, kVOL_DIVEND,
67 kVOL_DIVSTEP, kVOL_DIVN, kCAT_GENERAL, kCAT_DAUGHTERS, kCAT_DIVISION, kCAT_VIS,
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()");
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++) {
Bool_t IsVisLeaves() const
void SetTopVisible(Bool_t vis=kTRUE)
make top volume visible on screen
TGeoVolume * fSelectedVolume
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.
Double_t GetStart() const
Bool_t IsVisibleDaughters() const
TGCompositeFrame * GetVolumeTab() const
virtual ~TGeoVolumeEditor()
Destructor.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
void DoRaytrace()
Slot for raytracing.
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
Bool_t IsRaytracing() const
Check if the painter is currently ray-tracing the content of this volume.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void SetFinder(TGeoPatternFinder *finder)
TGeoVolume * GetVolume() const
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
const TGWindow * GetParent() const
void DoDivSelAxis()
Change division axis and preserve number of slices.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
virtual void Clear(Option_t *option="")
Remove all objects from the array.
TGeoPatternFinder * GetFinder() const
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.
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)
ClassImp(TGeoVolumeEditor) enum ETGeoVolumeWid
TGeoMatrix * fSelectedMatrix
TGNumberEntry * fEVisLevel
void DoAddNode()
Add a daughter.
void VisibleDaughters(Bool_t vis=kTRUE)
set visibility for daughters
virtual Int_t GetNumberOfEntries() 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.
virtual void Layout()
Layout the elements of the composite frame.
Int_t GetNdaughters() const
void DoDivName()
Modify division name.
void Raytrace(Bool_t flag=kTRUE)
Draw this volume with current settings and perform raytracing in the pad.
TGTextButton * fEditMedium
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
virtual void SetModel(TObject *obj)
Connect to the picked volume.
virtual void SetVisLeaves(Bool_t flag=kTRUE)
Set visibility for leaves.
TGNumberEntryField * GetNumberEntry() const
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
TGTextButton * fEditMatrix
virtual void SetText(TGString *newText)
Set new text in label.
TGButton * GetButton() const
TGTextEntry * fVolumeName
Int_t GetVisLevel() const
Returns current depth to which geometry is drawn.
void GetMediumEditor(TGeoMedium *medium)
Get editor for a medium.
const char * GetText() const
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 &)
void DoApplyDiv()
Apply current division settings.
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.
virtual Int_t GetSelected() const
TGFrame * GetContainer() const
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)
virtual Bool_t IsAssembly() const
Returns true if the volume is an assembly or a scaled assembly.
virtual UInt_t GetDefaultHeight() const
void DoViewOnly()
Slot for viewing volume only.
TGeoManager * GetGeoManager() const
virtual const char * GetName() const
Returns name of object.
The ROOT global object gROOT contains a list of all defined classes.
void DoEditMatrix()
Edit the position of the selected node.
TGeoNode * GetNode(const char *name) const
get the pointer to a daughter node
virtual const char * GetName() const
Get the shape name.
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.
TGPictureButton * fBSelMatrix
TGeoShape * GetShape() const
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
Bool_t IsVisContainers() 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.
static TObject * GetSelected()
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.
void DoSelectMedium()
Select a new medium.
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
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 UInt_t GetDefaultHeight() const
TGeoMedium * GetMedium() const
virtual Bool_t IsVisible() 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
ClassImp(TSlaveInfo) Int_t TSlaveInfo const TSlaveInfo * si
Used to sort slaveinfos by ordinal.
virtual Long_t GetIntNumber() const
virtual Double_t GetNumber() const
void DoDivFromTo()
Handle division range modification.
void DoEditShape()
Edit the shape of the volume.
UInt_t GetDefaultHeight() const
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...
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
TGNumberEntry * fEDivFrom
void DoSelectVolume()
Select a daughter volume.
Int_t GetState(TGFrame *f) const
Get state of sub frame.
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.