OpenSceneGraph/doc/doc++/osg/Box.html

236 lines
11 KiB
HTML
Raw Normal View History

2003-04-18 00:22:51 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class osg::Box</TITLE>
2004-08-06 14:53:36 +08:00
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.6">
2003-04-18 00:22:51 +08:00
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class <A HREF="#DOC.DOCU">osg::Box</A></H2></H2><HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=125>
<param name=classes value="CReferenced,MReferenced.html,CObject,MObject.html,CShape,MShape.html,CBox,MBox.html">
<param name=before value="M,M,M,M">
<param name=after value="Md_SPSP,Md_SP,Md_,M">
<param name=indent value="0,1,2,3">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.208.1">Box</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.208.2">Box</A></B>(const <!1><A HREF="osg.html#DOC.2.262">osg::Vec3</A>&amp; <!1><A HREF="BoundingSphere.html#DOC.2.47.8">center</A>, float <!1><A HREF="Viewport.html#DOC.2.278.10">width</A>)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.208.3">Box</A></B>(const <!1><A HREF="osg.html#DOC.2.262">osg::Vec3</A>&amp; <!1><A HREF="BoundingSphere.html#DOC.2.47.8">center</A>, float lengthX, float lengthY, float lengthZ)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.208.4">Box</A></B>(const <!1><A HREF="Box.html#DOC.2.208.4">Box</A>&amp; box, const <!1><A HREF="CopyOp.html">CopyOp</A>&amp; copyop=CopyOp::SHALLOW_COPY)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.208.5">META_Shape</A></B>(<!1><A HREF="osg.html">osg</A>, <!1><A HREF="Box.html">Box</A>)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.208.6">valid</A></B>() const
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.208.7">set</A></B>(const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; <!1><A HREF="BoundingSphere.html#DOC.2.47.8">center</A>, const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; halfLengths)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.208.8">setCenter</A></B>(const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; <!1><A HREF="BoundingSphere.html#DOC.2.47.8">center</A>)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; <B><A HREF="#DOC.2.208.9">getCenter</A></B>() const
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.208.10">setHalfLengths</A></B>(const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; halfLengths)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; <B><A HREF="#DOC.2.208.11">getHalfLengths</A></B>() const
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.208.12">setRotation</A></B>(const <!1><A HREF="Quat.html">Quat</A>&amp; quat)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Quat.html">Quat</A>&amp; <B><A HREF="#DOC.2.208.13">getRotation</A></B>() const
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="osg.html#DOC.2.134">Matrix</A> <B><A HREF="#DOC.2.208.14">getRotationMatrix</A></B>() const
2003-07-23 19:27:31 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.208.15">zeroRotation</A></B>() const
2003-04-18 00:22:51 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="osg.html#DOC.2.262">Vec3</A> <B><A HREF="#DOC.2.208.17">_center</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="osg.html#DOC.2.262">Vec3</A> <B><A HREF="#DOC.2.208.18">_halfLengths</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Quat.html">Quat</A> <B><A HREF="#DOC.2.208.19">_rotation</A></B>
2003-04-18 00:22:51 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.208.16">~Box</A></B>()
2003-04-18 00:22:51 +08:00
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Shape.html">Shape</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>virtual <!1><A HREF="Object.html">Object</A>* <B>cloneType</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual <!1><A HREF="Object.html">Object</A>* <B>clone</B>(const <!1><A HREF="CopyOp.html">CopyOp</A>&amp;) const
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual bool <B>isSameKindAs</B>(const <!1><A HREF="Object.html">Object</A>* obj) const
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual const char* <B>libraryName</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual const char* <B>className</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>accept</B>(<!1><A HREF="ShapeVisitor.html">ShapeVisitor</A>&amp;)
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>accept</B>(<!1><A HREF="ConstShapeVisitor.html">ConstShapeVisitor</A>&amp;) const
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Object.html">Object</A>:</H3>
<DL>
2004-08-06 14:53:36 +08:00
<P><DL>
<DT><H3>Public Classes</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>enum <B>DataVariance</B>
</DL></P>
2003-04-18 00:22:51 +08:00
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="o" SRC=icon2.gif>inline void <B>setDataVariance</B>(<!1><A HREF="Object.html#DOC.2.167.8">DataVariance</A> dv)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Object.html#DOC.2.167.8">DataVariance</A> <B>getDataVariance</B>() const
2003-04-18 00:22:51 +08:00
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>setUserData</B>(<!1><A HREF="Referenced.html">Referenced</A>* obj)
<DT>
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Referenced.html">Referenced</A>* <B>getUserData</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>inline const <!1><A HREF="Referenced.html">Referenced</A>* <B>getUserData</B>() const
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="Object.html#DOC.2.167.8">DataVariance</A> <B>_dataVariance</B>
2003-04-18 00:22:51 +08:00
<DT>
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Referenced.html">Referenced</A>&gt; <B>_userData</B>
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Referenced.html">Referenced</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Referenced.html">Referenced</A>&amp; <B>operator = </B>(const <!1><A HREF="Referenced.html">Referenced</A>&amp;)
2003-04-18 00:22:51 +08:00
<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>
2004-08-06 14:53:36 +08:00
<IMG ALT="o" SRC=icon2.gif>mutable OpenThreads::Mutex <B>_refMutex</B>
<DT>
2003-04-18 00:22:51 +08:00
<IMG ALT="o" SRC=icon2.gif>mutable int <B>_refCount</B>
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<DL>
<A NAME="Box"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.1"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Box()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="Box"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Box(const <!1><A HREF="osg.html#DOC.2.262">osg::Vec3</A>&amp; <!1><A HREF="BoundingSphere.html#DOC.2.47.8">center</A>, float <!1><A HREF="Viewport.html#DOC.2.278.10">width</A>)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="Box"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Box(const <!1><A HREF="osg.html#DOC.2.262">osg::Vec3</A>&amp; <!1><A HREF="BoundingSphere.html#DOC.2.47.8">center</A>, float lengthX, float lengthY, float lengthZ)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="Box"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Box(const <!1><A HREF="Box.html#DOC.2.208.4">Box</A>&amp; box, const <!1><A HREF="CopyOp.html">CopyOp</A>&amp; copyop=CopyOp::SHALLOW_COPY)</B></TT>
2003-07-23 19:27:31 +08:00
<DL><DT><DD></DL><P>
<A NAME="META_Shape"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.5"></A>
2003-07-23 19:27:31 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> META_Shape(<!1><A HREF="osg.html">osg</A>, <!1><A HREF="Box.html">Box</A>)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
2003-07-23 19:27:31 +08:00
<A NAME="valid"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.6"></A>
2003-07-23 19:27:31 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool valid() const </B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="set"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void set(const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; <!1><A HREF="BoundingSphere.html#DOC.2.47.8">center</A>, const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; halfLengths)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="setCenter"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setCenter(const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; <!1><A HREF="BoundingSphere.html#DOC.2.47.8">center</A>)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="getCenter"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; getCenter() const </B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="setHalfLengths"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setHalfLengths(const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; halfLengths)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="getHalfLengths"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="osg.html#DOC.2.262">Vec3</A>&amp; getHalfLengths() const </B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="setRotation"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.12"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setRotation(const <!1><A HREF="Quat.html">Quat</A>&amp; quat)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getRotation"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.13"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Quat.html">Quat</A>&amp; getRotation() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="getRotationMatrix"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="osg.html#DOC.2.134">Matrix</A> getRotationMatrix() const </B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="zeroRotation"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.15"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool zeroRotation() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="~Box"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.16"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~Box()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_center"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.17"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="osg.html#DOC.2.262">Vec3</A> _center</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="_halfLengths"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="osg.html#DOC.2.262">Vec3</A> _halfLengths</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="_rotation"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.208.19"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Quat.html">Quat</A> _rotation</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>
2004-08-06 14:53:36 +08:00
This page was generated with the help of <A HREF="http://www.linuxsupportline.com/~doc++">DOC++</A>.
2003-04-18 00:22:51 +08:00
</BODY>
</HTML>