OpenSceneGraph/doc/doc++/osgUtil/IntersectVisitor.html

231 lines
10 KiB
HTML
Raw Normal View History

2001-09-20 05:19:47 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class OSGUTIL_EXPORT osgUtil::IntersectVisitor</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
2002-06-05 20:35:59 +08:00
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::IntersectVisitor</A></H2></H2><BLOCKQUOTE>Basic visitor for ray based collisions of a scene</BLOCKQUOTE>
2001-09-20 05:19:47 +08:00
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="Mosg::NodeVisitor,M,CIntersectVisitor,MIntersectVisitor.html">
<param name=before value="M,M">
<param name=after value="Md_,M">
<param name=indent value="0,1">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.14.1">IntersectVisitor</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.14.2">~IntersectVisitor</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.14.3">reset</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.14.4">addLineSegment</A></B>(osg::LineSegment* seg)
2001-09-20 05:19:47 +08:00
<DD><I>Add a line segment to use for intersection testing during scene traversal</I>
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.14.6">setHitReportingMode</A></B>(<!1><A HREF="IntersectVisitor.html#DOC.2.14.5">HitReportingMode</A> hrm)
2001-09-20 05:19:47 +08:00
<DD><I>Set the mode of how hits should reported back from a traversal</I>
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="IntersectVisitor.html#DOC.2.14.5">HitReportingMode</A> <B><A HREF="#DOC.2.14.7">getHitReportingMode</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>Get the mode of how hits should reported back from a traversal</I>
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::map&lt;osg::LineSegment*,HitList &gt; LineSegmentHitListMap HitList&amp; <B><A HREF="#DOC.2.14.8">getHitList</A></B>(osg::LineSegment* seg)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.14.9">getNumHits</A></B>(osg::LineSegment* seg)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.14.10">hits</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.14.11">apply</A></B>(osg::Node&amp;)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.14.12">apply</A></B>(osg::Geode&amp; node)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.14.13">apply</A></B>(osg::Billboard&amp; node)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.14.14">apply</A></B>(osg::Group&amp; node)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.14.15">apply</A></B>(osg::Transform&amp; node)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.14.16">apply</A></B>(osg::Switch&amp; node)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.14.17">apply</A></B>(osg::LOD&amp; node)
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.14.5">HitReportingMode</A></B>
2001-09-20 05:19:47 +08:00
<DD><I>Modes to control how IntersectVisitor reports hits.</I>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::NodePath <B><A HREF="#DOC.2.14.25">_nodePath</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="IntersectVisitor.html#DOC.2.14.5">HitReportingMode</A> <B><A HREF="#DOC.2.14.26">_hitReportingMode</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>LineSegmentHitListMap <B><A HREF="#DOC.2.14.27">_segHitList</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.14.19">intersect</A></B>(osg::GeoSet&amp; gset)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.14.20">pushMatrix</A></B>(const osg::Matrix&amp; matrix)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.14.21">popMatrix</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.14.22">enterNode</A></B>(osg::Node&amp; node)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.14.23">leaveNode</A></B>()
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Members</H3><DD><DT>
2002-02-09 18:54:18 +08:00
class <B><A HREF="IntersectState.html">IntersectState</A></B>: public osg::Referenced
<DT>
2002-04-25 04:32:39 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector&lt;osg::ref_ptr&lt;<!1><A HREF="IntersectState.html">IntersectState</A>&gt; &gt; IntersectStateStack IntersectStateStack <B><A HREF="#DOC.2.14.24">_intersectStateStack</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
2002-06-05 20:35:59 +08:00
<BLOCKQUOTE>Basic visitor for ray based collisions of a scene</BLOCKQUOTE>
2001-09-20 05:19:47 +08:00
<DL>
<A NAME="IntersectVisitor"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.1"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> IntersectVisitor()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="~IntersectVisitor"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.2"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~IntersectVisitor()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="reset"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.3"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void reset()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="addLineSegment"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.4"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addLineSegment(osg::LineSegment* seg)</B></TT>
<DD>Add a line segment to use for intersection testing during scene traversal
<DL><DT><DD></DL><P>
<A NAME="HitReportingMode"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.5"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum HitReportingMode</B></TT>
<DD>Modes to control how IntersectVisitor reports hits.
<DL><DT><DD></DL><P><DL>
<A NAME="ONLY_NEAREST_HIT"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.5.1"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ONLY_NEAREST_HIT</B></TT>
<DL><DT><DD></DL><P>
<A NAME="ALL_HITS"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.5.2"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ALL_HITS</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="setHitReportingMode"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setHitReportingMode(<!1><A HREF="IntersectVisitor.html#DOC.2.14.5">HitReportingMode</A> hrm)</B></TT>
2001-09-20 05:19:47 +08:00
<DD>Set the mode of how hits should reported back from a traversal
<DL><DT><DD></DL><P>
<A NAME="getHitReportingMode"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="IntersectVisitor.html#DOC.2.14.5">HitReportingMode</A> getHitReportingMode()</B></TT>
2001-09-20 05:19:47 +08:00
<DD>Get the mode of how hits should reported back from a traversal
<DL><DT><DD></DL><P>
<A NAME="getHitList"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.8"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::map&lt;osg::LineSegment*,HitList &gt; LineSegmentHitListMap HitList&amp; getHitList(osg::LineSegment* seg)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getNumHits"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.9"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int getNumHits(osg::LineSegment* seg)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="hits"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.10"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool hits()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.11"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Node&amp;)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.12"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Geode&amp; node)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.13"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Billboard&amp; node)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.14"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Group&amp; node)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.15"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Transform&amp; node)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.16"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Switch&amp; node)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.17"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::LOD&amp; node)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="intersect"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.19"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool intersect(osg::GeoSet&amp; gset)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="pushMatrix"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.20"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void pushMatrix(const osg::Matrix&amp; matrix)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="popMatrix"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.21"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void popMatrix()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="enterNode"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.22"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool enterNode(osg::Node&amp; node)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="leaveNode"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.23"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void leaveNode()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_intersectStateStack"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.24"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector&lt;osg::ref_ptr&lt;<!1><A HREF="IntersectState.html">IntersectState</A>&gt; &gt; IntersectStateStack IntersectStateStack _intersectStateStack</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_nodePath"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.25"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::NodePath _nodePath</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_hitReportingMode"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.26"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="IntersectVisitor.html#DOC.2.14.5">HitReportingMode</A> _hitReportingMode</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="_segHitList"></A>
2002-04-25 04:32:39 +08:00
<A NAME="DOC.2.14.27"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>LineSegmentHitListMap _segHitList</B></TT>
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>