Changeset 7622
- Timestamp:
- 12/08/07 16:08:32 (6 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgViewer/View.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgViewer/View.cpp
r7582 r7622 1608 1608 1609 1609 osgUtil::LineSegmentIntersector::CoordinateFrame cf = camera->getViewport() ? osgUtil::Intersector::WINDOW : osgUtil::Intersector::PROJECTION; 1610 osg Util::LineSegmentIntersector*picker = new osgUtil::LineSegmentIntersector(cf, local_x, local_y);1610 osg::ref_ptr< osgUtil::LineSegmentIntersector > picker = new osgUtil::LineSegmentIntersector(cf, local_x, local_y); 1611 1611 1612 1612 #if 0 … … 1621 1621 #endif 1622 1622 1623 osgUtil::IntersectionVisitor iv(picker );1623 osgUtil::IntersectionVisitor iv(picker.get()); 1624 1624 iv.setTraversalMask(traversalMask); 1625 1625 const_cast<osg::Camera*>(camera)->accept(iv); … … 1664 1664 osg::Vec3d endVertex = osg::Vec3d(local_x,local_y,zFar) * inverse; 1665 1665 1666 osg Util::LineSegmentIntersector*picker = new osgUtil::LineSegmentIntersector(osgUtil::Intersector::MODEL, startVertex, endVertex);1667 1668 osgUtil::IntersectionVisitor iv(picker );1666 osg::ref_ptr< osgUtil::LineSegmentIntersector > picker = new osgUtil::LineSegmentIntersector(osgUtil::Intersector::MODEL, startVertex, endVertex); 1667 1668 osgUtil::IntersectionVisitor iv(picker.get()); 1669 1669 iv.setTraversalMask(traversalMask); 1670 1670 nodePath.back()->accept(iv);
