TEveGeoTopNode color and transparency

Dear Root-onians,

after playing around several hours with the TEveGeoTopNode class, I have reached an impass:

I am trying to set the whole root geometry as it is contained in the top node to one color and transparency setting. However, anything I do on the top node leaves the rest untouched (which makes kind of sense). I can see in the geometry scene of Eve that there are TEveGeoNode objects for the sub-components somewhere, but I failed to gain access to them.

Has anybody an idea how to accomplish that?

Cheers,
eDude

Hi eDude,

TEveGeoTop node is just a wrapper over TGeo geometry, managed by TGeoManager. Color of nodes is determined by TGeoVolume’s line color (go figure). So, what you need to do:

  1. get list of volumes from gGeoManager
    root.cern.ch/root/htmldoc/TGeoMa … tOfVolumes

  2. iterate over that list and call volume->SetLineColor(color_index)

Let me know if you need more detailed help.

Best,
Matevz