osgUtil::Intersector Class Reference

Pure virtual base class for implementing custom intersection technique. More...

Inheritance diagram for osgUtil::Intersector:
Inheritance graph
[legend]

List of all members.

Public Types

enum  CoordinateFrame { WINDOW, PROJECTION, VIEW, MODEL }

Public Member Functions

 Intersector (CoordinateFrame cf=MODEL)
void setCoordinateFrame (CoordinateFrame cf)
CoordinateFrame getCoordinateFrame () const
virtual Intersectorclone (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

Detailed Description

Pure virtual base class for implementing custom intersection technique.

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.


Member Enumeration Documentation

Enumerator:
WINDOW 
PROJECTION 
VIEW 
MODEL 

Constructor & Destructor Documentation

osgUtil::Intersector::Intersector ( CoordinateFrame  cf = MODEL  )  [inline]

Member Function Documentation

virtual Intersector* osgUtil::Intersector::clone ( osgUtil::IntersectionVisitor iv  )  [pure virtual]
virtual bool osgUtil::Intersector::containsIntersections (  )  [pure virtual]
void osgUtil::Intersector::decrementDisabledCount (  )  [inline]

References _disabledCount.

bool osgUtil::Intersector::disabled (  )  const [inline]

References _disabledCount.

virtual bool osgUtil::Intersector::enter ( const osg::Node node  )  [pure virtual]
CoordinateFrame osgUtil::Intersector::getCoordinateFrame (  )  const [inline]

References _coordinateFrame.

void osgUtil::Intersector::incrementDisabledCount (  )  [inline]

References _disabledCount.

virtual void osgUtil::Intersector::intersect ( osgUtil::IntersectionVisitor iv,
osg::Drawable drawable 
) [pure virtual]
virtual void osgUtil::Intersector::leave (  )  [pure virtual]
virtual void osgUtil::Intersector::reset (  )  [inline, virtual]
void osgUtil::Intersector::setCoordinateFrame ( CoordinateFrame  cf  )  [inline]

References _coordinateFrame.


Member Data Documentation

unsigned int osgUtil::Intersector::_disabledCount [protected]

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

osg logo
Generated at Wed Aug 26 07:07:51 2009 for the OpenSceneGraph by doxygen 1.6.1.