134 lines
6.2 KiB
HTML
134 lines
6.2 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>class OSGUTIL_EXPORT osgUtil::DisplayListVisitor</TITLE>
|
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.3">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
|
|
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::DisplayListVisitor</A>: public osg::NodeVisitor</H2>
|
|
<BLOCKQUOTE>Visitor for traversing scene set each osg::GeoSet's _useDisplayList flag, or immediately compiling osg::GeoSet's OpenGL Display lists.</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 Classes</H3><DD><DT>
|
|
<A HREF="#DOC.2.2.1"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>enum <B>DisplayListMode</B>
|
|
<DD><I>Operation modes of the DisplayListVisitor</I>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<A HREF="#DOC.2.2.2"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A> <B>DisplayListVisitor</B>(<!1><A HREF="DisplayListVisitor.html#DOC.2.2.1">DisplayListMode</A> mode=SWITCH_ON_DISPLAY_LISTS)
|
|
<DD><I>Construct a CompileGeoSetsVisior to traverse all child, with set specfied display list mode.</I>
|
|
<DT>
|
|
<A HREF="#DOC.2.2.3"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void <B>setDisplayListMode</B>(<!1><A HREF="DisplayListVisitor.html#DOC.2.2.1">DisplayListMode</A> mode)
|
|
<DD><I>Set the operational mode of how the visitor should set up osg::GeoSet's</I>
|
|
<DT>
|
|
<A HREF="#DOC.2.2.4"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A><!1><A HREF="DisplayListVisitor.html#DOC.2.2.1">DisplayListMode</A> <B>getDisplayListMode</B>() const
|
|
<DD><I>Get the operational mode</I>
|
|
<DT>
|
|
<A HREF="#DOC.2.2.5"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void <B>apply</B>(osg::Node& node)
|
|
<DD><I>Simply traverse using standard NodeVisitor traverse method</I>
|
|
<DT>
|
|
<A HREF="#DOC.2.2.6"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void <B>apply</B>(osg::Geode& node)
|
|
<DD><I>For each Geode visited set the display list usage according to the _displayListMode</I>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Fields</H3><DD><DT>
|
|
<A HREF="#DOC.2.2.7"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A><!1><A HREF="DisplayListVisitor.html#DOC.2.2.1">DisplayListMode</A> <B>_displayListMode</B>
|
|
<DD><I></I>
|
|
</DL></P>
|
|
|
|
</DL>
|
|
|
|
<A NAME="DOC.DOCU">
|
|
<HR>
|
|
<H2>Documentation</H2>
|
|
<BLOCKQUOTE>Visitor for traversing scene set each osg::GeoSet's _useDisplayList flag, or
|
|
immediately compiling osg::GeoSet's OpenGL Display lists. The mode of operation
|
|
of the vistor is controlled by setting the DisplayListMode either on visitor
|
|
constructor or via the setDisplayListMode() method. DisplayListMode options are:
|
|
_displayListMode == SWITCH_ON_AND_COMPILE_DISPLAY_LISTS cals gset->compile() on
|
|
all Geode childern. Note, the visitor must only be used within a valid
|
|
OpenGL context as compile uses OpenGL calls.
|
|
_displayListMode == SWITCH_ON_DISPLAY_LISTS sets the Geode's children with
|
|
gset->setUseDisplayList(true), this method does not directly create display list,
|
|
or uses OpenGL calls so if safe to use before a valid OpenGL context has been set up.
|
|
On the next redraw of the scene, the gset's draw methods will be called
|
|
which then will respond to their _useDisplayList being set by creating display lists
|
|
automatically.
|
|
_displayListMode == SWITCH_OFF_DISPLAY_LISTS sets the Geode's children with
|
|
gset->setUseDisplayList(false), this method does not directly create display list,
|
|
or uses OpenGL calls so if safe to use before a valid OpenGL context has been set up.</BLOCKQUOTE>
|
|
<DL>
|
|
|
|
<A NAME="DisplayListMode">
|
|
<A NAME="DOC.2.2.1">
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum DisplayListMode</B></TT>
|
|
<DD>Operation modes of the DisplayListVisitor
|
|
<DL><DT><DD></DL><P><DL>
|
|
|
|
<A NAME="SWITCH_ON_AND_COMPILE_DISPLAY_LISTS">
|
|
<A NAME="DOC.2.2.1.1">
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> SWITCH_ON_AND_COMPILE_DISPLAY_LISTS</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="SWITCH_ON_DISPLAY_LISTS">
|
|
<A NAME="DOC.2.2.1.2">
|
|
<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 NAME="DOC.2.2.1.3">
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> SWITCH_OFF_DISPLAY_LISTS</B></TT>
|
|
<DL><DT><DD></DL><P></DL>
|
|
|
|
<A NAME="DisplayListVisitor">
|
|
<A NAME="DOC.2.2.2">
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> DisplayListVisitor(<!1><A HREF="DisplayListVisitor.html#DOC.2.2.1">DisplayListMode</A> mode=SWITCH_ON_DISPLAY_LISTS)</B></TT>
|
|
<DD>Construct a CompileGeoSetsVisior to traverse all child,
|
|
with set specfied display list mode. Default mode is to
|
|
gset->setUseDisplayList(true).
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setDisplayListMode">
|
|
<A NAME="DOC.2.2.3">
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setDisplayListMode(<!1><A HREF="DisplayListVisitor.html#DOC.2.2.1">DisplayListMode</A> 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="getDisplayListMode">
|
|
<A NAME="DOC.2.2.4">
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="DisplayListVisitor.html#DOC.2.2.1">DisplayListMode</A> getDisplayListMode() const </B></TT>
|
|
<DD>Get the operational mode
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="apply">
|
|
<A NAME="DOC.2.2.5">
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Node& node)</B></TT>
|
|
<DD>Simply traverse using standard NodeVisitor traverse method
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="apply">
|
|
<A NAME="DOC.2.2.6">
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Geode& node)</B></TT>
|
|
<DD>For each Geode visited set the display list usage according to the
|
|
_displayListMode
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_displayListMode">
|
|
<A NAME="DOC.2.2.7">
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="DisplayListVisitor.html#DOC.2.2.1">DisplayListMode</A> _displayListMode</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><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://www.linuxsupportline.com/~doc++">DOC++</A>.
|
|
</BODY>
|