Public Types | |
enum | CoordinateFrame { WINDOW, PROJECTION, VIEW, MODEL } |
Public Member Functions | |
Intersector (CoordinateFrame cf=MODEL) | |
void | setCoordinateFrame (CoordinateFrame cf) |
CoordinateFrame | getCoordinateFrame () const |
virtual Intersector * | clone (osgUtil::IntersectionVisitor &iv)=0 |
virtual bool | enter (const osg::Node &node)=0 |
virtual void | leave ()=0 |
virtual void | intersect (osgUtil::IntersectionVisitor &iv, osg::Drawable *drawable)=0 |
virtual void | reset () |
virtual bool | containsIntersections ()=0 |
bool | disabled () const |
void | incrementDisabledCount () |
void | decrementDisabledCount () |
Protected Attributes | |
CoordinateFrame | _coordinateFrame |
unsigned int | _disabledCount |
To implement a specific intersection technique on must override all the pure virtue methods, concrete examples of how to do this can be seen in the LineSegmentIntersector.
osgUtil::Intersector::Intersector | ( | CoordinateFrame | cf = MODEL |
) | [inline] |
void osgUtil::Intersector::setCoordinateFrame | ( | CoordinateFrame | cf | ) | [inline] |
CoordinateFrame osgUtil::Intersector::getCoordinateFrame | ( | ) | const [inline] |
virtual Intersector* osgUtil::Intersector::clone | ( | osgUtil::IntersectionVisitor & | iv | ) | [pure virtual] |
virtual bool osgUtil::Intersector::enter | ( | const osg::Node & | node | ) | [pure virtual] |
virtual void osgUtil::Intersector::leave | ( | ) | [pure virtual] |
virtual void osgUtil::Intersector::intersect | ( | osgUtil::IntersectionVisitor & | iv, | |
osg::Drawable * | drawable | |||
) | [pure virtual] |
virtual void osgUtil::Intersector::reset | ( | ) | [inline, virtual] |
Reimplemented in osgUtil::IntersectorGroup, osgUtil::LineSegmentIntersector, osgUtil::PlaneIntersector, and osgUtil::PolytopeIntersector.
virtual bool osgUtil::Intersector::containsIntersections | ( | ) | [pure virtual] |
bool osgUtil::Intersector::disabled | ( | ) | const [inline] |
void osgUtil::Intersector::incrementDisabledCount | ( | ) | [inline] |
void osgUtil::Intersector::decrementDisabledCount | ( | ) | [inline] |
unsigned int osgUtil::Intersector::_disabledCount [protected] |