OpenSceneGraph 2.8.4
Classes | Public Types | Public Member Functions | Protected Attributes
osgUtil::PlaneIntersector Class Reference

Concrete class for implementing polytope intersections with the scene graph. More...

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

List of all members.

Classes

struct  Intersection

Public Types

typedef std::vector< IntersectionIntersections

Public Member Functions

 PlaneIntersector (const osg::Plane &plane, const osg::Polytope &boundingPolytope=osg::Polytope())
 Construct a PolytopeIntersector using speified polytope in MODEL coordinates.
 PlaneIntersector (CoordinateFrame cf, const osg::Plane &plane, const osg::Polytope &boundingPolytope=osg::Polytope())
 Construct a PolytopeIntersector using speified polytope in specified coordinate frame.
void insertIntersection (const Intersection &intersection)
IntersectionsgetIntersections ()
void setRecordHeightsAsAttributes (bool flag)
bool getRecordHeightsAsAttributes () const
void setEllipsoidModel (osg::EllipsoidModel *em)
const osg::EllipsoidModelgetEllipsoidModel () const
virtual Intersectorclone (osgUtil::IntersectionVisitor &iv)
virtual bool enter (const osg::Node &node)
virtual void leave ()
virtual void intersect (osgUtil::IntersectionVisitor &iv, osg::Drawable *drawable)
virtual void reset ()
virtual bool containsIntersections ()

Protected Attributes

PlaneIntersector_parent
bool _recordHeightsAsAttributes
osg::ref_ptr< osg::EllipsoidModel_em
osg::Plane _plane
osg::Polytope _polytope
Intersections _intersections

Detailed Description

Concrete class for implementing polytope intersections with the scene graph.

To be used in conjunction with IntersectionVisitor.


Member Typedef Documentation


Constructor & Destructor Documentation

osgUtil::PlaneIntersector::PlaneIntersector ( const osg::Plane plane,
const osg::Polytope boundingPolytope = osg::Polytope() 
)

Construct a PolytopeIntersector using speified polytope in MODEL coordinates.

osgUtil::PlaneIntersector::PlaneIntersector ( CoordinateFrame  cf,
const osg::Plane plane,
const osg::Polytope boundingPolytope = osg::Polytope() 
)

Construct a PolytopeIntersector using speified polytope in specified coordinate frame.


Member Function Documentation

virtual Intersector* osgUtil::PlaneIntersector::clone ( osgUtil::IntersectionVisitor iv) [virtual]

Implements osgUtil::Intersector.

virtual bool osgUtil::PlaneIntersector::containsIntersections ( ) [inline, virtual]

Implements osgUtil::Intersector.

virtual bool osgUtil::PlaneIntersector::enter ( const osg::Node node) [virtual]

Implements osgUtil::Intersector.

const osg::EllipsoidModel* osgUtil::PlaneIntersector::getEllipsoidModel ( ) const [inline]
Intersections& osgUtil::PlaneIntersector::getIntersections ( ) [inline]
bool osgUtil::PlaneIntersector::getRecordHeightsAsAttributes ( ) const [inline]
void osgUtil::PlaneIntersector::insertIntersection ( const Intersection intersection) [inline]
virtual void osgUtil::PlaneIntersector::intersect ( osgUtil::IntersectionVisitor iv,
osg::Drawable drawable 
) [virtual]

Implements osgUtil::Intersector.

virtual void osgUtil::PlaneIntersector::leave ( ) [virtual]

Implements osgUtil::Intersector.

virtual void osgUtil::PlaneIntersector::reset ( ) [virtual]

Reimplemented from osgUtil::Intersector.

void osgUtil::PlaneIntersector::setEllipsoidModel ( osg::EllipsoidModel em) [inline]
void osgUtil::PlaneIntersector::setRecordHeightsAsAttributes ( bool  flag) [inline]

Member Data Documentation


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

osg logo
Generated at Sun Jan 8 2012 13:17:01 for the OpenSceneGraph by doxygen 1.7.4.