OpenSceneGraph/doc/doc++/osgUtil/DisplayListVisitor.html

146 lines
6.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class OSGUTIL_EXPORT osgUtil::DisplayListVisitor</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::DisplayListVisitor</A></H2></H2><BLOCKQUOTE>Visitor for traversing scene graph and setting each osg::GeoSet's _useDisplayList flag, with option to immediately compile osg::Drawable OpenGL Display lists and osg::StateAttribute's</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="Mosg::NodeVisitor,M,CDisplayListVisitor,MDisplayListVisitor.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.6.2">DisplayListVisitor</A></B>(Mode mode=<!1><A HREF="DisplayListVisitor.html#DOC.2.6.1.3">COMPILE_DISPLAY_LISTS</A>|<!1><A HREF="DisplayListVisitor.html#DOC.2.6.1.4">COMPILE_STATE_ATTRIBUTES</A>)
<DD><I>Construct a CompileGeoSetsVisior to traverse all child, with set specified display list mode.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.6.3">setMode</A></B>(Mode mode)
<DD><I>Set the operational mode of how the visitor should set up osg::GeoSet's</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>Mode <B><A HREF="#DOC.2.6.4">getMode</A></B>() const
<DD><I>Get the operational mode</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.6.5">setState</A></B>(osg::State* state)
<DD><I>Set the State to use during traversal.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::State* <B><A HREF="#DOC.2.6.6">getState</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.6.7">apply</A></B>(osg::Node&amp; node)
<DD><I>Simply traverse using standard NodeVisitor traverse method</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.6.8">apply</A></B>(osg::Geode&amp; node)
<DD><I>For each Geode visited set the display list usage according to the _displayListMode</I>
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.6.1">ModeValues</A></B>
<DD><I>Operation modes of the</I>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>Mode <B><A HREF="#DOC.2.6.9">_mode</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::State&gt; <B><A HREF="#DOC.2.6.10">_state</A></B>
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>Visitor for traversing scene graph and setting each osg::GeoSet's _useDisplayList flag,
with option to immediately compile osg::Drawable OpenGL Display lists and
osg::StateAttribute's</BLOCKQUOTE>
<DL>
<A NAME="ModeValues"></A>
<A NAME="DOC.2.6.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum ModeValues</B></TT>
<DD>Operation modes of the
<DL><DT><DD></DL><P><DL>
<A NAME="SWITCH_ON_DISPLAY_LISTS"></A>
<A NAME="DOC.2.6.1.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> SWITCH_ON_DISPLAY_LISTS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="SWITCH_OFF_DISPLAY_LISTS"></A>
<A NAME="DOC.2.6.1.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> SWITCH_OFF_DISPLAY_LISTS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="COMPILE_DISPLAY_LISTS"></A>
<A NAME="DOC.2.6.1.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> COMPILE_DISPLAY_LISTS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="COMPILE_STATE_ATTRIBUTES"></A>
<A NAME="DOC.2.6.1.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> COMPILE_STATE_ATTRIBUTES</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="DisplayListVisitor"></A>
<A NAME="DOC.2.6.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> DisplayListVisitor(Mode mode=<!1><A HREF="DisplayListVisitor.html#DOC.2.6.1.3">COMPILE_DISPLAY_LISTS</A>|<!1><A HREF="DisplayListVisitor.html#DOC.2.6.1.4">COMPILE_STATE_ATTRIBUTES</A>)</B></TT>
<DD>Construct a CompileGeoSetsVisior to traverse all child,
with set specified display list mode. Default mode is to
gset->setUseDisplayList(true).
<DL><DT><DD></DL><P>
<A NAME="setMode"></A>
<A NAME="DOC.2.6.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setMode(Mode mode)</B></TT>
<DD>Set the operational mode of how the visitor should set up osg::GeoSet's
<DL><DT><DD></DL><P>
<A NAME="getMode"></A>
<A NAME="DOC.2.6.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>Mode getMode() const </B></TT>
<DD>Get the operational mode
<DL><DT><DD></DL><P>
<A NAME="setState"></A>
<A NAME="DOC.2.6.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setState(osg::State* state)</B></TT>
<DD>Set the State to use during traversal.
<DL><DT><DD></DL><P>
<A NAME="getState"></A>
<A NAME="DOC.2.6.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::State* getState()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
<A NAME="DOC.2.6.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Node&amp; node)</B></TT>
<DD>Simply traverse using standard NodeVisitor traverse method
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
<A NAME="DOC.2.6.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Geode&amp; node)</B></TT>
<DD>For each Geode visited set the display list usage according to the
_displayListMode
<DL><DT><DD></DL><P>
<A NAME="_mode"></A>
<A NAME="DOC.2.6.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>Mode _mode</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_state"></A>
<A NAME="DOC.2.6.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::State&gt; _state</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>