Hi Carsten,
 
I'm trying to convert our IdBuffer selection handling from 1.8 to 2.0. In 1.8 used custom renderEnter/renderLeave functions to achieve the id-coded rendering, i.e.
 
    this->_ract->registerEnterFunction(OSG::Geometry::getClassType(),
                                OSG::osgTypedFunctionFunctor2CPtrRef<
                                    OSG::Action::ResultE,
                                    OSG::CNodePtr,
                                    OSG::Action *                      >(
                                    IDBufferSelectionHelper::onEnterGeometry ) );
with
 
class IDBufferSelectionHelper {
static osg::Action::ResultE onEnterGeometry( osg::CNodePtr& pNode, osg::Action * action );
}
 
Is it possible to achieve this with OpenSG 2.0, too? I tried something like this:
    this->_ract->registerEnterFunction(OSG::Geometry::getClassType(),
        boost::bind(&IDBufferSelectionHelper::onEnterGeometry, this));
with
class IDBufferSelectionHelper {
static OSG::Action::ResultE onEnterGeometry( const OSG::NodeCore* core, OSG::Action * action );
}
 
But to me it seems that the called object needs to inherit from NodeCore? Could you please give me a hint if and how this is solvable?
 
Thanks,
Michael
 
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to