Hello Heiko,
But this won't compile too:
error C2039: 'getName': Ist kein Element von
'std::_Vector_const_iterator<_Myvec>'
error C2839: Ungültiger Rückgabetyp 'osg::Node *const *' für überladenen Operator
'->'
IntelliSense: Der Ausdruck muss den Typ "pointer-to-class" aufweisen.
Any idea?
I think you just need to check the types of what you're using...
hitNodeIt is an osg::NodePath::iterator. This expands to
std::vector<osg::Node*>::iterator (you are in Visual Studio, so you can
press F12 with the cursor on osg::NodePath to see what type it really
is, you'll see it's a typedef of std::vector<osg::Node*> or something
similar). So to be able to call getName() you need to do:
(*hitNodeIt)->getName()
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org