class OSGUTIL_EXPORT osgUtil::IntersectVisitor

Basic visitor for ray based collisions of a scene.

Inheritance:


Public Methods

[more] IntersectVisitor()
[more]virtual ~IntersectVisitor()
[more]void reset()
[more]void addLineSegment(osg::LineSegment* seg)
Add a line segment to use for intersection testing during scene traversal
[more]void setHitReportingMode(HitReportingMode hrm)
Set the mode of how hits should reported back from a traversal
[more]HitReportingMode getHitReportingMode()
Get the mode of how hits should reported back from a traversal
[more]typedef std::map<osg::LineSegment*,HitList > LineSegmentHitListMap HitList& getHitList(osg::LineSegment* seg)
[more]int getNumHits(osg::LineSegment* seg)
[more]bool hits()
[more]virtual void apply(osg::Node&)
[more]virtual void apply(osg::Geode& node)
[more]virtual void apply(osg::Billboard& node)
[more]virtual void apply(osg::Group& node)
[more]virtual void apply(osg::Transform& node)
[more]virtual void apply(osg::Switch& node)
[more]virtual void apply(osg::LOD& node)

Public Members

[more]enum HitReportingMode
Modes to control how IntersectVisitor reports hits.

Protected Fields

[more]osg::NodePath _nodePath
[more]HitReportingMode _hitReportingMode
[more]LineSegmentHitListMap _segHitList

Protected Methods

[more]bool intersect(osg::GeoSet& gset)
[more]void pushMatrix(const osg::Matrix& matrix)
[more]void popMatrix()
[more]bool enterNode(osg::Node& node)
[more]void leaveNode()

Protected Members

[more]typedef std::vector<osg::ref_ptr<IntersectState> > IntersectStateStack IntersectStateStack _intersectStateStack


Documentation

Basic visitor for ray based collisions of a scene. Note, still in development, current version has not practical functionality!
o IntersectVisitor()

ovirtual ~IntersectVisitor()

ovoid reset()

ovoid addLineSegment(osg::LineSegment* seg)
Add a line segment to use for intersection testing during scene traversal

oenum HitReportingMode
Modes to control how IntersectVisitor reports hits.

o ONLY_NEAREST_HIT

o ALL_HITS

ovoid setHitReportingMode(HitReportingMode hrm)
Set the mode of how hits should reported back from a traversal

oHitReportingMode getHitReportingMode()
Get the mode of how hits should reported back from a traversal

otypedef std::map<osg::LineSegment*,HitList > LineSegmentHitListMap HitList& getHitList(osg::LineSegment* seg)

oint getNumHits(osg::LineSegment* seg)

obool hits()

ovirtual void apply(osg::Node&)

ovirtual void apply(osg::Geode& node)

ovirtual void apply(osg::Billboard& node)

ovirtual void apply(osg::Group& node)

ovirtual void apply(osg::Transform& node)

ovirtual void apply(osg::Switch& node)

ovirtual void apply(osg::LOD& node)

obool intersect(osg::GeoSet& gset)

ovoid pushMatrix(const osg::Matrix& matrix)

ovoid popMatrix()

obool enterNode(osg::Node& node)

ovoid leaveNode()

otypedef std::vector<osg::ref_ptr<IntersectState> > IntersectStateStack IntersectStateStack _intersectStateStack

oosg::NodePath _nodePath

oHitReportingMode _hitReportingMode

oLineSegmentHitListMap _segHitList


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.