OpenSceneGraph
3.4.0
|
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::Vec3d & | getLocalIntersectPoint () const |
osg::Vec3d | getWorldIntersectPoint () const |
const osg::Vec3 & | getLocalIntersectNormal () const |
osg::Vec3 | getWorldIntersectNormal () const |
osg::Texture * | getTextureLookUp (osg::Vec3 &tc) const |
Convenience function for mapping the intersection point to any textures assigned to the objects intersected. | |
Public Attributes | |
double | distance |
osg::NodePath | nodePath |
osg::ref_ptr< osg::Drawable > | drawable |
osg::ref_ptr< osg::RefMatrix > | matrix |
osg::Vec3d | localIntersectionPoint |
osg::Vec3 | localIntersectionNormal |
IndexList | indexList |
RatioList | ratioList |
unsigned int | primitiveIndex |
typedef std::vector<unsigned int> osgUtil::RayIntersector::Intersection::IndexList |
typedef std::vector<double> osgUtil::RayIntersector::Intersection::RatioList |
osgUtil::RayIntersector::Intersection::Intersection | ( | ) | [inline] |
const osg::Vec3& osgUtil::RayIntersector::Intersection::getLocalIntersectNormal | ( | ) | const [inline] |
const osg::Vec3d& osgUtil::RayIntersector::Intersection::getLocalIntersectPoint | ( | ) | const [inline] |
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] |
References osg::Matrixd::inverse(), osg::Matrixd::transform3x3(), and osg::Vec3f::valid().
osg::Vec3d osgUtil::RayIntersector::Intersection::getWorldIntersectPoint | ( | ) | const [inline] |
References osg::Vec3d::valid().
bool osgUtil::RayIntersector::Intersection::operator< | ( | const Intersection & | rhs | ) | const [inline] |
References distance.
Referenced by operator<().
![]() | Generated at Tue Dec 8 2015 00:16:51 for the OpenSceneGraph by doxygen 1.7.6.1. |