OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
osgUtil::RayIntersector::Intersection Struct Reference

#include <RayIntersector.h>

Collaboration diagram for osgUtil::RayIntersector::Intersection:
Collaboration graph
[legend]

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
 

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
 

Detailed Description

Definition at line 55 of file RayIntersector.h.

Member Typedef Documentation

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

Definition at line 61 of file RayIntersector.h.

Definition at line 62 of file RayIntersector.h.

Constructor & Destructor Documentation

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

Definition at line 57 of file RayIntersector.h.

Member Function Documentation

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

Definition at line 77 of file RayIntersector.h.

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

Definition at line 74 of file RayIntersector.h.

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

Definition at line 78 of file RayIntersector.h.

Here is the call graph for this function:

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

Definition at line 75 of file RayIntersector.h.

Here is the call graph for this function:

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

Definition at line 59 of file RayIntersector.h.

Member Data Documentation

double osgUtil::RayIntersector::Intersection::distance

Definition at line 64 of file RayIntersector.h.

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

Definition at line 66 of file RayIntersector.h.

IndexList osgUtil::RayIntersector::Intersection::indexList

Definition at line 70 of file RayIntersector.h.

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

Definition at line 69 of file RayIntersector.h.

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

Definition at line 68 of file RayIntersector.h.

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

Definition at line 67 of file RayIntersector.h.

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

Definition at line 65 of file RayIntersector.h.

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

Definition at line 72 of file RayIntersector.h.

RatioList osgUtil::RayIntersector::Intersection::ratioList

Definition at line 71 of file RayIntersector.h.


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