Skip to content

Commit 99f2ef9

Browse files
committed
Add 'count' in list of draw options
1 parent 6debb57 commit 99f2ef9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/JSRootGeoPainter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,10 +967,10 @@
967967

968968
var cnt = this.CountVolumes(this._geometry, 0, arr);
969969

970-
var res = 'Counting elements = ' + cnt + '<br/>';
970+
var res = 'Total number: ' + cnt + '<br/>';
971971
for (var lvl=0;lvl<arr.length;++lvl) {
972972
if (arr[lvl] !== 0)
973-
res += (' lvl' + lvl + ' = ' + arr[lvl] + '<br/>');
973+
res += (' lvl' + lvl + ': ' + arr[lvl] + '<br/>');
974974
}
975975

976976
dom.innerHTML = res;
@@ -1419,7 +1419,7 @@
14191419
return true;
14201420
}
14211421

1422-
JSROOT.addDrawFunc({ name: "TGeoVolumeAssembly", icon: 'img_geoassembly', func: JSROOT.Painter.drawGeometry, expand: "JSROOT.expandGeoVolume", painter_kind : "base" });
1422+
JSROOT.addDrawFunc({ name: "TGeoVolumeAssembly", icon: 'img_geoassembly', func: JSROOT.Painter.drawGeometry, expand: "JSROOT.expandGeoVolume", painter_kind : "base", opt : "all;count;" });
14231423

14241424

14251425
return JSROOT.Painter;

scripts/JSRootPainter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8314,8 +8314,8 @@
83148314
JSROOT.addDrawFunc({ name: "TLine", icon: 'img_graph', prereq: "more2d", func: "JSROOT.Painter.drawLine" });
83158315
JSROOT.addDrawFunc({ name: "TArrow", icon: 'img_graph', prereq: "more2d", func: "JSROOT.Painter.drawArrow" });
83168316
JSROOT.addDrawFunc({ name: "TLegend", icon: "img_pavelabel", prereq: "more2d", func: "JSROOT.Painter.drawLegend" });
8317-
JSROOT.addDrawFunc({ name: "TGeoVolume", icon: 'img_histo3d', prereq: "geom", func: "JSROOT.Painter.drawGeometry", expand: "JSROOT.expandGeoVolume", painter_kind : "base", opt:"all;" });
8318-
JSROOT.addDrawFunc({ name: "TEveGeoShapeExtract", icon: 'img_histo3d', prereq: "geom", func: "JSROOT.Painter.drawGeometry", painter_kind : "base" });
8317+
JSROOT.addDrawFunc({ name: "TGeoVolume", icon: 'img_histo3d', prereq: "geom", func: "JSROOT.Painter.drawGeometry", expand: "JSROOT.expandGeoVolume", painter_kind : "base", opt:"all;count;" });
8318+
JSROOT.addDrawFunc({ name: "TEveGeoShapeExtract", icon: 'img_histo3d', prereq: "geom", func: "JSROOT.Painter.drawGeometry", painter_kind : "base", opt: ";count" });
83198319
JSROOT.addDrawFunc({ name: "TGeoManager", icon: 'img_histo3d', prereq: "geom", expand: "JSROOT.expandGeoManagerHierarchy" });
83208320
// these are not draw functions, but provide extra info about correspondent classes
83218321
JSROOT.addDrawFunc({ name: "kind:Command", icon: "img_execute", execute: true });

0 commit comments

Comments
 (0)