hi all, always trying to pass to OSGViewer,
I try to use computeIntersections (as with osg::Producer)

in Producer I made that

osgUtil::IntersectVisitor::HitList hlist;
                       if (
CGeneral::instance().viewer.computeIntersections(ea.getX(), ea.getY(),
hlist))
                       {

for(osgUtil::IntersectVisitor::HitList::iterator hitr=hlist.begin();hitr!=
hlist.end(); ++hitr)
                               {
                                       if (hitr->_geode.valid()){


with viewer, I tried the same thing, (execpt the ea changing with event)

but I have that error.

INTERFACE/Interface.cpp:44: error: no matching function for call to
'SimpleViewerQT::computeIntersections(float, float,
std::vector<osgUtil::Hit, std::allocator<osgUtil::Hit> >&)'

/usr/local/include/osgViewer/View:117: note: candidates are: bool
osgViewer::View::computeIntersections(float, float,
std::multiset<osgUtil::LineSegmentIntersector::Intersection,
std::less<osgUtil::LineSegmentIntersector::Intersection>,
std::allocator<osgUtil::LineSegmentIntersector::Intersection> >&, unsigned
int)

/usr/local/include/osgViewer/View:120: note:                 bool
osgViewer::View::computeIntersections(float, float, osg::NodePath&,
std::multiset<osgUtil::LineSegmentIntersector::Intersection,
std::less<osgUtil::LineSegmentIntersector::Intersection>,
std::allocator<osgUtil::LineSegmentIntersector::Intersection> >&, unsigned
int)


I ve tried google code search, and other search but all example are with
osgProducer. (event is the nme is not correct, I use viewer and not
simpleViewer.)

thanks

a+++
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to