OpenSceneGraph/doc/doc++/osgUtil/VisualsRequirementsVisitor.html

185 lines
8.4 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::VisualsRequirementsVisitor</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::VisualsRequirementsVisitor</A></H2></H2><BLOCKQUOTE>A visitor for traversing a scene graph establishing the OpenGL visuals are 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,CVisualsRequirementsVisitor,MVisualsRequirementsVisitor.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>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.32.1">VisualsRequirementsVisitor</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>Default to traversing all children, and reqiresDoubleBuffer, requiresRGB and requiresDepthBuffer to true and with alpha and stencil off</I>
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.32.2">setRequiresDoubleBuffer</A></B>(const bool flag)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.32.3">requiresDoubleBuffer</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.32.4">setRequiresRGB</A></B>(const bool flag)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.32.5">requiresRGB</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.32.6">setRequiresDepthBuffer</A></B>(const bool flag)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.32.7">requiresDepthBuffer</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.32.8">setMinimumNumAlphaBits</A></B>(const unsigned int bits)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const unsigned int <B><A HREF="#DOC.2.32.9">getMinimumNumAlphaBits</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.32.10">requiresAlphaBuffer</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.32.11">setMinimumNumStencilBits</A></B>(const unsigned int bits)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const unsigned int <B><A HREF="#DOC.2.32.12">getMinimumNumStencilBits</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const bool <B><A HREF="#DOC.2.32.13">requiresStencilBuffer</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.32.14">applyStateSet</A></B>(osg::StateSet&amp; stateset)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.32.15">apply</A></B>(osg::Node&amp; node)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.32.16">apply</A></B>(osg::Geode&amp; geode)
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.32.17">apply</A></B>(osg::Impostor&amp; impostor)
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.32.18">_requiresDoubleBuffer</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.32.19">_requiresRBG</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.32.20">_requiresDepthBuffer</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>unsigned int <B><A HREF="#DOC.2.32.21">_minimumNumberAlphaBits</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2001-09-22 10:42:08 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>unsigned int <B><A HREF="#DOC.2.32.22">_minimumNumberStencilBits</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>A visitor for traversing a scene graph establishing the OpenGL visuals are 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="VisualsRequirementsVisitor"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.1"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> VisualsRequirementsVisitor()</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>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.2"></A>
2001-09-20 05:19:47 +08:00
<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>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.3"></A>
2001-09-20 05:19:47 +08:00
<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>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.4"></A>
2001-09-20 05:19:47 +08:00
<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>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.5"></A>
2001-09-20 05:19:47 +08:00
<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>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.6"></A>
2001-09-20 05:19:47 +08:00
<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>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.7"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool requiresDepthBuffer() const </B></TT>
<DL><DT><DD></DL><P>
2001-09-22 10:42:08 +08:00
<A NAME="setMinimumNumAlphaBits"></A>
<A NAME="DOC.2.32.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setMinimumNumAlphaBits(const unsigned int bits)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
2001-09-22 10:42:08 +08:00
<A NAME="getMinimumNumAlphaBits"></A>
<A NAME="DOC.2.32.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const unsigned int getMinimumNumAlphaBits() const </B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="requiresAlphaBuffer"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.10"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool requiresAlphaBuffer() const </B></TT>
<DL><DT><DD></DL><P>
2001-09-22 10:42:08 +08:00
<A NAME="setMinimumNumStencilBits"></A>
<A NAME="DOC.2.32.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setMinimumNumStencilBits(const unsigned int bits)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
2001-09-22 10:42:08 +08:00
<A NAME="getMinimumNumStencilBits"></A>
<A NAME="DOC.2.32.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const unsigned int getMinimumNumStencilBits() const </B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="requiresStencilBuffer"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.13"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const bool requiresStencilBuffer() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="applyStateSet"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.14"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void applyStateSet(osg::StateSet&amp; stateset)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.15"></A>
2001-09-20 05:19:47 +08:00
<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>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.16"></A>
2001-09-20 05:19:47 +08:00
<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>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.17"></A>
2001-09-20 05:19:47 +08:00
<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>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.18"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _requiresDoubleBuffer</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_requiresRBG"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.19"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _requiresRBG</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_requiresDepthBuffer"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.20"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _requiresDepthBuffer</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_minimumNumberAlphaBits"></A>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.21"></A>
2001-09-20 05:19:47 +08:00
<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>
2001-09-22 10:42:08 +08:00
<A NAME="DOC.2.32.22"></A>
2001-09-20 05:19:47 +08:00
<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>