TEveManager, TGListTree & TEveListTreeItem

Hi Bon,

TEveElement has two separate visibility flags: SetRnrSelf(bool) and SetRnrChildren(bool). When clikcing on the check-box in the list-tree, both get flipped. By clicking on the element, you can set them individually in the object editor below.

Now, a child element is only drawn if:
a) it’s parent has RnrChildren set to true AND
b) the element has RnrSelf set to true.

So, what you want happens implicitly, just the check-boxes of children don’t show the state as you expect it.

SetRnrXyzz() functions are virtual in TEveElement – so if you are trying to do that for your own sub-class, you can override it there. Note that you will then have to recurse through all the structure.
What do you expect to happen when you turn the parent back on? To also show all the children? This is the tricky part … as you will lose the state of children if you do what you propose.

About the cast – it seems it goes wrong somewhere. Can you try with reinterpret_cast or plain C-style cast?

Cheers,
Matevz