47 fVizVolumeDaughters(0)
57 "TEveGeoNodeEditor",
this,
"DoVizNode()");
59 fVizNodeDaughters =
new TGCheckButton(
this,
"VizNodeDaughters");
61 fVizNodeDaughters->Connect
63 "TEveGeoNodeEditor",
this,
"DoVizNodeDaughters()");
69 "TEveGeoNodeEditor",
this,
"DoVizVolume()");
71 fVizVolumeDaughters =
new TGCheckButton(
this,
"VizVolumeDaughters");
73 fVizVolumeDaughters->Connect
75 "TEveGeoNodeEditor",
this,
"DoVizVolumeDaughters()");
154 fVisOption->SetLabelWidth(labelW);
155 fVisOption->SetShowSlider(
kFALSE);
156 fVisOption->SetNELength(4);
159 fVisOption->SetToolTip(
"Visualization option passed to TGeoPainter.");
160 fVisOption->Connect(
"ValueSet(Double_t)",
"TEveGeoTopNodeEditor",
this,
"DoVisOption()");
164 fVisLevel->SetLabelWidth(labelW);
165 fVisLevel->SetShowSlider(
kFALSE);
166 fVisLevel->SetNELength(4);
169 fVisLevel->SetToolTip(
"Level (depth) to which the geometry is traversed.\nWhen zero, maximum number of nodes to draw can be specified.");
170 fVisLevel->Connect(
"ValueSet(Double_t)",
"TEveGeoTopNodeEditor",
this,
"DoVisLevel()");
174 fMaxVisNodes->SetLabelWidth(labelW);
175 fMaxVisNodes->SetShowSlider(
kFALSE);
176 fMaxVisNodes->SetNELength(6);
177 fMaxVisNodes->Build();
179 fMaxVisNodes->SetToolTip(
"Maximum number of nodes to draw.");
180 fMaxVisNodes->Connect(
"ValueSet(Double_t)",
"TEveGeoTopNodeEditor",
this,
"DoMaxVisNodes()");
191 fVisOption ->SetValue(fTopNodeRE->GetVisOption());
192 fVisLevel ->SetValue(fTopNodeRE->GetVisLevel());
193 fMaxVisNodes->SetValue(fTopNodeRE->GetMaxVisNodes());
194 if (fTopNodeRE->GetVisLevel() > 0)
195 fMaxVisNodes->UnmapWindow();
197 fMaxVisNodes->MapWindow();
205 fTopNodeRE->SetVisOption(
Int_t(fVisOption->GetValue()));
214 fTopNodeRE->SetVisLevel(
Int_t(fVisLevel->GetValue()));
223 fTopNodeRE->SetMaxVisNodes(
Int_t(fMaxVisNodes->GetValue()));
virtual void SetModel(TObject *obj)
Set model object.
void DoMaxVisNodes()
Slot for MaxVisNodes.
TGCheckButton * fVizNodeDaughters
void DoVisLevel()
Slot for VisLevel.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
void DoVisOption()
Slot for VisOption.
void VisibleDaughters(Bool_t vis=kTRUE)
set visibility for daughters
Wrapper for TGeoNode that allows it to be shown in GUI and controlled as a TEveElement.
void DoVizVolumeDaughters()
Slot for VizVolumeDaughters.
Composite GUI element for single value selection (supports label, number-entry and slider)...
virtual void Update()
Update the current pad when an attribute is changed via GUI.
virtual Bool_t IsVisible() const
void DoVizNode()
Slot for VizNode.
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement...
TGCheckButton * fVizVolume
virtual Bool_t SetRnrSelf(Bool_t rnr)
Set render state of this element, i.e.
virtual void SetVisibility(Bool_t vis=kTRUE)
set visibility of this volume
virtual Bool_t SetRnrChildren(Bool_t rnr)
Set render state of this element's children, i.e.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
std::string MakeTitle(std::string_view version, std::string_view histname, std::string_view title, std::string_view axis)
Mother of all ROOT objects.
void DoVizNodeDaughters()
Slot for VizNodeDaughters.
Editor for TEveGeoNode class.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
Bool_t IsVisDaughters() const
void DoVizVolume()
Slot for VizVolume.
TGCheckButton * fVizVolumeDaughters
virtual void MakeTitle(const char *title)
Create attribute frame title.
Editor for TEveGeoTopNode class.
TGeoVolume * GetVolume() const
virtual void SetModel(TObject *obj)
Set model object.