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