Hi Sam, I simply don't get why your are expecting things from the NodeVisitor that it isn't intended to provide, and what you can very simply provide yourself.
There are many examples of NodeVisitor's in action in the OSG please do a search through the code base. Robert. On Tue, Jan 25, 2011 at 11:34 AM, Sam Warns <[email protected]> wrote: > Hi Robert, > > I am aware of the possibility to define my own methods in the visitor but the > point I was trying to explain is, that if I apply a visitor on a scene I > would except that this visitor has finished its work after calling the > node->accept(myVisitor) > > If I have a RemoveXVisitor and I as the user and not the writer of it use > this visitor as I am used to use them by > > > Code: > > RemoveXVisitor v; > node->accept(v); > > > > > I would expect that the Visitor has done it's work, which it actually didn't > since there is no "finalize" method I would need to write: > > Code: > > RemoveXVisitor v; > node->accept(v); > v.doTheJobActually(); > > > > > So there is a discrepancy between what I would except from a visitor after it > was passed to accept and what a visitor is able to do in it's apply method > > Greetings > Sam > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=35950#35950 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

