OpenSceneGraph
Public Types | Public Member Functions | Public Attributes | List of all members
osgUtil::RayIntersector::Intersection Struct Reference

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. More...
 

Public Attributes

double distance
 
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

typedef std::vector<unsigned int> osgUtil::RayIntersector::Intersection::IndexList

◆ RatioList

Constructor & Destructor Documentation

◆ Intersection()

osgUtil::RayIntersector::Intersection::Intersection ( )
inline

Member Function Documentation

◆ getLocalIntersectNormal()

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

◆ getLocalIntersectPoint()

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

◆ getTextureLookUp()

osg::Texture* osgUtil::RayIntersector::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::RayIntersector::Intersection::getWorldIntersectNormal ( ) const
inline

◆ getWorldIntersectPoint()

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

◆ operator<()

bool osgUtil::RayIntersector::Intersection::operator< ( const Intersection rhs) const
inline

References distance.

Member Data Documentation

◆ distance

double osgUtil::RayIntersector::Intersection::distance

Referenced by operator<().

◆ drawable

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

◆ indexList

IndexList osgUtil::RayIntersector::Intersection::indexList

◆ localIntersectionNormal

osg::Vec3 osgUtil::RayIntersector::Intersection::localIntersectionNormal

◆ localIntersectionPoint

osg::Vec3d osgUtil::RayIntersector::Intersection::localIntersectionPoint

◆ matrix

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

◆ nodePath

osg::NodePath osgUtil::RayIntersector::Intersection::nodePath

◆ primitiveIndex

unsigned int osgUtil::RayIntersector::Intersection::primitiveIndex

◆ ratioList

RatioList osgUtil::RayIntersector::Intersection::ratioList

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