Basic visitor for ray based collisions of a scene.
Inheritance:
Public Methods
-
IntersectVisitor()
-
virtual ~IntersectVisitor()
-
void reset()
-
void addLineSegment(osg::LineSegment* seg)
- Add a line segment to use for intersection testing during scene traversal
-
void setHitReportingMode(HitReportingMode hrm)
- Set the mode of how hits should reported back from a traversal
-
HitReportingMode getHitReportingMode()
- Get the mode of how hits should reported back from a traversal
-
typedef std::map<osg::LineSegment*,HitList > LineSegmentHitListMap HitList& getHitList(osg::LineSegment* seg)
-
int getNumHits(osg::LineSegment* seg)
-
bool hits()
-
virtual void apply(osg::Node&)
-
virtual void apply(osg::Geode& node)
-
virtual void apply(osg::Billboard& node)
-
virtual void apply(osg::Group& node)
-
virtual void apply(osg::Transform& node)
-
virtual void apply(osg::Switch& node)
-
virtual void apply(osg::LOD& node)
Public Members
-
enum HitReportingMode
- Modes to control how IntersectVisitor reports hits.
Protected Fields
-
osg::NodePath _nodePath
-
HitReportingMode _hitReportingMode
-
LineSegmentHitListMap _segHitList
Protected Methods
-
bool intersect(osg::GeoSet& gset)
-
void pushMatrix(const osg::Matrix& matrix)
-
void popMatrix()
-
bool enterNode(osg::Node& node)
-
void leaveNode()
Protected Members
-
class IntersectState: public osg::Referenced
-
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!
IntersectVisitor()
virtual ~IntersectVisitor()
void reset()
void addLineSegment(osg::LineSegment* seg)
- Add a line segment to use for intersection testing during scene traversal
enum HitReportingMode
- Modes to control how IntersectVisitor reports hits.
ONLY_NEAREST_HIT
ALL_HITS
void setHitReportingMode(HitReportingMode hrm)
- Set the mode of how hits should reported back from a traversal
HitReportingMode getHitReportingMode()
- Get the mode of how hits should reported back from a traversal
typedef std::map<osg::LineSegment*,HitList > LineSegmentHitListMap HitList& getHitList(osg::LineSegment* seg)
int getNumHits(osg::LineSegment* seg)
bool hits()
virtual void apply(osg::Node&)
virtual void apply(osg::Geode& node)
virtual void apply(osg::Billboard& node)
virtual void apply(osg::Group& node)
virtual void apply(osg::Transform& node)
virtual void apply(osg::Switch& node)
virtual void apply(osg::LOD& node)
bool intersect(osg::GeoSet& gset)
void pushMatrix(const osg::Matrix& matrix)
void popMatrix()
bool enterNode(osg::Node& node)
void leaveNode()
typedef std::vector<osg::ref_ptr<IntersectState> > IntersectStateStack IntersectStateStack _intersectStateStack
osg::NodePath _nodePath
HitReportingMode _hitReportingMode
LineSegmentHitListMap _segHitList
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.