OpenSceneGraph/doc/doc++/osg/Geode.html

195 lines
9.5 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::Geode</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class SG_EXPORT <A HREF="#DOC.DOCU">osg::Geode</A></H2></H2><BLOCKQUOTE>Leaf Node for grouping Drawables</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=95>
<param name=classes value="MNode,M,CGeode,MGeode.html,CBillboard,MBillboard.html">
<param name=before value="M,M,M^_">
<param name=after value="Md_,M,M">
<param name=indent value="0,1,1">
2001-09-20 05:19:47 +08:00
<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.66.2">Geode</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.66.3">Geode</A></B>(const <!1><A HREF="Geode.html#DOC.2.66.3">Geode</A>&amp;, const <!1><A HREF="CopyOp.html">CopyOp</A>&amp; copyop=CopyOp::SHALLOW_COPY)
2002-02-09 18:54:18 +08:00
<DD><I>Copy constructor using CopyOp to manage deep vs shallow copy</I>
2001-09-20 05:19:47 +08:00
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.66.4">META_Node</A></B>(<!1><A HREF="osg.html">osg</A>, <!1><A HREF="Geode.html">Geode</A>)
2002-02-09 18:54:18 +08:00
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.66.5">addDrawable</A></B>( <!1><A HREF="Drawable.html">Drawable</A>* drawable )
2001-09-20 05:19:47 +08:00
<DD><I>Add Drawable to Geode.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.66.6">removeDrawable</A></B>( <!1><A HREF="Drawable.html">Drawable</A>* drawable )
2001-09-20 05:19:47 +08:00
<DD><I>Remove Drawable from Geode.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.66.7">replaceDrawable</A></B>( <!1><A HREF="Drawable.html">Drawable</A>* origDraw, <!1><A HREF="Drawable.html">Drawable</A>* newDraw )
2001-09-20 05:19:47 +08:00
<DD><I>Replace specified Drawable with another Drawable.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned int <B><A HREF="#DOC.2.66.8">getNumDrawables</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>return the number of geoset's</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Drawable.html">Drawable</A>* <B><A HREF="#DOC.2.66.9">getDrawable</A></B>( unsigned int i )
2001-09-20 05:19:47 +08:00
<DD><I>return geoset at position i</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Drawable.html">Drawable</A>* <B><A HREF="#DOC.2.66.10">getDrawable</A></B>( unsigned int i ) const
2001-09-20 05:19:47 +08:00
<DD><I>return geoset at position i</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.66.11">containsDrawable</A></B>(const <!1><A HREF="Drawable.html">Drawable</A>* gset) const
2001-09-22 10:42:08 +08:00
<DD><I>return true if geoset is contained within Geode</I>
2001-09-20 05:19:47 +08:00
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline DrawableList::iterator <B><A HREF="#DOC.2.66.12">findDrawable</A></B>(const <!1><A HREF="Drawable.html">Drawable</A>* gset)
2001-12-25 05:56:22 +08:00
<DD><I>return the iterator position for specified Drawable.</I>
2001-09-20 05:19:47 +08:00
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline DrawableList::const_iterator <B><A HREF="#DOC.2.66.13">findDrawable</A></B>(const <!1><A HREF="Drawable.html">Drawable</A>* gset) const
2001-12-25 05:56:22 +08:00
<DD><I>return the const_iterator position for specified Drawable.</I>
2001-09-20 05:19:47 +08:00
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.66.14">compileDrawables</A></B>(<!1><A HREF="State.html">State</A>&amp; state)
2001-12-25 05:56:22 +08:00
<DD><I>compile OpenGL Display List for each geoset</I>
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector&lt; <!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Drawable.html">Drawable</A>&gt; &gt; <B><A HREF="#DOC.2.66.1">DrawableList</A></B>
</DL></P>
2001-09-20 05:19:47 +08:00
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Geode.html#DOC.2.66.1">DrawableList</A> <B><A HREF="#DOC.2.66.17">_drawables</A></B>
2001-09-20 05:19:47 +08:00
</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.66.15">~Geode</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.66.16">computeBound</A></B>() const
2001-09-20 05:19:47 +08:00
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>Leaf Node for grouping Drawables</BLOCKQUOTE>
<DL>
<A NAME="DrawableList"></A>
<A NAME="DOC.2.66.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector&lt; <!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Drawable.html">Drawable</A>&gt; &gt; DrawableList</B></TT>
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="Geode"></A>
<A NAME="DOC.2.66.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Geode()</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
2002-02-09 18:54:18 +08:00
<A NAME="Geode"></A>
<A NAME="DOC.2.66.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Geode(const <!1><A HREF="Geode.html#DOC.2.66.3">Geode</A>&amp;, const <!1><A HREF="CopyOp.html">CopyOp</A>&amp; copyop=CopyOp::SHALLOW_COPY)</B></TT>
2002-02-09 18:54:18 +08:00
<DD>Copy constructor using CopyOp to manage deep vs shallow copy
<DL><DT><DD></DL><P>
2001-09-22 10:42:08 +08:00
<A NAME="META_Node"></A>
<A NAME="DOC.2.66.4"></A>
2002-07-17 04:07:32 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> META_Node(<!1><A HREF="osg.html">osg</A>, <!1><A HREF="Geode.html">Geode</A>)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="addDrawable"></A>
<A NAME="DOC.2.66.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool addDrawable( <!1><A HREF="Drawable.html">Drawable</A>* drawable )</B></TT>
2001-09-20 05:19:47 +08:00
<DD>Add Drawable to Geode.
If gset is not NULL and is not contained in Geode then increment its
reference count, add it to the drawables list and dirty the bounding
sphere to force it to recompute on next getBound() and return true for success.
Otherwise return false.
<DL><DT><DD></DL><P>
<A NAME="removeDrawable"></A>
<A NAME="DOC.2.66.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool removeDrawable( <!1><A HREF="Drawable.html">Drawable</A>* drawable )</B></TT>
2001-09-20 05:19:47 +08:00
<DD>Remove Drawable from Geode.
If gset is contained in Geode then remove it from the geoset
list and decrement its reference count, and dirty the
bounding sphere to force it to recompute on next getBound() and
return true for success. If gset is not found then return false
and do not change the reference count of gset.
<DL><DT><DD></DL><P>
<A NAME="replaceDrawable"></A>
<A NAME="DOC.2.66.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool replaceDrawable( <!1><A HREF="Drawable.html">Drawable</A>* origDraw, <!1><A HREF="Drawable.html">Drawable</A>* newDraw )</B></TT>
2001-09-20 05:19:47 +08:00
<DD>Replace specified Drawable with another Drawable.
Decrement the reference count origGSet and increments the
reference count of newGset, and dirty the bounding sphere
to force it to recompute on next getBound() and returns true.
If origDrawable is not found then return false and do not
add newGset. If newGset is NULL then return false and do
not remove origGset.
<DL><DT><DD></DL><P>
<A NAME="getNumDrawables"></A>
<A NAME="DOC.2.66.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned int getNumDrawables() const </B></TT>
2001-09-20 05:19:47 +08:00
<DD>return the number of geoset's
<DL><DT><DD></DL><P>
<A NAME="getDrawable"></A>
<A NAME="DOC.2.66.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Drawable.html">Drawable</A>* getDrawable( unsigned int i )</B></TT>
2001-09-20 05:19:47 +08:00
<DD>return geoset at position i
<DL><DT><DD></DL><P>
<A NAME="getDrawable"></A>
<A NAME="DOC.2.66.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Drawable.html">Drawable</A>* getDrawable( unsigned int i ) const </B></TT>
2001-09-20 05:19:47 +08:00
<DD>return geoset at position i
<DL><DT><DD></DL><P>
<A NAME="containsDrawable"></A>
<A NAME="DOC.2.66.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool containsDrawable(const <!1><A HREF="Drawable.html">Drawable</A>* gset) const </B></TT>
2001-09-22 10:42:08 +08:00
<DD>return true if geoset is contained within Geode
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="findDrawable"></A>
<A NAME="DOC.2.66.12"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline DrawableList::iterator findDrawable(const <!1><A HREF="Drawable.html">Drawable</A>* gset)</B></TT>
2001-12-25 05:56:22 +08:00
<DD>return the iterator position for specified Drawable.
2001-09-20 05:19:47 +08:00
return _geoset.end() if gset not is contained in Geode.
<DL><DT><DD></DL><P>
<A NAME="findDrawable"></A>
<A NAME="DOC.2.66.13"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline DrawableList::const_iterator findDrawable(const <!1><A HREF="Drawable.html">Drawable</A>* gset) const </B></TT>
2001-12-25 05:56:22 +08:00
<DD>return the const_iterator position for specified Drawable.
2001-09-20 05:19:47 +08:00
return _geoset.end() if gset not is contained in Geode.
<DL><DT><DD></DL><P>
<A NAME="compileDrawables"></A>
<A NAME="DOC.2.66.14"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void compileDrawables(<!1><A HREF="State.html">State</A>&amp; state)</B></TT>
2001-12-25 05:56:22 +08:00
<DD>compile OpenGL Display List for each geoset
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="~Geode"></A>
<A NAME="DOC.2.66.15"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~Geode()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="computeBound"></A>
<A NAME="DOC.2.66.16"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool computeBound() const </B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="_drawables"></A>
<A NAME="DOC.2.66.17"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Geode.html#DOC.2.66.1">DrawableList</A> _drawables</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P></DL>
<HR>
<DL><DT><B>Direct child classes:
</B><DD><A HREF="Billboard.html">Billboard</A><BR>
</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>