OpenSceneGraph/doc/doc++/osg/LineSegment.html

200 lines
11 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 SG_EXPORT osg::LineSegment</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class SG_EXPORT <A HREF="#DOC.DOCU">osg::LineSegment</A></H2></H2><BLOCKQUOTE>LineSegmentment class for representing a line segment</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="CReferenced,MReferenced.html,CLineSegment,MLineSegment.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>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.44.1">LineSegment</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.44.2">LineSegment</A></B>(const <!1><A HREF="LineSegment.html#DOC.2.44.2">LineSegment</A>&amp; seg)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.44.3">LineSegment</A></B>(const <!1><A HREF="Vec3.html">Vec3</A>&amp; <!1><A HREF="ImpostorSprite.html#DOC.2.40.22">s</A>, const <!1><A HREF="Vec3.html">Vec3</A>&amp; e)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.44.4">~LineSegment</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="LineSegment.html">LineSegment</A>&amp; <B><A HREF="#DOC.2.44.5">operator = </A></B>(const <!1><A HREF="LineSegment.html">LineSegment</A>&amp; seg)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.44.6">set</A></B>(const <!1><A HREF="Vec3.html">Vec3</A>&amp; <!1><A HREF="ImpostorSprite.html#DOC.2.40.22">s</A>, const <!1><A HREF="Vec3.html">Vec3</A>&amp; e)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec3.html">Vec3</A>&amp; <B><A HREF="#DOC.2.44.7">start</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Vec3.html">Vec3</A>&amp; <B><A HREF="#DOC.2.44.8">start</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec3.html">Vec3</A>&amp; <B><A HREF="#DOC.2.44.9">end</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Vec3.html">Vec3</A>&amp; <B><A HREF="#DOC.2.44.10">end</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.44.11">intersect</A></B>(const <!1><A HREF="BoundingBox.html">BoundingBox</A>&amp; bb) const
2001-09-20 05:19:47 +08:00
<DD><I>return true if segment intersects BoundingBox</I>
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.44.12">intersect</A></B>(const <!1><A HREF="BoundingBox.html">BoundingBox</A>&amp; bb, float&amp; r1, float&amp; r2) const
2001-09-20 05:19:47 +08:00
<DD><I>return true if segment intersects BoundingSphere and return the intersection ratio's</I>
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.44.13">intersect</A></B>(const <!1><A HREF="BoundingSphere.html">BoundingSphere</A>&amp; bs) const
2001-09-20 05:19:47 +08:00
<DD><I>return true if segment intersects BoundingSphere</I>
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.44.14">intersect</A></B>(const <!1><A HREF="BoundingSphere.html">BoundingSphere</A>&amp; bs, float&amp; r1, float&amp; r2) const
2001-09-20 05:19:47 +08:00
<DD><I>return true if segment intersects BoundingSphere and return the intersection ratio's</I>
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.44.15">intersect</A></B>(const <!1><A HREF="Vec3.html">Vec3</A>&amp; v1, const <!1><A HREF="Vec3.html">Vec3</A>&amp; v2, const <!1><A HREF="Vec3.html">Vec3</A>&amp; v3, float&amp; <!1><A HREF="Image.html#DOC.2.36.10">r</A>)
2001-09-20 05:19:47 +08:00
<DD><I>return true if segment intersects triangle and set ratio long segment.</I>
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.44.16">mult</A></B>(const <!1><A HREF="LineSegment.html">LineSegment</A>&amp; seg, const <!1><A HREF="Matrix.html">Matrix</A>&amp; m)
2001-09-20 05:19:47 +08:00
<DD><I>post multiply a segment by matrix</I>
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.44.17">mult</A></B>(const <!1><A HREF="Matrix.html">Matrix</A>&amp; m, const <!1><A HREF="LineSegment.html">LineSegment</A>&amp; seg)
2001-09-20 05:19:47 +08:00
<DD><I>pre multiply a segment by matrix</I>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Vec3.html">Vec3</A> <B><A HREF="#DOC.2.44.19">_s</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Vec3.html">Vec3</A> <B><A HREF="#DOC.2.44.20">_e</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static const bool <B><A HREF="#DOC.2.44.18">intersectAndClip</A></B>(<!1><A HREF="Vec3.html">Vec3</A>&amp; <!1><A HREF="ImpostorSprite.html#DOC.2.40.22">s</A>, <!1><A HREF="Vec3.html">Vec3</A>&amp; e, const <!1><A HREF="BoundingBox.html">BoundingBox</A>&amp; bb)
2001-09-20 05:19:47 +08:00
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Referenced.html">Referenced</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>ref</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline const int <B>referenceCount</B>() const
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>mutable int <B>_refCount</B>
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>LineSegmentment class for representing a line segment</BLOCKQUOTE>
<DL>
<A NAME="LineSegment"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.1"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LineSegment()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="LineSegment"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LineSegment(const <!1><A HREF="LineSegment.html#DOC.2.44.2">LineSegment</A>&amp; seg)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="LineSegment"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LineSegment(const <!1><A HREF="Vec3.html">Vec3</A>&amp; <!1><A HREF="ImpostorSprite.html#DOC.2.40.22">s</A>, const <!1><A HREF="Vec3.html">Vec3</A>&amp; e)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="~LineSegment"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.4"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~LineSegment()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="operator = "></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.5"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="LineSegment.html">LineSegment</A>&amp; operator = (const <!1><A HREF="LineSegment.html">LineSegment</A>&amp; seg)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="set"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void set(const <!1><A HREF="Vec3.html">Vec3</A>&amp; <!1><A HREF="ImpostorSprite.html#DOC.2.40.22">s</A>, const <!1><A HREF="Vec3.html">Vec3</A>&amp; e)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="start"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.7"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec3.html">Vec3</A>&amp; start()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="start"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.8"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Vec3.html">Vec3</A>&amp; start() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="end"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.9"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec3.html">Vec3</A>&amp; end()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="end"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.10"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Vec3.html">Vec3</A>&amp; end() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="intersect"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.11"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool intersect(const <!1><A HREF="BoundingBox.html">BoundingBox</A>&amp; bb) const </B></TT>
<DD>return true if segment intersects BoundingBox
<DL><DT><DD></DL><P>
<A NAME="intersect"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.12"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool intersect(const <!1><A HREF="BoundingBox.html">BoundingBox</A>&amp; bb, float&amp; r1, float&amp; r2) const </B></TT>
<DD>return true if segment intersects BoundingSphere and return the intersection ratio's
<DL><DT><DD></DL><P>
<A NAME="intersect"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.13"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool intersect(const <!1><A HREF="BoundingSphere.html">BoundingSphere</A>&amp; bs) const </B></TT>
<DD>return true if segment intersects BoundingSphere
<DL><DT><DD></DL><P>
<A NAME="intersect"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.14"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool intersect(const <!1><A HREF="BoundingSphere.html">BoundingSphere</A>&amp; bs, float&amp; r1, float&amp; r2) const </B></TT>
<DD>return true if segment intersects BoundingSphere and return the intersection ratio's
<DL><DT><DD></DL><P>
<A NAME="intersect"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool intersect(const <!1><A HREF="Vec3.html">Vec3</A>&amp; v1, const <!1><A HREF="Vec3.html">Vec3</A>&amp; v2, const <!1><A HREF="Vec3.html">Vec3</A>&amp; v3, float&amp; <!1><A HREF="Image.html#DOC.2.36.10">r</A>)</B></TT>
2001-09-20 05:19:47 +08:00
<DD>return true if segment intersects triangle and set ratio long segment.
<DL><DT><DD></DL><P>
<A NAME="mult"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.16"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void mult(const <!1><A HREF="LineSegment.html">LineSegment</A>&amp; seg, const <!1><A HREF="Matrix.html">Matrix</A>&amp; m)</B></TT>
<DD>post multiply a segment by matrix
<DL><DT><DD></DL><P>
<A NAME="mult"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.17"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void mult(const <!1><A HREF="Matrix.html">Matrix</A>&amp; m, const <!1><A HREF="LineSegment.html">LineSegment</A>&amp; seg)</B></TT>
<DD>pre multiply a segment by matrix
<DL><DT><DD></DL><P>
<A NAME="intersectAndClip"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static const bool intersectAndClip(<!1><A HREF="Vec3.html">Vec3</A>&amp; <!1><A HREF="ImpostorSprite.html#DOC.2.40.22">s</A>, <!1><A HREF="Vec3.html">Vec3</A>&amp; e, const <!1><A HREF="BoundingBox.html">BoundingBox</A>&amp; bb)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="_s"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.19"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Vec3.html">Vec3</A> _s</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_e"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.44.20"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Vec3.html">Vec3</A> _e</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>