Hi Robert,

Please find attached a modified version of osg/NodeVisitor from trunk.
The specific changes are to make virtual both:
        void pushOntoNodePath(Node* node)
        void popFromNodePath()

The use case for this is to allow derived node visitors to be informed when
the level in the graph changes so they can push & pop their own internal state.

Otherwise there is no good way of knowing that this has happened.
I could possibly do something where I try and store a previous parent
node pointer
and check that within the accept methods but that's butt ugly.

-- 
The truth is out there. Usually in header files.

Attachment: NodeVisitor
Description: Binary data

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to