Nguyen Tien Dat wrote: > Dear all, > Which example in OpenSceneGraph 2.8.2 is using these classes? > 22:36|me...@juggle2:~/c/osg/svn/trunk> grep LineSegmentIntersector examples/*/*.cpp examples/osgcompositeviewer/osgcompositeviewer.cpp: osgUtil::LineSegmentIntersector::Intersections intersections; examples/osgcompositeviewer/osgcompositeviewer.cpp: osgUtil::LineSegmentIntersector::Intersection intersection = *intersections.begin(); examples/osgforest/osgforest.cpp:#include <osgUtil/LineSegmentIntersector> examples/osgforest/osgforest.cpp: osg::ref_ptr<osgUtil::LineSegmentIntersector> intersector = examples/osgforest/osgforest.cpp: new osgUtil::LineSegmentIntersector(tree->_position,tree->_position+osg::Vec3(0.0f,0.0f,size.z())); examples/osgforest/osgforest.cpp: osgUtil::LineSegmentIntersector::Intersections& intersections = intersector->getIntersections(); examples/osgforest/osgforest.cpp: for(osgUtil::LineSegmentIntersector::Intersections::iterator itr = intersections.begin(); examples/osgforest/osgforest.cpp: const osgUtil::LineSegmentIntersector::Intersection& intersection = *itr; examples/osgintersection/osgintersection.cpp:#include <osgUtil/LineSegmentIntersector> examples/osgintersection/osgintersection.cpp: osg::ref_ptr<osgUtil::LineSegmentIntersector> intersector = new osgUtil::LineSegmentIntersector(s, e); examples/osgintersection/osgintersection.cpp: osgUtil::LineSegmentIntersector* lsi = dynamic_cast<osgUtil::LineSegmentIntersector*>(intersector_itr->get()); examples/osgintersection/osgintersection.cpp: osgUtil::LineSegmentIntersector::Intersections& intersections = lsi->getIntersections(); examples/osgintersection/osgintersection.cpp: for(osgUtil::LineSegmentIntersector::Intersections::iterator itr = intersections.begin(); examples/osgintersection/osgintersection.cpp: const osgUtil::LineSegmentIntersector::Intersection& intersection = *itr; examples/osgintersection/osgintersection.cpp: osg::ref_ptr<osgUtil::LineSegmentIntersector> intersector = new osgUtil::LineSegmentIntersector(start, end); examples/osgintersection/osgintersection.cpp: osgUtil::LineSegmentIntersector::Intersections& intersections = intersector->getIntersections(); examples/osgintersection/osgintersection.cpp: for(osgUtil::LineSegmentIntersector::Intersections::iterator itr = intersections.begin(); examples/osgintersection/osgintersection.cpp: const osgUtil::LineSegmentIntersector::Intersection& intersection = *itr; examples/osgkdtree/osgkdtree.cpp:#include <osgUtil/LineSegmentIntersector> examples/osgkdtree/raytrace.cpp:#include <osgUtil/LineSegmentIntersector> examples/osgkdtree/raytrace.cpp: osg::ref_ptr<osgUtil::LineSegmentIntersector> intersector; examples/osgkdtree/raytrace.cpp: osgUtil::LineSegmentIntersector::Intersections intersections; examples/osgkdtree/raytrace.cpp: osgUtil::LineSegmentIntersector::Intersections::iterator isec_itr; examples/osgkdtree/raytrace.cpp: intersector = new osgUtil::LineSegmentIntersector(p, L); examples/osgkdtree/raytrace.cpp: osg::ref_ptr<osgUtil::LineSegmentIntersector> intersector; examples/osgkdtree/raytrace.cpp: osgUtil::LineSegmentIntersector::Intersections intersections; examples/osgkdtree/raytrace.cpp: osgUtil::LineSegmentIntersector::Intersections::iterator isec_itr; examples/osgkdtree/raytrace.cpp: intersector = new osgUtil::LineSegmentIntersector(osg::Vec3f(), osg::Vec3f()); examples/osgkeyboardmouse/osgkeyboardmouse.cpp:#include <osgUtil/LineSegmentIntersector> examples/osgkeyboardmouse/osgkeyboardmouse.cpp: osg::notify(osg::NOTICE)<<"Using LineSegmentIntersector"<<std::endl; examples/osgkeyboardmouse/osgkeyboardmouse.cpp: osgUtil::LineSegmentIntersector* picker; examples/osgkeyboardmouse/osgkeyboardmouse.cpp: picker = new osgUtil::LineSegmentIntersector( osgUtil::Intersector::PROJECTION, ea.getXnormalized(),ea.getYnormalized() ); examples/osgkeyboardmouse/osgkeyboardmouse.cpp: picker = new osgUtil::LineSegmentIntersector( osgUtil::Intersector::WINDOW, mx, my ); examples/osgkeyboardmouse/osgkeyboardmouse.cpp: osgUtil::LineSegmentIntersector::Intersection intersection = picker->getFirstIntersection(); examples/osglauncher/osglauncher.cpp: osgUtil::LineSegmentIntersector::Intersections intersections; examples/osglauncher/osglauncher.cpp: for(osgUtil::LineSegmentIntersector::Intersections::iterator hitr = intersections.begin(); examples/osgmovie/osgmovie.cpp: osgUtil::LineSegmentIntersector::Intersections intersections; examples/osgmovie/osgmovie.cpp: const osgUtil::LineSegmentIntersector::Intersection& intersection = *(intersections.begin()); examples/osgmovie/osgmovie.cpp: const osgUtil::LineSegmentIntersector::Intersection::IndexList& indices = intersection.indexList; examples/osgmovie/osgmovie.cpp: const osgUtil::LineSegmentIntersector::Intersection::RatioList& ratios = intersection.ratioList; examples/osgoccluder/osgoccluder.cpp: osgUtil::LineSegmentIntersector::Intersections intersections; examples/osgoccluder/osgoccluder.cpp: const osgUtil::LineSegmentIntersector::Intersection& hit = *(intersections.begin()); examples/osgparticleeffects/osgparticleeffects.cpp: osg::ref_ptr<osgUtil::LineSegmentIntersector> intersector = examples/osgparticleeffects/osgparticleeffects.cpp: new osgUtil::LineSegmentIntersector(osg::Vec3(x,y,zMin),osg::Vec3(x,y,zMax)); examples/osgparticleeffects/osgparticleeffects.cpp: osgUtil::LineSegmentIntersector::Intersections intersections; examples/osgparticleeffects/osgparticleeffects.cpp: const osgUtil::LineSegmentIntersector::Intersection& hit = *intersections.begin(); examples/osgpick/osgpick.cpp: osgUtil::LineSegmentIntersector::Intersections intersections; examples/osgpick/osgpick.cpp: osg::ref_ptr< osgUtil::LineSegmentIntersector > picker = new osgUtil::LineSegmentIntersector(osgUtil::Intersector::WINDOW, x, y); examples/osgpick/osgpick.cpp: for(osgUtil::LineSegmentIntersector::Intersections::iterator hitr = intersections.begin(); examples/osgpick/osgpick.cpp: const osgUtil::LineSegmentIntersector::Intersection::IndexList& vil = hitr->indexList; examples/osgspheresegment/osgspheresegment.cpp: osg::ref_ptr<osgUtil::LineSegmentIntersector> intersector = examples/osgspheresegment/osgspheresegment.cpp: new osgUtil::LineSegmentIntersector(osg::Vec3(x,y,zMin),osg::Vec3(x,y,zMax)); examples/osgviewerWX/osgviewerWX.cpp: osgUtil::LineSegmentIntersector::Intersections intersections; examples/osgviewerWX/osgviewerWX.cpp: for(osgUtil::LineSegmentIntersector::Intersections::iterator hitr = intersections.begin();
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org