OpenSceneGraph 3.6.5
osgUtil::LineSegmentIntersector::Intersection Struct Reference

#include <LineSegmentIntersector>

Public Types

typedef std::vector< unsigned int > IndexList
typedef std::vector< double > RatioList

Public Member Functions

 Intersection ()
bool operator< (const Intersection &rhs) const
const osg::Vec3dgetLocalIntersectPoint () const
osg::Vec3d getWorldIntersectPoint () const
const osg::Vec3getLocalIntersectNormal () const
osg::Vec3 getWorldIntersectNormal () const
osg::TexturegetTextureLookUp (osg::Vec3 &tc) const
 Convenience function for mapping the intersection point to any textures assigned to the objects intersected.

Public Attributes

double ratio
osg::NodePath nodePath
osg::ref_ptr< osg::Drawabledrawable
osg::ref_ptr< osg::RefMatrixmatrix
osg::Vec3d localIntersectionPoint
osg::Vec3 localIntersectionNormal
IndexList indexList
RatioList ratioList
unsigned int primitiveIndex

Member Typedef Documentation

◆ IndexList

◆ RatioList

Constructor & Destructor Documentation

◆ Intersection()

osgUtil::LineSegmentIntersector::Intersection::Intersection ( )
inline

References primitiveIndex, and ratio.

Referenced by operator<().

Member Function Documentation

◆ getLocalIntersectNormal()

const osg::Vec3 & osgUtil::LineSegmentIntersector::Intersection::getLocalIntersectNormal ( ) const
inline

◆ getLocalIntersectPoint()

const osg::Vec3d & osgUtil::LineSegmentIntersector::Intersection::getLocalIntersectPoint ( ) const
inline

◆ getTextureLookUp()

osg::Texture * osgUtil::LineSegmentIntersector::Intersection::getTextureLookUp ( osg::Vec3 & tc) const

Convenience function for mapping the intersection point to any textures assigned to the objects intersected.

Returns the Texture pointer and texture coords of object hit when a texture is available on the object, returns NULL otherwise.

◆ getWorldIntersectNormal()

osg::Vec3 osgUtil::LineSegmentIntersector::Intersection::getWorldIntersectNormal ( ) const
inline

◆ getWorldIntersectPoint()

osg::Vec3d osgUtil::LineSegmentIntersector::Intersection::getWorldIntersectPoint ( ) const
inline

References localIntersectionPoint, and matrix.

◆ operator<()

bool osgUtil::LineSegmentIntersector::Intersection::operator< ( const Intersection & rhs) const
inline

References Intersection(), and ratio.

Member Data Documentation

◆ drawable

osg::ref_ptr<osg::Drawable> osgUtil::LineSegmentIntersector::Intersection::drawable

◆ indexList

IndexList osgUtil::LineSegmentIntersector::Intersection::indexList

◆ localIntersectionNormal

osg::Vec3 osgUtil::LineSegmentIntersector::Intersection::localIntersectionNormal

◆ localIntersectionPoint

osg::Vec3d osgUtil::LineSegmentIntersector::Intersection::localIntersectionPoint

◆ matrix

osg::ref_ptr<osg::RefMatrix> osgUtil::LineSegmentIntersector::Intersection::matrix

◆ nodePath

osg::NodePath osgUtil::LineSegmentIntersector::Intersection::nodePath

◆ primitiveIndex

unsigned int osgUtil::LineSegmentIntersector::Intersection::primitiveIndex

Referenced by Intersection().

◆ ratio

double osgUtil::LineSegmentIntersector::Intersection::ratio

Referenced by Intersection(), and operator<().

◆ ratioList

RatioList osgUtil::LineSegmentIntersector::Intersection::ratioList

The documentation for this struct was generated from the following file:

osg logo
Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.