osgUtil::Intersector Class Reference

Inheritance diagram for osgUtil::Intersector:

osg::Referenced osgUtil::IntersectorGroup osgUtil::LineSegmentIntersector osgUtil::PlaneIntersector osgUtil::PolytopeIntersector

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

void osgUtil::Intersector::setCoordinateFrame ( CoordinateFrame  cf  )  [inline]

References _coordinateFrame.

CoordinateFrame osgUtil::Intersector::getCoordinateFrame (  )  const [inline]

References _coordinateFrame.

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]

virtual bool osgUtil::Intersector::containsIntersections (  )  [pure virtual]

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

References _disabledCount.

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

References _disabledCount.

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

References _disabledCount.


Member Data Documentation

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


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

Generated on Wed Jul 30 23:59:08 2008 for openscenegraph by  doxygen 1.5.6