OpenSceneGraph/doc/doc++/osgUtil/RenderGraph.html

232 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 OSGUTIL_EXPORT osgUtil::RenderGraph</TITLE>
2003-01-25 07:36:35 +08:00
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
2001-09-20 05:19:47 +08:00
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::RenderGraph</A></H2></H2><HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="Mosg::Referenced,M,CRenderGraph,MRenderGraph.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 Fields</H3><DD><DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="RenderGraph.html">RenderGraph</A>* <B><A HREF="#DOC.2.15.3">_parent</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;const osg::StateSet&gt; <B><A HREF="#DOC.2.15.4">_stateset</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.15.5">_depth</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="RenderGraph.html#DOC.2.15.1">ChildList</A> <B><A HREF="#DOC.2.15.6">_children</A></B>
2002-06-05 20:35:59 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="RenderGraph.html#DOC.2.15.2">LeafList</A> <B><A HREF="#DOC.2.15.7">_leaves</A></B>
2002-06-05 20:35:59 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>mutable float <B><A HREF="#DOC.2.15.8">_averageDistance</A></B>
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>mutable float <B><A HREF="#DOC.2.15.9">_minimumDistance</A></B>
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::Referenced&gt; <B><A HREF="#DOC.2.15.10">_userData</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.15.11">RenderGraph</A></B>()
2002-06-05 20:35:59 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.15.12">RenderGraph</A></B>(<!1><A HREF="RenderGraph.html#DOC.2.15.12">RenderGraph</A>* parent, const osg::StateSet* stateset)
2002-06-05 20:35:59 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.15.13">~RenderGraph</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="RenderGraph.html">RenderGraph</A>* <B><A HREF="#DOC.2.15.14">cloneType</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.15.15">setUserData</A></B>(osg::Referenced* obj)
2001-09-20 05:19:47 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Referenced* <B><A HREF="#DOC.2.15.16">getUserData</A></B>()
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Referenced* <B><A HREF="#DOC.2.15.17">getUserData</A></B>() const
2002-06-05 20:35:59 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.15.18">empty</A></B>() const
2001-12-25 05:56:22 +08:00
<DD><I>return true if all of drawables, lights and children are empty</I>
2001-09-20 05:19:47 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.15.19">leaves_empty</A></B>() const
2002-06-05 20:35:59 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.15.20">getAverageDistance</A></B>() const
2002-06-05 20:35:59 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.15.21">getMinimumDistance</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.15.22">sortFrontToBack</A></B>()
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.15.23">reset</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>reset the internal contents of a RenderGraph, including deleting all children</I>
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.15.24">clean</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>recursively clean the RenderGraph of all its drawables, lights and depths.</I>
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.15.25">prune</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>recursively prune the RenderGraph of empty children</I>
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="RenderGraph.html">RenderGraph</A>* <B><A HREF="#DOC.2.15.26">find_or_insert</A></B>(const osg::StateSet* stateset)
2001-09-20 05:19:47 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.15.27">addLeaf</A></B>(<!1><A HREF="RenderLeaf.html">RenderLeaf</A>* leaf)
2001-09-20 05:19:47 +08:00
<DD><I>add a render leaf</I>
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static inline void <B><A HREF="#DOC.2.15.28">moveRenderGraph</A></B>(osg::State&amp; state, <!1><A HREF="RenderGraph.html">RenderGraph</A>* sg_curr, <!1><A HREF="RenderGraph.html">RenderGraph</A>* sg_new)
2001-09-20 05:19:47 +08:00
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline static void <B><A HREF="#DOC.2.15.29">moveToRootRenderGraph</A></B>(osg::State&amp; state, <!1><A HREF="RenderGraph.html">RenderGraph</A>* sg_curr)
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::map&lt; const osg::StateSet*, osg::ref_ptr&lt;<!1><A HREF="RenderGraph.html">RenderGraph</A>&gt; &gt; <B><A HREF="#DOC.2.15.1">ChildList</A></B>
<DT>
2003-01-25 07:36:35 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector&lt; osg::ref_ptr&lt;<!1><A HREF="RenderLeaf.html">RenderLeaf</A>&gt; &gt; <B><A HREF="#DOC.2.15.2">LeafList</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<DL>
<A NAME="ChildList"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::map&lt; const osg::StateSet*, osg::ref_ptr&lt;<!1><A HREF="RenderGraph.html">RenderGraph</A>&gt; &gt; ChildList</B></TT>
<DL><DT><DD></DL><P>
<A NAME="LeafList"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector&lt; osg::ref_ptr&lt;<!1><A HREF="RenderLeaf.html">RenderLeaf</A>&gt; &gt; LeafList</B></TT>
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="_parent"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="RenderGraph.html">RenderGraph</A>* _parent</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="_stateset"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.4"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;const osg::StateSet&gt; _stateset</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_depth"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.5"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _depth</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_children"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="RenderGraph.html#DOC.2.15.1">ChildList</A> _children</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="_leaves"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="RenderGraph.html#DOC.2.15.2">LeafList</A> _leaves</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
2002-06-05 20:35:59 +08:00
<A NAME="_averageDistance"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.8"></A>
2002-06-05 20:35:59 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>mutable float _averageDistance</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_minimumDistance"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>mutable float _minimumDistance</B></TT>
<DL><DT><DD></DL><P>
2002-06-05 20:35:59 +08:00
<A NAME="_userData"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.10"></A>
2002-06-05 20:35:59 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::Referenced&gt; _userData</B></TT>
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="RenderGraph"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.11"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> RenderGraph()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="RenderGraph"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> RenderGraph(<!1><A HREF="RenderGraph.html#DOC.2.15.12">RenderGraph</A>* parent, const osg::StateSet* stateset)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="~RenderGraph"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.13"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ~RenderGraph()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="cloneType"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="RenderGraph.html">RenderGraph</A>* cloneType() const </B></TT>
<DL><DT><DD></DL><P>
2002-06-05 20:35:59 +08:00
<A NAME="setUserData"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.15"></A>
2002-06-05 20:35:59 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setUserData(osg::Referenced* obj)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getUserData"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.16"></A>
2002-06-05 20:35:59 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Referenced* getUserData()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getUserData"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.17"></A>
2002-06-05 20:35:59 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::Referenced* getUserData() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="empty"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool empty() const </B></TT>
2001-12-25 05:56:22 +08:00
<DD>return true if all of drawables, lights and children are empty
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="leaves_empty"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool leaves_empty() const </B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
2002-06-05 20:35:59 +08:00
<A NAME="getAverageDistance"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.20"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float getAverageDistance() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="getMinimumDistance"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.21"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float getMinimumDistance() const </B></TT>
2002-06-05 20:35:59 +08:00
<DL><DT><DD></DL><P>
<A NAME="sortFrontToBack"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.22"></A>
2002-06-05 20:35:59 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void sortFrontToBack()</B></TT>
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="reset"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.23"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void reset()</B></TT>
<DD>reset the internal contents of a RenderGraph, including deleting all children
<DL><DT><DD></DL><P>
<A NAME="clean"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.24"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void clean()</B></TT>
<DD>recursively clean the RenderGraph of all its drawables, lights and depths.
Leaves children intact, and ready to be populated again.
<DL><DT><DD></DL><P>
<A NAME="prune"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.25"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void prune()</B></TT>
<DD>recursively prune the RenderGraph of empty children
<DL><DT><DD></DL><P>
<A NAME="find_or_insert"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.26"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="RenderGraph.html">RenderGraph</A>* find_or_insert(const osg::StateSet* stateset)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="addLeaf"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.27"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void addLeaf(<!1><A HREF="RenderLeaf.html">RenderLeaf</A>* leaf)</B></TT>
<DD>add a render leaf
<DL><DT><DD></DL><P>
<A NAME="moveRenderGraph"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.28"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static inline void moveRenderGraph(osg::State&amp; state, <!1><A HREF="RenderGraph.html">RenderGraph</A>* sg_curr, <!1><A HREF="RenderGraph.html">RenderGraph</A>* sg_new)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="moveToRootRenderGraph"></A>
2003-01-25 07:36:35 +08:00
<A NAME="DOC.2.15.29"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline static void moveToRootRenderGraph(osg::State&amp; state, <!1><A HREF="RenderGraph.html">RenderGraph</A>* sg_curr)</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>