Public Types | |
| typedef std::vector< int > | VecIndexList |
Public Member Functions | |
| Hit () | |
| Hit (const Hit &hit) | |
| ~Hit () | |
| Hit & | operator= (const Hit &hit) |
| bool | operator< (const Hit &hit) const |
| const osg::Vec3 & | getLocalIntersectPoint () const |
| const osg::Vec3 & | getLocalIntersectNormal () const |
| const osg::Vec3 | getWorldIntersectPoint () const |
| const osg::Vec3 | getWorldIntersectNormal () const |
Public Attributes | |
| float | _ratio |
| osg::ref_ptr< osg::LineSegment > | _originalLineSegment |
| osg::ref_ptr< osg::LineSegment > | _localLineSegment |
| osg::NodePath | _nodePath |
| osg::ref_ptr< osg::Geode > | _geode |
| osg::ref_ptr< osg::Drawable > | _drawable |
| osg::ref_ptr< osg::RefMatrix > | _matrix |
| osg::ref_ptr< osg::RefMatrix > | _inverse |
| VecIndexList | _vecIndexList |
| int | _primitiveIndex |
| osg::Vec3 | _intersectPoint |
| osg::Vec3 | _intersectNormal |
|
|
|
|
|
Describes a point in space produced by an intersection of a line with a scene. A Hit is always on a surface as rendered by the Open Scene Graph scene (usually a triangle or other primitive, but a special hit handler could return a different value perhaps: a sphere shape might return a Hit on the true sphere rather than the approximate tesselated sphere rendered. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.2