OpenSceneGraph  3.5.1
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

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

Constructor & Destructor Documentation

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

Member Function Documentation

const osg::Vec3& osgUtil::RayIntersector::Intersection::getLocalIntersectNormal ( ) const
inline
const osg::Vec3d& osgUtil::RayIntersector::Intersection::getLocalIntersectPoint ( ) const
inline
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.

osg::Vec3 osgUtil::RayIntersector::Intersection::getWorldIntersectNormal ( ) const
inline
osg::Vec3d osgUtil::RayIntersector::Intersection::getWorldIntersectPoint ( ) const
inline
bool osgUtil::RayIntersector::Intersection::operator< ( const Intersection rhs) const
inline

Member Data Documentation

double osgUtil::RayIntersector::Intersection::distance
osg::ref_ptr<osg::Drawable> osgUtil::RayIntersector::Intersection::drawable
IndexList osgUtil::RayIntersector::Intersection::indexList
osg::Vec3 osgUtil::RayIntersector::Intersection::localIntersectionNormal
osg::Vec3d osgUtil::RayIntersector::Intersection::localIntersectionPoint
osg::ref_ptr<osg::RefMatrix> osgUtil::RayIntersector::Intersection::matrix
osg::NodePath osgUtil::RayIntersector::Intersection::nodePath
unsigned int osgUtil::RayIntersector::Intersection::primitiveIndex
RatioList osgUtil::RayIntersector::Intersection::ratioList

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

osg logo
Generated at Wed Nov 11 2015 22:15:17 for the OpenSceneGraph by doxygen 1.8.10.