OpenSceneGraph/doc/doc++/osgUtil/SceneView.html
2003-01-24 23:36:35 +00:00

914 lines
47 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class OSGUTIL_EXPORT osgUtil::SceneView</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::SceneView</A></H2></H2><BLOCKQUOTE> SceneView is literally a view of a scene, encapsulating the camera, global state, lights and the scene itself.</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="Mosg::Referenced,M,CSceneView,MSceneView.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.20.1">SceneView</A></B>(osg::DisplaySettings* ds=NULL)
<DD><I>Construct a default scene view</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.2">setDefaults</A></B>()
<DD><I>Set scene view to use default global state, light, camera and render visitor</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.3">setSceneData</A></B>(osg::Node* node)
<DD><I>Set the data which to view.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Node* <B><A HREF="#DOC.2.20.4">getSceneData</A></B>()
<DD><I>Get the scene data which to view.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Node* <B><A HREF="#DOC.2.20.5">getSceneData</A></B>() const
<DD><I>Get the const scene data which to view.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.6">setViewport</A></B>(osg::Viewport* viewport)
<DD><I>Set the viewport of the scene view to use specfied osg::Viewport.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.7">setViewport</A></B>(int x, int y, int width, int height)
<DD><I>Set the viewport of the scene view to specified dimensions.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Viewport* <B><A HREF="#DOC.2.20.8">getViewport</A></B>() const
<DD><I>Get the const viewport.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Viewport* <B><A HREF="#DOC.2.20.9">getViewport</A></B>()
<DD><I>Get the viewport.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.10">getViewport</A></B>(int&amp; x, int&amp; y, int&amp; width, int&amp; height)
<DD><I>Get the viewport of the scene view.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.20.11">setDisplaySettings</A></B>(osg::DisplaySettings* vs)
<DD><I>Set the DisplaySettings.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const osg::DisplaySettings* <B><A HREF="#DOC.2.20.12">getDisplaySettings</A></B>() const
<DD><I>Get the const DisplaySettings </I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline osg::DisplaySettings* <B><A HREF="#DOC.2.20.13">getDisplaySettings</A></B>()
<DD><I>Get the DisplaySettings </I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.14">setBackgroundColor</A></B>(const osg::Vec4&amp; color)
<DD><I>Set the background color used in glClearColor().</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Vec4&amp; <B><A HREF="#DOC.2.20.15">getBackgroundColor</A></B>() const
<DD><I>Get the background color</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.16">setGlobalStateSet</A></B>(osg::StateSet* state)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::StateSet* <B><A HREF="#DOC.2.20.17">getGlobalStateSet</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::StateSet* <B><A HREF="#DOC.2.20.18">getGlobalStateSet</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.20">setLightingMode</A></B>(<!1><A HREF="SceneView.html#DOC.2.20.19">LightingMode</A> mode)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="SceneView.html#DOC.2.20.19">LightingMode</A> <B><A HREF="#DOC.2.20.21">getLightingMode</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.22">setLight</A></B>(osg::Light* light)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Light* <B><A HREF="#DOC.2.20.23">getLight</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Light* <B><A HREF="#DOC.2.20.24">getLight</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.25">setState</A></B>(osg::State* state)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::State* <B><A HREF="#DOC.2.20.26">getState</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::State* <B><A HREF="#DOC.2.20.27">getState</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.28">setCamera</A></B>(osg::Camera* camera)
<DD><I>set an osg::Camera for the scene view to use for setting projection and modelview matrices internaly.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Camera* <B><A HREF="#DOC.2.20.29">getCamera</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Camera* <B><A HREF="#DOC.2.20.30">getCamera</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.31">setProjectionMatrix</A></B>(osg::RefMatrix* matrix)
<DD><I>set a projection matrix.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::RefMatrix* <B><A HREF="#DOC.2.20.32">getProjectionMatrix</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::RefMatrix* <B><A HREF="#DOC.2.20.33">getProjectionMatrix</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.34">setModelViewMatrix</A></B>(osg::RefMatrix* matrix)
<DD><I>set a modelview matrix.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::RefMatrix* <B><A HREF="#DOC.2.20.35">getModelViewMatrix</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::RefMatrix* <B><A HREF="#DOC.2.20.36">getModelViewMatrix</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.37">setInitVisitor</A></B>(osg::NodeVisitor* av)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::NodeVisitor* <B><A HREF="#DOC.2.20.38">getInitVisitor</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::NodeVisitor* <B><A HREF="#DOC.2.20.39">getInitVisitor</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.40">setUpdateVisitor</A></B>(osg::NodeVisitor* av)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::NodeVisitor* <B><A HREF="#DOC.2.20.41">getUpdateVisitor</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::NodeVisitor* <B><A HREF="#DOC.2.20.42">getUpdateVisitor</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.43">setCullVisitor</A></B>(<!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>* cv)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>* <B><A HREF="#DOC.2.20.44">getCullVisitor</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>* <B><A HREF="#DOC.2.20.45">getCullVisitor</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.46">setRenderGraph</A></B>(<!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>* rg)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>* <B><A HREF="#DOC.2.20.47">getRenderGraph</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>* <B><A HREF="#DOC.2.20.48">getRenderGraph</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.49">setRenderStage</A></B>(<!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>* rs)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>* <B><A HREF="#DOC.2.20.50">getRenderStage</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>* <B><A HREF="#DOC.2.20.51">getRenderStage</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.52">setCullMask</A></B>(const osg::Node::NodeMask nm)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Node::NodeMask <B><A HREF="#DOC.2.20.53">getCullMask</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.54">setCullMaskLeft</A></B>(const osg::Node::NodeMask nm)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Node::NodeMask <B><A HREF="#DOC.2.20.55">getCullMaskLeft</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.56">setCullMaskRight</A></B>(const osg::Node::NodeMask nm)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Node::NodeMask <B><A HREF="#DOC.2.20.57">getCullMaskRight</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.58">setLODScale</A></B>(float bias)
<DD><I>Set the LOD bias for the CullVisitor to use</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.20.59">getLODScale</A></B>() const
<DD><I>Get the LOD bias</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.60">setSmallFeatureCullingPixelSize</A></B>(float value)
<DD><I>Set the Small Feature Culling Pixel Size</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.20.61">getSmallFeatureCullingPixelSize</A></B>() const
<DD><I>Get the Small Feature Culling Pixel Size</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.62">setCullingMode</A></B>(osg::CullStack::CullingMode mode)
<DD><I>Set the culling mode for the CullVisitor to use</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::CullStack::CullingMode <B><A HREF="#DOC.2.20.63">getCullingMode</A></B>() const
<DD><I>Returns the current CullingMode</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.64">setComputeNearFarMode</A></B>(CullVisitor::ComputeNearFarMode cnfm)
<DD><I>Set the ComputeNearFarMode for the CullVisitor to use</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>CullVisitor::ComputeNearFarMode <B><A HREF="#DOC.2.20.65">getComputeNearFarMode</A></B>() const
<DD><I>Get the ComputeNearFarMode</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.67">setFusionDistance</A></B>(<!1><A HREF="SceneView.html#DOC.2.20.66">FusionDistanceMode</A> mode, float value=1.0f)
<DD><I>Set the FusionDistanceMode and Value.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="SceneView.html#DOC.2.20.66">FusionDistanceMode</A> <B><A HREF="#DOC.2.20.68">getFusionDistanceMode</A></B>() const
<DD><I>Get the FusionDistanceMode</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.20.69">getFusionDistanceValue</A></B>() const
<DD><I>Get the FusionDistanceValue.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.70">setPrioritizeTextures</A></B>(bool pt)
<DD><I>set whether the draw method should call renderer->prioritizeTexture</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.20.71">getPrioritizeTextures</A></B>() const
<DD><I>get whether the draw method should call renderer->prioritizeTexture</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.20.72">projectWindowIntoObject</A></B>(const osg::Vec3&amp; window, osg::Vec3&amp; object) const
<DD><I>Calculate, via glUnProject, the object coordinates of a window point.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.20.73">projectWindowXYIntoObject</A></B>(int x, int y, osg::Vec3&amp; near_point, osg::Vec3&amp; far_point) const
<DD><I>Calculate, via glUnProject, the object coordinates of a window x,y when projected onto the near and far planes.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.20.74">projectObjectIntoWindow</A></B>(const osg::Vec3&amp; object, osg::Vec3&amp; window) const
<DD><I>Calculate, via glProject, the object coordinates of a window.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.20.75">setFrameStamp</A></B>(osg::FrameStamp* fs)
<DD><I>Set the frame stamp for the current frame</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const osg::FrameStamp* <B><A HREF="#DOC.2.20.76">getFrameStamp</A></B>() const
<DD><I>Set the frame stamp for the current frame</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.20.77">init</A></B>()
<DD><I>Do init traversal of attached scene graph using Init NodeVisitor.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.20.78">update</A></B>()
<DD><I>Do app traversal of attached scene graph using App NodeVisitor</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.20.79">app</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.20.80">cull</A></B>()
<DD><I>Do cull traversal of attached scene graph using Cull NodeVisitor</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.20.81">draw</A></B>()
<DD><I>Do draw traversal of draw bins generated by cull traversal</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.20.19">LightingMode</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.20.66">FusionDistanceMode</A></B>
<DD><I>FusionDistanceMode is used only when working in stereo</I>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::Node&gt; <B><A HREF="#DOC.2.20.86">_sceneData</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::StateSet&gt; <B><A HREF="#DOC.2.20.87">_globalState</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::Light&gt; <B><A HREF="#DOC.2.20.88">_light</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::Camera&gt; <B><A HREF="#DOC.2.20.89">_camera</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::RefMatrix&gt; <B><A HREF="#DOC.2.20.90">_projectionMatrix</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::RefMatrix&gt; <B><A HREF="#DOC.2.20.91">_modelviewMatrix</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::DisplaySettings&gt; <B><A HREF="#DOC.2.20.92">_displaySettings</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::State&gt; <B><A HREF="#DOC.2.20.93">_state</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.20.94">_initCalled</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::NodeVisitor&gt; <B><A HREF="#DOC.2.20.95">_initVisitor</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::NodeVisitor&gt; <B><A HREF="#DOC.2.20.96">_updateVisitor</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Node::NodeMask <B><A HREF="#DOC.2.20.97">_cullMask</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>&gt; <B><A HREF="#DOC.2.20.98">_cullVisitor</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>&gt; <B><A HREF="#DOC.2.20.99">_rendergraph</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>&gt; <B><A HREF="#DOC.2.20.100">_renderStage</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Node::NodeMask <B><A HREF="#DOC.2.20.101">_cullMaskLeft</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>&gt; <B><A HREF="#DOC.2.20.102">_cullVisitorLeft</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>&gt; <B><A HREF="#DOC.2.20.103">_rendergraphLeft</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>&gt; <B><A HREF="#DOC.2.20.104">_renderStageLeft</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Node::NodeMask <B><A HREF="#DOC.2.20.105">_cullMaskRight</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>&gt; <B><A HREF="#DOC.2.20.106">_cullVisitorRight</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>&gt; <B><A HREF="#DOC.2.20.107">_rendergraphRight</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>&gt; <B><A HREF="#DOC.2.20.108">_renderStageRight</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::FrameStamp&gt; <B><A HREF="#DOC.2.20.109">_frameStamp</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Vec4 <B><A HREF="#DOC.2.20.110">_backgroundColor</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>CullVisitor::ComputeNearFarMode <B><A HREF="#DOC.2.20.111">_computeNearFar</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::CullStack::CullingMode <B><A HREF="#DOC.2.20.112">_cullingMode</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.20.113">_LODScale</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.20.114">_smallFeatureCullingPixelSize</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="SceneView.html#DOC.2.20.66">FusionDistanceMode</A> <B><A HREF="#DOC.2.20.115">_fusionDistanceMode</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.20.116">_fusionDistanceValue</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::Viewport&gt; <B><A HREF="#DOC.2.20.117">_viewport</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="SceneView.html#DOC.2.20.19">LightingMode</A> <B><A HREF="#DOC.2.20.118">_lightingMode</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.20.119">_prioritizeTextures</A></B>
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.20.82">~SceneView</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.20.83">cullStage</A></B>(osg::RefMatrix* projection, osg::RefMatrix* modelview, <!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>* cullVisitor, <!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>* rendergraph, <!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>* renderStage)
<DD><I>Do cull traversal of attached scene graph using Cull NodeVisitor</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Matrix <B><A HREF="#DOC.2.20.84">computeMVPW</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.20.85">clearArea</A></B>(int x, int y, int width, int height, const osg::Vec4&amp; color)
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>
SceneView is literally a view of a scene, encapsulating the
camera, global state, lights and the scene itself. Provides
methods for setting up the view and rendering it.</BLOCKQUOTE>
<DL>
<A NAME="SceneView"></A>
<A NAME="DOC.2.20.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> SceneView(osg::DisplaySettings* ds=NULL)</B></TT>
<DD>Construct a default scene view
<DL><DT><DD></DL><P>
<A NAME="setDefaults"></A>
<A NAME="DOC.2.20.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setDefaults()</B></TT>
<DD>Set scene view to use default global state, light, camera
and render visitor
<DL><DT><DD></DL><P>
<A NAME="setSceneData"></A>
<A NAME="DOC.2.20.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setSceneData(osg::Node* node)</B></TT>
<DD>Set the data which to view. The data will typically be
an osg::Scene but can be any osg::Node type.
<DL><DT><DD></DL><P>
<A NAME="getSceneData"></A>
<A NAME="DOC.2.20.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Node* getSceneData()</B></TT>
<DD>Get the scene data which to view. The data will typically be
an osg::Scene but can be any osg::Node type.
<DL><DT><DD></DL><P>
<A NAME="getSceneData"></A>
<A NAME="DOC.2.20.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::Node* getSceneData() const </B></TT>
<DD>Get the const scene data which to view. The data will typically be
an osg::Scene but can be any osg::Node type.
<DL><DT><DD></DL><P>
<A NAME="setViewport"></A>
<A NAME="DOC.2.20.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setViewport(osg::Viewport* viewport)</B></TT>
<DD>Set the viewport of the scene view to use specfied osg::Viewport.
<DL><DT><DD></DL><P>
<A NAME="setViewport"></A>
<A NAME="DOC.2.20.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setViewport(int x, int y, int width, int height)</B></TT>
<DD>Set the viewport of the scene view to specified dimensions.
<DL><DT><DD></DL><P>
<A NAME="getViewport"></A>
<A NAME="DOC.2.20.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::Viewport* getViewport() const </B></TT>
<DD>Get the const viewport.
<DL><DT><DD></DL><P>
<A NAME="getViewport"></A>
<A NAME="DOC.2.20.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Viewport* getViewport()</B></TT>
<DD>Get the viewport.
<DL><DT><DD></DL><P>
<A NAME="getViewport"></A>
<A NAME="DOC.2.20.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void getViewport(int&amp; x, int&amp; y, int&amp; width, int&amp; height)</B></TT>
<DD>Get the viewport of the scene view.
<DL><DT><DD></DL><P>
<A NAME="setDisplaySettings"></A>
<A NAME="DOC.2.20.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setDisplaySettings(osg::DisplaySettings* vs)</B></TT>
<DD>Set the DisplaySettings.
<DL><DT><DD></DL><P>
<A NAME="getDisplaySettings"></A>
<A NAME="DOC.2.20.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const osg::DisplaySettings* getDisplaySettings() const </B></TT>
<DD>Get the const DisplaySettings
<DL><DT><DD></DL><P>
<A NAME="getDisplaySettings"></A>
<A NAME="DOC.2.20.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline osg::DisplaySettings* getDisplaySettings()</B></TT>
<DD>Get the DisplaySettings
<DL><DT><DD></DL><P>
<A NAME="setBackgroundColor"></A>
<A NAME="DOC.2.20.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setBackgroundColor(const osg::Vec4&amp; color)</B></TT>
<DD>Set the background color used in glClearColor().
Defaults to an off blue color.
<DL><DT><DD></DL><P>
<A NAME="getBackgroundColor"></A>
<A NAME="DOC.2.20.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::Vec4&amp; getBackgroundColor() const </B></TT>
<DD>Get the background color
<DL><DT><DD></DL><P>
<A NAME="setGlobalStateSet"></A>
<A NAME="DOC.2.20.16"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setGlobalStateSet(osg::StateSet* state)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getGlobalStateSet"></A>
<A NAME="DOC.2.20.17"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::StateSet* getGlobalStateSet()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getGlobalStateSet"></A>
<A NAME="DOC.2.20.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::StateSet* getGlobalStateSet() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="LightingMode"></A>
<A NAME="DOC.2.20.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum LightingMode</B></TT>
<DL><DT><DD></DL><P><DL>
<A NAME="HEADLIGHT"></A>
<A NAME="DOC.2.20.19.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> HEADLIGHT</B></TT>
<DL><DT><DD></DL><P>
<A NAME="SKY_LIGHT"></A>
<A NAME="DOC.2.20.19.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> SKY_LIGHT</B></TT>
<DL><DT><DD></DL><P>
<A NAME="NO_SCENEVIEW_LIGHT"></A>
<A NAME="DOC.2.20.19.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> NO_SCENEVIEW_LIGHT</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="setLightingMode"></A>
<A NAME="DOC.2.20.20"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setLightingMode(<!1><A HREF="SceneView.html#DOC.2.20.19">LightingMode</A> mode)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getLightingMode"></A>
<A NAME="DOC.2.20.21"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="SceneView.html#DOC.2.20.19">LightingMode</A> getLightingMode() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setLight"></A>
<A NAME="DOC.2.20.22"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setLight(osg::Light* light)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getLight"></A>
<A NAME="DOC.2.20.23"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Light* getLight()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getLight"></A>
<A NAME="DOC.2.20.24"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::Light* getLight() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setState"></A>
<A NAME="DOC.2.20.25"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setState(osg::State* state)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getState"></A>
<A NAME="DOC.2.20.26"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::State* getState()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getState"></A>
<A NAME="DOC.2.20.27"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::State* getState() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setCamera"></A>
<A NAME="DOC.2.20.28"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setCamera(osg::Camera* camera)</B></TT>
<DD>set an osg::Camera for the scene view to use for setting projection and modelview matrices internaly.
However, the projection matrix from the camera will be overriden by a projection matrix which is set explicitly
via setProjectionMatrix(..), see below.
Also, the model matrix from the camera will be overriden by a modelview matrix which is set explicitly
via setModelViewMatrix(..), see below.
<DL><DT><DD></DL><P>
<A NAME="getCamera"></A>
<A NAME="DOC.2.20.29"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Camera* getCamera()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getCamera"></A>
<A NAME="DOC.2.20.30"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::Camera* getCamera() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setProjectionMatrix"></A>
<A NAME="DOC.2.20.31"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setProjectionMatrix(osg::RefMatrix* matrix)</B></TT>
<DD>set a projection matrix. Note, this will override a camera's projection matrix if it is not NULL.
<DL><DT><DD></DL><P>
<A NAME="getProjectionMatrix"></A>
<A NAME="DOC.2.20.32"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::RefMatrix* getProjectionMatrix()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getProjectionMatrix"></A>
<A NAME="DOC.2.20.33"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::RefMatrix* getProjectionMatrix() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setModelViewMatrix"></A>
<A NAME="DOC.2.20.34"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setModelViewMatrix(osg::RefMatrix* matrix)</B></TT>
<DD>set a modelview matrix. Note, this will override a camera's modelview matrix if it is not NULL.
<DL><DT><DD></DL><P>
<A NAME="getModelViewMatrix"></A>
<A NAME="DOC.2.20.35"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::RefMatrix* getModelViewMatrix()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getModelViewMatrix"></A>
<A NAME="DOC.2.20.36"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::RefMatrix* getModelViewMatrix() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setInitVisitor"></A>
<A NAME="DOC.2.20.37"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setInitVisitor(osg::NodeVisitor* av)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getInitVisitor"></A>
<A NAME="DOC.2.20.38"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::NodeVisitor* getInitVisitor()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getInitVisitor"></A>
<A NAME="DOC.2.20.39"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::NodeVisitor* getInitVisitor() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setUpdateVisitor"></A>
<A NAME="DOC.2.20.40"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setUpdateVisitor(osg::NodeVisitor* av)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getUpdateVisitor"></A>
<A NAME="DOC.2.20.41"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::NodeVisitor* getUpdateVisitor()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getUpdateVisitor"></A>
<A NAME="DOC.2.20.42"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::NodeVisitor* getUpdateVisitor() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setCullVisitor"></A>
<A NAME="DOC.2.20.43"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setCullVisitor(<!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>* cv)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getCullVisitor"></A>
<A NAME="DOC.2.20.44"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>* getCullVisitor()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getCullVisitor"></A>
<A NAME="DOC.2.20.45"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>* getCullVisitor() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setRenderGraph"></A>
<A NAME="DOC.2.20.46"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setRenderGraph(<!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>* rg)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getRenderGraph"></A>
<A NAME="DOC.2.20.47"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>* getRenderGraph()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getRenderGraph"></A>
<A NAME="DOC.2.20.48"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>* getRenderGraph() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setRenderStage"></A>
<A NAME="DOC.2.20.49"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setRenderStage(<!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>* rs)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getRenderStage"></A>
<A NAME="DOC.2.20.50"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>* getRenderStage()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getRenderStage"></A>
<A NAME="DOC.2.20.51"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>* getRenderStage() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setCullMask"></A>
<A NAME="DOC.2.20.52"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setCullMask(const osg::Node::NodeMask nm)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getCullMask"></A>
<A NAME="DOC.2.20.53"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::Node::NodeMask getCullMask() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setCullMaskLeft"></A>
<A NAME="DOC.2.20.54"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setCullMaskLeft(const osg::Node::NodeMask nm)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getCullMaskLeft"></A>
<A NAME="DOC.2.20.55"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::Node::NodeMask getCullMaskLeft() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setCullMaskRight"></A>
<A NAME="DOC.2.20.56"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setCullMaskRight(const osg::Node::NodeMask nm)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getCullMaskRight"></A>
<A NAME="DOC.2.20.57"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::Node::NodeMask getCullMaskRight() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setLODScale"></A>
<A NAME="DOC.2.20.58"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setLODScale(float bias)</B></TT>
<DD>Set the LOD bias for the CullVisitor to use
<DL><DT><DD></DL><P>
<A NAME="getLODScale"></A>
<A NAME="DOC.2.20.59"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float getLODScale() const </B></TT>
<DD>Get the LOD bias
<DL><DT><DD></DL><P>
<A NAME="setSmallFeatureCullingPixelSize"></A>
<A NAME="DOC.2.20.60"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setSmallFeatureCullingPixelSize(float value)</B></TT>
<DD>Set the Small Feature Culling Pixel Size
<DL><DT><DD></DL><P>
<A NAME="getSmallFeatureCullingPixelSize"></A>
<A NAME="DOC.2.20.61"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float getSmallFeatureCullingPixelSize() const </B></TT>
<DD>Get the Small Feature Culling Pixel Size
<DL><DT><DD></DL><P>
<A NAME="setCullingMode"></A>
<A NAME="DOC.2.20.62"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setCullingMode(osg::CullStack::CullingMode mode)</B></TT>
<DD>Set the culling mode for the CullVisitor to use
<DL><DT><DD></DL><P>
<A NAME="getCullingMode"></A>
<A NAME="DOC.2.20.63"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::CullStack::CullingMode getCullingMode() const </B></TT>
<DD>Returns the current CullingMode
<DL><DT><DD></DL><P>
<A NAME="setComputeNearFarMode"></A>
<A NAME="DOC.2.20.64"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setComputeNearFarMode(CullVisitor::ComputeNearFarMode cnfm)</B></TT>
<DD>Set the ComputeNearFarMode for the CullVisitor to use
<DL><DT><DD></DL><P>
<A NAME="getComputeNearFarMode"></A>
<A NAME="DOC.2.20.65"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>CullVisitor::ComputeNearFarMode getComputeNearFarMode() const </B></TT>
<DD>Get the ComputeNearFarMode
<DL><DT><DD></DL><P>
<A NAME="FusionDistanceMode"></A>
<A NAME="DOC.2.20.66"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum FusionDistanceMode</B></TT>
<DD>FusionDistanceMode is used only when working in stereo
<DL><DT><DD></DL><P><DL>
<A NAME="USE_CAMERA_FUSION_DISTANCE"></A>
<A NAME="DOC.2.20.66.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> USE_CAMERA_FUSION_DISTANCE</B></TT>
<DD>Use fusion distance from the attached camera if one exist
<DL><DT><DD></DL><P>
<A NAME="USE_FUSION_DISTANCE_VALUE"></A>
<A NAME="DOC.2.20.66.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> USE_FUSION_DISTANCE_VALUE</B></TT>
<DD>Use fusion distance from the value set on the SceneView
<DL><DT><DD></DL><P>
<A NAME="PROPORTIONAL_TO_SCREEN_DISTANCE"></A>
<A NAME="DOC.2.20.66.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> PROPORTIONAL_TO_SCREEN_DISTANCE</B></TT>
<DD>Compute the fusion distance by multiplying the screen distance by the fusion distance value
<DL><DT><DD></DL><P></DL>
<A NAME="setFusionDistance"></A>
<A NAME="DOC.2.20.67"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setFusionDistance(<!1><A HREF="SceneView.html#DOC.2.20.66">FusionDistanceMode</A> mode, float value=1.0f)</B></TT>
<DD>Set the FusionDistanceMode and Value. Note, is used only when working in stereo.
<DL><DT><DD></DL><P>
<A NAME="getFusionDistanceMode"></A>
<A NAME="DOC.2.20.68"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="SceneView.html#DOC.2.20.66">FusionDistanceMode</A> getFusionDistanceMode() const </B></TT>
<DD>Get the FusionDistanceMode
<DL><DT><DD></DL><P>
<A NAME="getFusionDistanceValue"></A>
<A NAME="DOC.2.20.69"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float getFusionDistanceValue() const </B></TT>
<DD>Get the FusionDistanceValue. Note, only used for USE_FUSION_DISTANCE_VALUE & PROPORTIONAL_TO_SCREEN_DISTANCE modes.
<DL><DT><DD></DL><P>
<A NAME="setPrioritizeTextures"></A>
<A NAME="DOC.2.20.70"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setPrioritizeTextures(bool pt)</B></TT>
<DD>set whether the draw method should call renderer->prioritizeTexture
<DL><DT><DD></DL><P>
<A NAME="getPrioritizeTextures"></A>
<A NAME="DOC.2.20.71"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool getPrioritizeTextures() const </B></TT>
<DD>get whether the draw method should call renderer->prioritizeTexture
<DL><DT><DD></DL><P>
<A NAME="projectWindowIntoObject"></A>
<A NAME="DOC.2.20.72"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool projectWindowIntoObject(const osg::Vec3&amp; window, osg::Vec3&amp; object) const </B></TT>
<DD>Calculate, via glUnProject, the object coordinates of a window point.
Note, current implementation requires that SceneView::draw() has been previously called
for projectWindowIntoObject to produce valid values. Consistent with OpenGL
windows coordinates are calculated relative to the bottom left of the window.
Returns true on successful projection.
<DL><DT><DD></DL><P>
<A NAME="projectWindowXYIntoObject"></A>
<A NAME="DOC.2.20.73"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool projectWindowXYIntoObject(int x, int y, osg::Vec3&amp; near_point, osg::Vec3&amp; far_point) const </B></TT>
<DD>Calculate, via glUnProject, the object coordinates of a window x,y
when projected onto the near and far planes.
Note, current implementation requires that SceneView::draw() has been previously called
for projectWindowIntoObject to produce valid values. Consistent with OpenGL
windows coordinates are calculated relative to the bottom left of the window.
Returns true on successful projection.
<DL><DT><DD></DL><P>
<A NAME="projectObjectIntoWindow"></A>
<A NAME="DOC.2.20.74"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool projectObjectIntoWindow(const osg::Vec3&amp; object, osg::Vec3&amp; window) const </B></TT>
<DD>Calculate, via glProject, the object coordinates of a window.
Note, current implementation requires that SceneView::draw() has been previously called
for projectWindowIntoObject to produce valid values. Consistent with OpenGL
windows coordinates are calculated relative to the bottom left of the window,
whereas as window API's normally have the top left as the origin,
so you may need to pass in (mouseX,window_height-mouseY,...).
Returns true on successful projection.
<DL><DT><DD></DL><P>
<A NAME="setFrameStamp"></A>
<A NAME="DOC.2.20.75"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setFrameStamp(osg::FrameStamp* fs)</B></TT>
<DD>Set the frame stamp for the current frame
<DL><DT><DD></DL><P>
<A NAME="getFrameStamp"></A>
<A NAME="DOC.2.20.76"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const osg::FrameStamp* getFrameStamp() const </B></TT>
<DD>Set the frame stamp for the current frame
<DL><DT><DD></DL><P>
<A NAME="init"></A>
<A NAME="DOC.2.20.77"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void init()</B></TT>
<DD>Do init traversal of attached scene graph using Init NodeVisitor.
The init traversal is called once for each SceneView, and should
be used to compile display list, texture objects intialize data
not otherwise intializaed during scene graph loading. Note, is
called automatically by update&cull if it hasn't already been called
elsewhere. Also init() should only ever be called within a valid
graphics context.
<DL><DT><DD></DL><P>
<A NAME="update"></A>
<A NAME="DOC.2.20.78"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void update()</B></TT>
<DD>Do app traversal of attached scene graph using App NodeVisitor
<DL><DT><DD></DL><P>
<A NAME="app"></A>
<A NAME="DOC.2.20.79"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void app()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="cull"></A>
<A NAME="DOC.2.20.80"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void cull()</B></TT>
<DD>Do cull traversal of attached scene graph using Cull NodeVisitor
<DL><DT><DD></DL><P>
<A NAME="draw"></A>
<A NAME="DOC.2.20.81"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void draw()</B></TT>
<DD>Do draw traversal of draw bins generated by cull traversal
<DL><DT><DD></DL><P>
<A NAME="~SceneView"></A>
<A NAME="DOC.2.20.82"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~SceneView()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="cullStage"></A>
<A NAME="DOC.2.20.83"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void cullStage(osg::RefMatrix* projection, osg::RefMatrix* modelview, <!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>* cullVisitor, <!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>* rendergraph, <!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>* renderStage)</B></TT>
<DD>Do cull traversal of attached scene graph using Cull NodeVisitor
<DL><DT><DD></DL><P>
<A NAME="computeMVPW"></A>
<A NAME="DOC.2.20.84"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::Matrix computeMVPW() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="clearArea"></A>
<A NAME="DOC.2.20.85"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void clearArea(int x, int y, int width, int height, const osg::Vec4&amp; color)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_sceneData"></A>
<A NAME="DOC.2.20.86"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::Node&gt; _sceneData</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_globalState"></A>
<A NAME="DOC.2.20.87"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::StateSet&gt; _globalState</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_light"></A>
<A NAME="DOC.2.20.88"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::Light&gt; _light</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_camera"></A>
<A NAME="DOC.2.20.89"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::Camera&gt; _camera</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_projectionMatrix"></A>
<A NAME="DOC.2.20.90"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::RefMatrix&gt; _projectionMatrix</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_modelviewMatrix"></A>
<A NAME="DOC.2.20.91"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::RefMatrix&gt; _modelviewMatrix</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_displaySettings"></A>
<A NAME="DOC.2.20.92"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::DisplaySettings&gt; _displaySettings</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_state"></A>
<A NAME="DOC.2.20.93"></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>
<A NAME="_initCalled"></A>
<A NAME="DOC.2.20.94"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _initCalled</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_initVisitor"></A>
<A NAME="DOC.2.20.95"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::NodeVisitor&gt; _initVisitor</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_updateVisitor"></A>
<A NAME="DOC.2.20.96"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::NodeVisitor&gt; _updateVisitor</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_cullMask"></A>
<A NAME="DOC.2.20.97"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Node::NodeMask _cullMask</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_cullVisitor"></A>
<A NAME="DOC.2.20.98"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>&gt; _cullVisitor</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_rendergraph"></A>
<A NAME="DOC.2.20.99"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>&gt; _rendergraph</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_renderStage"></A>
<A NAME="DOC.2.20.100"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>&gt; _renderStage</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_cullMaskLeft"></A>
<A NAME="DOC.2.20.101"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Node::NodeMask _cullMaskLeft</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_cullVisitorLeft"></A>
<A NAME="DOC.2.20.102"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>&gt; _cullVisitorLeft</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_rendergraphLeft"></A>
<A NAME="DOC.2.20.103"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>&gt; _rendergraphLeft</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_renderStageLeft"></A>
<A NAME="DOC.2.20.104"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>&gt; _renderStageLeft</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_cullMaskRight"></A>
<A NAME="DOC.2.20.105"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Node::NodeMask _cullMaskRight</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_cullVisitorRight"></A>
<A NAME="DOC.2.20.106"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="CullVisitor.html">osgUtil::CullVisitor</A>&gt; _cullVisitorRight</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_rendergraphRight"></A>
<A NAME="DOC.2.20.107"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="RenderGraph.html">osgUtil::RenderGraph</A>&gt; _rendergraphRight</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_renderStageRight"></A>
<A NAME="DOC.2.20.108"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="RenderStage.html">osgUtil::RenderStage</A>&gt; _renderStageRight</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_frameStamp"></A>
<A NAME="DOC.2.20.109"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::FrameStamp&gt; _frameStamp</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_backgroundColor"></A>
<A NAME="DOC.2.20.110"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Vec4 _backgroundColor</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_computeNearFar"></A>
<A NAME="DOC.2.20.111"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>CullVisitor::ComputeNearFarMode _computeNearFar</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_cullingMode"></A>
<A NAME="DOC.2.20.112"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::CullStack::CullingMode _cullingMode</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_LODScale"></A>
<A NAME="DOC.2.20.113"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float _LODScale</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_smallFeatureCullingPixelSize"></A>
<A NAME="DOC.2.20.114"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float _smallFeatureCullingPixelSize</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_fusionDistanceMode"></A>
<A NAME="DOC.2.20.115"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="SceneView.html#DOC.2.20.66">FusionDistanceMode</A> _fusionDistanceMode</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_fusionDistanceValue"></A>
<A NAME="DOC.2.20.116"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float _fusionDistanceValue</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_viewport"></A>
<A NAME="DOC.2.20.117"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::Viewport&gt; _viewport</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_lightingMode"></A>
<A NAME="DOC.2.20.118"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="SceneView.html#DOC.2.20.19">LightingMode</A> _lightingMode</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_prioritizeTextures"></A>
<A NAME="DOC.2.20.119"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _prioritizeTextures</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>