Hi Xavier,
sorry for the delay, but you caught us on the way back from SIGGRAPH.
On Thu, 2005-08-04 at 16:46 +0200, Xavier Larrode wrote:
> Hello, i want to traverse my Scene Graph with my own methode
> So i try this
>
> osg::Action::ResultE PsvDepthLessPartner::enterAndDepthLess
> (osg::NodePtr &root){}
> and
> void PsvDepthLessPartner::setDepthLess(osg::NodePtr & root){
> osg::traverse(root,
> osgTypedMethodFunctor1ObjPtrCPtrRef
> <osg::Action::ResultE,PsvDepthLessPartner,osg:: NodePtr >
> (this,&PsvDepthLessPartner::enterAndDepthLess));
> }
>
> but ok i don't use OBj so i must use the same with method
> But i can't find it, we have a
> osgTypedMethodVoidFunctor1CPtrRef(
> but there is a Void so no osgTypedMethodFunctor1CptrRef...
>
>
> So i don't know how to call the osg::traverse with my node root with
> my function "enterAndDepthLess" wich return an Osg::Action::Result...
> Any idea ?
If I understand you right you want to use the member method of an object
instance to be called for traversal? Looking at the 09traverse tutorial
example, that can be done using an osgTypedMethodFunctor1ObjPtrCPtrRef.
If that's not what you need, you can look at testFunctors.cpp and find
the combination of parameters that works for you, and then see what the
name of the corresponding functor is.
Hope it helps
Dirk
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users