Hi Robert

I tried with dynamic_cast and also with reinterpret_cast. Both didn't give me 
the correct pointer. Could it be that with multiple inheriance it is not 
working correctly? CullVisitor is derived from NodeVisitor AND CullStack...

Finally I created my own map of the following type:
typedef std::map<osgUtil::CullVisitor*, osg::Camera* > ViewMapType;

I added the observer to the camera. So as soon as a camera is deleted (view 
removed), I get notified. Then I iterate through the list above to find out 
which CullVisitors are related to the camera (can be multiple). Finally I 
remove these cullvisitors entries from _viewDependentDataMap.

Maybe not the most beautifull solution, but this way I was succesfull.

Thank you!

Cheers,
Daniel

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51649#51649





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

Reply via email to