176 lines
7.7 KiB
HTML
176 lines
7.7 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
|
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>class OSGUTIL_EXPORT osgUtil::GLObjectsVisitor</TITLE>
|
||
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.6">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#ffffff">
|
||
|
|
||
|
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::GLObjectsVisitor</A></H2></H2><BLOCKQUOTE>Visitor for traversing scene graph and setting each osg::Drawable'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,CGLObjectsVisitor,MGLObjectsVisitor.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>
|
||
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.5.1">ModeValues</A></B>
|
||
|
<DD><I>Operation modes of the</I>
|
||
|
</DL></P>
|
||
|
|
||
|
<P><DL>
|
||
|
<DT><H3>Public Methods</H3><DD><DT>
|
||
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.5.3">GLObjectsVisitor</A></B>(<!1><A HREF="GLObjectsVisitor.html#DOC.2.5.2">Mode</A> mode=<!1><A HREF="GLObjectsVisitor.html#DOC.2.5.1.3">COMPILE_DISPLAY_LISTS</A>|<!1><A HREF="GLObjectsVisitor.html#DOC.2.5.1.4">COMPILE_STATE_ATTRIBUTES</A>)
|
||
|
<DD><I>Construct a GLObjectsVisior to traverse all child, operating on node according to specified mode, such as to compile or release display list/texture objects etc.</I>
|
||
|
<DT>
|
||
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.5.4">setMode</A></B>(<!1><A HREF="GLObjectsVisitor.html#DOC.2.5.2">Mode</A> mode)
|
||
|
<DD><I>Set the operational mode of what operations to do on the scene graph</I>
|
||
|
<DT>
|
||
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="GLObjectsVisitor.html#DOC.2.5.2">Mode</A> <B><A HREF="#DOC.2.5.5">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.5.6">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.5.7">getState</A></B>()
|
||
|
<DT>
|
||
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.5.8">apply</A></B>(osg::Node& 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.5.9">apply</A></B>(osg::Geode& node)
|
||
|
<DD><I>For each Geode visited set the display list usage according to the _displayListMode</I>
|
||
|
<DT>
|
||
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.5.10">apply</A></B>(osg::Drawable& drawable)
|
||
|
<DT>
|
||
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.5.11">apply</A></B>(osg::StateSet& stateset)
|
||
|
</DL></P>
|
||
|
|
||
|
<P><DL>
|
||
|
<DT><H3>Public</H3><DD><DT>
|
||
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef unsigned int <B><A HREF="#DOC.2.5.2">Mode</A></B>
|
||
|
</DL></P>
|
||
|
|
||
|
<P><DL>
|
||
|
<DT><H3>Protected Fields</H3><DD><DT>
|
||
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="GLObjectsVisitor.html#DOC.2.5.2">Mode</A> <B><A HREF="#DOC.2.5.12">_mode</A></B>
|
||
|
<DT>
|
||
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr<osg::State> <B><A HREF="#DOC.2.5.13">_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::Drawable'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.5.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.5.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.5.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.5.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.5.1.4"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> COMPILE_STATE_ATTRIBUTES</B></TT>
|
||
|
<DL><DT><DD></DL><P>
|
||
|
<A NAME="RELEASE_DISPLAY_LISTS"></A>
|
||
|
<A NAME="DOC.2.5.1.5"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> RELEASE_DISPLAY_LISTS</B></TT>
|
||
|
<DL><DT><DD></DL><P>
|
||
|
<A NAME="RELEASE_STATE_ATTRIBUTES"></A>
|
||
|
<A NAME="DOC.2.5.1.6"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> RELEASE_STATE_ATTRIBUTES</B></TT>
|
||
|
<DL><DT><DD></DL><P></DL>
|
||
|
|
||
|
<A NAME="Mode"></A>
|
||
|
<A NAME="DOC.2.5.2"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef unsigned int Mode</B></TT>
|
||
|
<DL><DT><DD></DL><P>
|
||
|
<A NAME="GLObjectsVisitor"></A>
|
||
|
<A NAME="DOC.2.5.3"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> GLObjectsVisitor(<!1><A HREF="GLObjectsVisitor.html#DOC.2.5.2">Mode</A> mode=<!1><A HREF="GLObjectsVisitor.html#DOC.2.5.1.3">COMPILE_DISPLAY_LISTS</A>|<!1><A HREF="GLObjectsVisitor.html#DOC.2.5.1.4">COMPILE_STATE_ATTRIBUTES</A>)</B></TT>
|
||
|
<DD>Construct a GLObjectsVisior to traverse all child, operating on
|
||
|
node according to specified mode, such as to compile or release
|
||
|
display list/texture objects etc. Default mode is to compile
|
||
|
GL objects.
|
||
|
<DL><DT><DD></DL><P>
|
||
|
<A NAME="setMode"></A>
|
||
|
<A NAME="DOC.2.5.4"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setMode(<!1><A HREF="GLObjectsVisitor.html#DOC.2.5.2">Mode</A> mode)</B></TT>
|
||
|
<DD>Set the operational mode of what operations to do on the scene graph
|
||
|
<DL><DT><DD></DL><P>
|
||
|
<A NAME="getMode"></A>
|
||
|
<A NAME="DOC.2.5.5"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="GLObjectsVisitor.html#DOC.2.5.2">Mode</A> getMode() const </B></TT>
|
||
|
<DD>Get the operational mode
|
||
|
<DL><DT><DD></DL><P>
|
||
|
<A NAME="setState"></A>
|
||
|
<A NAME="DOC.2.5.6"></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.5.7"></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.5.8"></A>
|
||
|
<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>
|
||
|
<A NAME="DOC.2.5.9"></A>
|
||
|
<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="apply"></A>
|
||
|
<A NAME="DOC.2.5.10"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void apply(osg::Drawable& drawable)</B></TT>
|
||
|
<DL><DT><DD></DL><P>
|
||
|
<A NAME="apply"></A>
|
||
|
<A NAME="DOC.2.5.11"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void apply(osg::StateSet& stateset)</B></TT>
|
||
|
<DL><DT><DD></DL><P>
|
||
|
<A NAME="_mode"></A>
|
||
|
<A NAME="DOC.2.5.12"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="GLObjectsVisitor.html#DOC.2.5.2">Mode</A> _mode</B></TT>
|
||
|
<DL><DT><DD></DL><P>
|
||
|
<A NAME="_state"></A>
|
||
|
<A NAME="DOC.2.5.13"></A>
|
||
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr<osg::State> _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://www.linuxsupportline.com/~doc++">DOC++</A>.
|
||
|
</BODY>
|
||
|
</HTML>
|