diff --git a/include/osgProducer/Viewer b/include/osgProducer/Viewer index 8fbb03eb5..29186874b 100644 --- a/include/osgProducer/Viewer +++ b/include/osgProducer/Viewer @@ -99,7 +99,7 @@ class OSGPRODUCER_EXPORT Viewer : public OsgCameraGroup, public osgGA::GUIAction bool computePixelCoords(float x,float y,unsigned int cameraNum,float& pixel_x,float& pixel_y); /** compute, from normalized mouse coords, for sepecified Camera, the near and far points in worlds coords.*/ - bool computeNearFar(float x,float y,unsigned int cameraNum,osg::Vec3& near, osg::Vec3& far); + bool computeNearFarPoints(float x,float y,unsigned int cameraNum,osg::Vec3& near, osg::Vec3& far); /** compute, from normalized mouse coords, for sepecified Camera, intersections with the scene.*/ bool computeIntersections(float x,float y,unsigned int cameraNum,osgUtil::IntersectVisitor::HitList& hits); diff --git a/src/osgProducer/Viewer.cpp b/src/osgProducer/Viewer.cpp index b47c83174..fd651582f 100644 --- a/src/osgProducer/Viewer.cpp +++ b/src/osgProducer/Viewer.cpp @@ -340,7 +340,7 @@ bool Viewer::computePixelCoords(float x,float y,unsigned int cameraNum,float& pi return false; } -bool Viewer::computeNearFar(float x,float y,unsigned int cameraNum,osg::Vec3& near, osg::Vec3& far) +bool Viewer::computeNearFarPoints(float x,float y,unsigned int cameraNum,osg::Vec3& near, osg::Vec3& far) { if (cameraNum>=getSceneHandlerList().size()) return false;