OpenSceneGraph/doc/doc++/osgUtil/BufferRequirementsVisitor.html

185 lines
8.3 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::BufferRequirementsVisitor</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::BufferRequirementsVisitor</A></H2></H2><BLOCKQUOTE>A visitor for traversing a scene graph establishing the OpenGL buffers required to support rendering of that scene graph.</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="Mosg::NodeVisitor,M,CBufferRequirementsVisitor,MBufferRequirementsVisitor.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.1.1">BufferRequirementsVisitor</A></B>()
<DD><I>Default to traversing all children, and reqiresDoubleBuffer, requiresRGB and requiresDepthBuffer to true and with alpha and stencil off</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.1.2">setRequiresDoubleBuffer</A></B>(const bool flag)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.1.3">requiresDoubleBuffer</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.1.4">setRequiresRGB</A></B>(const bool flag)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.1.5">requiresRGB</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.1.6">setRequiresDepthBuffer</A></B>(const bool flag)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.1.7">requiresDepthBuffer</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.1.8">setMinumumNumAlphaBits</A></B>(const unsigned int bits)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const unsigned int <B><A HREF="#DOC.2.1.9">getMinumumNumAlphaBits</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.1.10">requiresAlphaBuffer</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.1.11">setMinumumNumStencilBits</A></B>(const unsigned int bits)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const unsigned int <B><A HREF="#DOC.2.1.12">getMinumumNumStencilBits</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.1.13">requiresStencilBuffer</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.1.14">apply</A></B>(osg::StateSet&amp; stateset)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.1.15">apply</A></B>(osg::Node&amp; node)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.1.16">apply</A></B>(osg::Geode&amp; geode)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.1.17">apply</A></B>(osg::Impostor&amp; impostor)
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.1.18">_requiresDoubleBuffer</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.1.19">_requiresRBG</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.1.20">_requiresDepthBuffer</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>unsigned int <B><A HREF="#DOC.2.1.21">_minimumNumberAlphaBits</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>unsigned int <B><A HREF="#DOC.2.1.22">_minimumNumberStencilBits</A></B>
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>A visitor for traversing a scene graph establishing the OpenGL buffers required to
support rendering of that scene graph. The results can then be used by
applications to set up there windows with the corret visuals. Have a look at
src/osgGLUT/Viewer.cpp's Viewer::open() method for an example how to use it.</BLOCKQUOTE>
<DL>
<A NAME="BufferRequirementsVisitor"></A>
<A NAME="DOC.2.1.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> BufferRequirementsVisitor()</B></TT>
<DD>Default to traversing all children, and reqiresDoubleBuffer,
requiresRGB and requiresDepthBuffer to true and with
alpha and stencil off
<DL><DT><DD></DL><P>
<A NAME="setRequiresDoubleBuffer"></A>
<A NAME="DOC.2.1.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setRequiresDoubleBuffer(const bool flag)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="requiresDoubleBuffer"></A>
<A NAME="DOC.2.1.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool requiresDoubleBuffer() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setRequiresRGB"></A>
<A NAME="DOC.2.1.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setRequiresRGB(const bool flag)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="requiresRGB"></A>
<A NAME="DOC.2.1.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool requiresRGB() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setRequiresDepthBuffer"></A>
<A NAME="DOC.2.1.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setRequiresDepthBuffer(const bool flag)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="requiresDepthBuffer"></A>
<A NAME="DOC.2.1.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool requiresDepthBuffer() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setMinumumNumAlphaBits"></A>
<A NAME="DOC.2.1.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setMinumumNumAlphaBits(const unsigned int bits)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getMinumumNumAlphaBits"></A>
<A NAME="DOC.2.1.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const unsigned int getMinumumNumAlphaBits() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="requiresAlphaBuffer"></A>
<A NAME="DOC.2.1.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool requiresAlphaBuffer() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setMinumumNumStencilBits"></A>
<A NAME="DOC.2.1.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setMinumumNumStencilBits(const unsigned int bits)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getMinumumNumStencilBits"></A>
<A NAME="DOC.2.1.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const unsigned int getMinumumNumStencilBits() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="requiresStencilBuffer"></A>
<A NAME="DOC.2.1.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool requiresStencilBuffer() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
<A NAME="DOC.2.1.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::StateSet&amp; stateset)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
<A NAME="DOC.2.1.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Node&amp; node)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
<A NAME="DOC.2.1.16"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Geode&amp; geode)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
<A NAME="DOC.2.1.17"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Impostor&amp; impostor)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_requiresDoubleBuffer"></A>
<A NAME="DOC.2.1.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _requiresDoubleBuffer</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_requiresRBG"></A>
<A NAME="DOC.2.1.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _requiresRBG</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_requiresDepthBuffer"></A>
<A NAME="DOC.2.1.20"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _requiresDepthBuffer</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_minimumNumberAlphaBits"></A>
<A NAME="DOC.2.1.21"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>unsigned int _minimumNumberAlphaBits</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_minimumNumberStencilBits"></A>
<A NAME="DOC.2.1.22"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>unsigned int _minimumNumberStencilBits</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>