212 lines
11 KiB
HTML
212 lines
11 KiB
HTML
<!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.10">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
|
|
<H2>class SG_EXPORT <A HREF="#DOC.DOCU">osg::LineSegment</A></H2></H2><BLOCKQUOTE>LineSegment 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>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.98.1">LineSegment</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.98.2">LineSegment</A></B>(const <!1><A HREF="LineSegment.html#DOC.2.98.2">LineSegment</A>& seg)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.98.3">LineSegment</A></B>(const <!1><A HREF="Vec3.html">Vec3</A>& <!1><A HREF="ImpostorSprite.html#DOC.2.92.24">s</A>, const <!1><A HREF="Vec3.html">Vec3</A>& e)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="LineSegment.html">LineSegment</A>& <B><A HREF="#DOC.2.98.4">operator = </A></B>(const <!1><A HREF="LineSegment.html">LineSegment</A>& seg)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.98.5">set</A></B>(const <!1><A HREF="Vec3.html">Vec3</A>& <!1><A HREF="ImpostorSprite.html#DOC.2.92.24">s</A>, const <!1><A HREF="Vec3.html">Vec3</A>& e)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec3.html">Vec3</A>& <B><A HREF="#DOC.2.98.6">start</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Vec3.html">Vec3</A>& <B><A HREF="#DOC.2.98.7">start</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec3.html">Vec3</A>& <B><A HREF="#DOC.2.98.8">end</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Vec3.html">Vec3</A>& <B><A HREF="#DOC.2.98.9">end</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.98.10">valid</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.98.11">intersect</A></B>(const <!1><A HREF="BoundingBox.html">BoundingBox</A>& bb) const
|
|
<DD><I>return true if segment intersects BoundingBox</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.98.12">intersect</A></B>(const <!1><A HREF="BoundingBox.html">BoundingBox</A>& bb, float& r1, float& r2) const
|
|
<DD><I>return true if segment intersects BoundingBox and return the intersection ratio's</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.98.13">intersect</A></B>(const <!1><A HREF="BoundingSphere.html">BoundingSphere</A>& bs) const
|
|
<DD><I>return true if segment intersects BoundingSphere</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.98.14">intersect</A></B>(const <!1><A HREF="BoundingSphere.html">BoundingSphere</A>& bs, float& r1, float& r2) const
|
|
<DD><I>return true if segment intersects BoundingSphere and return the intersection ratio's</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.98.15">intersect</A></B>(const <!1><A HREF="Vec3.html">Vec3</A>& v1, const <!1><A HREF="Vec3.html">Vec3</A>& v2, const <!1><A HREF="Vec3.html">Vec3</A>& v3, float& <!1><A HREF="UByte4.html#DOC.2.222.12">r</A>)
|
|
<DD><I>return true if segment intersects triangle and set ratio long segment.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.98.16">mult</A></B>(const <!1><A HREF="LineSegment.html">LineSegment</A>& seg, const <!1><A HREF="osg.html#DOC.2.102">Matrix</A>& m)
|
|
<DD><I>post multiply a segment by matrix</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.98.17">mult</A></B>(const <!1><A HREF="osg.html#DOC.2.102">Matrix</A>& m, const <!1><A HREF="LineSegment.html">LineSegment</A>& seg)
|
|
<DD><I>pre multiply a segment by matrix</I>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Fields</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Vec3.html">Vec3</A> <B><A HREF="#DOC.2.98.20">_s</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Vec3.html">Vec3</A> <B><A HREF="#DOC.2.98.21">_e</A></B>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.98.18">~LineSegment</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static bool <B><A HREF="#DOC.2.98.19">intersectAndClip</A></B>(<!1><A HREF="Vec3.html">Vec3</A>& <!1><A HREF="ImpostorSprite.html#DOC.2.92.24">s</A>, <!1><A HREF="Vec3.html">Vec3</A>& e, const <!1><A HREF="BoundingBox.html">BoundingBox</A>& bb)
|
|
</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>static void <B>setDeleteHandler</B>(<!1><A HREF="DeleteHandler.html">DeleteHandler</A>* handler)
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>static <!1><A HREF="DeleteHandler.html">DeleteHandler</A>* <B>getDeleteHandler</B>()
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>ref</B>() const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref_nodelete</B>() const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline int <B>referenceCount</B>() const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref</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>LineSegment class for representing a line segment</BLOCKQUOTE>
|
|
<DL>
|
|
|
|
<A NAME="LineSegment"></A>
|
|
<A NAME="DOC.2.98.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LineSegment()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="LineSegment"></A>
|
|
<A NAME="DOC.2.98.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LineSegment(const <!1><A HREF="LineSegment.html#DOC.2.98.2">LineSegment</A>& seg)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="LineSegment"></A>
|
|
<A NAME="DOC.2.98.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LineSegment(const <!1><A HREF="Vec3.html">Vec3</A>& <!1><A HREF="ImpostorSprite.html#DOC.2.92.24">s</A>, const <!1><A HREF="Vec3.html">Vec3</A>& e)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator = "></A>
|
|
<A NAME="DOC.2.98.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="LineSegment.html">LineSegment</A>& operator = (const <!1><A HREF="LineSegment.html">LineSegment</A>& seg)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="set"></A>
|
|
<A NAME="DOC.2.98.5"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void set(const <!1><A HREF="Vec3.html">Vec3</A>& <!1><A HREF="ImpostorSprite.html#DOC.2.92.24">s</A>, const <!1><A HREF="Vec3.html">Vec3</A>& e)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="start"></A>
|
|
<A NAME="DOC.2.98.6"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec3.html">Vec3</A>& start()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="start"></A>
|
|
<A NAME="DOC.2.98.7"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Vec3.html">Vec3</A>& start() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="end"></A>
|
|
<A NAME="DOC.2.98.8"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec3.html">Vec3</A>& end()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="end"></A>
|
|
<A NAME="DOC.2.98.9"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Vec3.html">Vec3</A>& end() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="valid"></A>
|
|
<A NAME="DOC.2.98.10"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool valid() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="intersect"></A>
|
|
<A NAME="DOC.2.98.11"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool intersect(const <!1><A HREF="BoundingBox.html">BoundingBox</A>& bb) const </B></TT>
|
|
<DD>return true if segment intersects BoundingBox
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="intersect"></A>
|
|
<A NAME="DOC.2.98.12"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool intersect(const <!1><A HREF="BoundingBox.html">BoundingBox</A>& bb, float& r1, float& r2) const </B></TT>
|
|
<DD>return true if segment intersects BoundingBox and return the intersection ratio's
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="intersect"></A>
|
|
<A NAME="DOC.2.98.13"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool intersect(const <!1><A HREF="BoundingSphere.html">BoundingSphere</A>& bs) const </B></TT>
|
|
<DD>return true if segment intersects BoundingSphere
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="intersect"></A>
|
|
<A NAME="DOC.2.98.14"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool intersect(const <!1><A HREF="BoundingSphere.html">BoundingSphere</A>& bs, float& r1, float& 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>
|
|
<A NAME="DOC.2.98.15"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool intersect(const <!1><A HREF="Vec3.html">Vec3</A>& v1, const <!1><A HREF="Vec3.html">Vec3</A>& v2, const <!1><A HREF="Vec3.html">Vec3</A>& v3, float& <!1><A HREF="UByte4.html#DOC.2.222.12">r</A>)</B></TT>
|
|
<DD>return true if segment intersects triangle and set ratio long segment.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="mult"></A>
|
|
<A NAME="DOC.2.98.16"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void mult(const <!1><A HREF="LineSegment.html">LineSegment</A>& seg, const <!1><A HREF="osg.html#DOC.2.102">Matrix</A>& m)</B></TT>
|
|
<DD>post multiply a segment by matrix
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="mult"></A>
|
|
<A NAME="DOC.2.98.17"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void mult(const <!1><A HREF="osg.html#DOC.2.102">Matrix</A>& m, const <!1><A HREF="LineSegment.html">LineSegment</A>& seg)</B></TT>
|
|
<DD>pre multiply a segment by matrix
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="~LineSegment"></A>
|
|
<A NAME="DOC.2.98.18"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~LineSegment()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="intersectAndClip"></A>
|
|
<A NAME="DOC.2.98.19"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static bool intersectAndClip(<!1><A HREF="Vec3.html">Vec3</A>& <!1><A HREF="ImpostorSprite.html#DOC.2.92.24">s</A>, <!1><A HREF="Vec3.html">Vec3</A>& e, const <!1><A HREF="BoundingBox.html">BoundingBox</A>& bb)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_s"></A>
|
|
<A NAME="DOC.2.98.20"></A>
|
|
<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>
|
|
<A NAME="DOC.2.98.21"></A>
|
|
<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>
|