OpenSceneGraph/doc/doc++/osgUtil/SceneView.html
2001-12-24 21:56:22 +00:00

644 lines
31 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.8">
</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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.12">getDisplaySettings</A></B>() const
<DD><I>Get the DisplaySettings </I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.13">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.25.14">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.25.15">setGlobalStateSet</A></B>(osg::StateSet* state)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::StateSet* <B><A HREF="#DOC.2.25.16">getGlobalStateSet</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::StateSet* <B><A HREF="#DOC.2.25.17">getGlobalStateSet</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.19">setLightingMode</A></B>(<!1><A HREF="SceneView.html#DOC.2.25.18">LightingMode</A> mode)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="SceneView.html#DOC.2.25.18">LightingMode</A> <B><A HREF="#DOC.2.25.20">getLightingMode</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.21">setLight</A></B>(osg::Light* light)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Light* <B><A HREF="#DOC.2.25.22">getLight</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Light* <B><A HREF="#DOC.2.25.23">getLight</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.24">setState</A></B>(osg::State* state)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::State* <B><A HREF="#DOC.2.25.25">getState</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::State* <B><A HREF="#DOC.2.25.26">getState</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.27">setCamera</A></B>(osg::Camera* camera)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Camera* <B><A HREF="#DOC.2.25.28">getCamera</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::Camera* <B><A HREF="#DOC.2.25.29">getCamera</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.30">setInitVisitor</A></B>(osg::NodeVisitor* av)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::NodeVisitor* <B><A HREF="#DOC.2.25.31">getInitVisitor</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::NodeVisitor* <B><A HREF="#DOC.2.25.32">getInitVisitor</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.33">setAppVisitor</A></B>(osg::NodeVisitor* av)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::NodeVisitor* <B><A HREF="#DOC.2.25.34">getAppVisitor</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const osg::NodeVisitor* <B><A HREF="#DOC.2.25.35">getAppVisitor</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.36">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.25.37">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.25.38">getCullVisitor</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.39">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.25.40">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.25.41">getRenderGraph</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.42">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.25.43">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.25.44">getRenderStage</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.45">setLODBias</A></B>(float bias)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.25.46">getLODBias</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.47">setCalcNearFar</A></B>(bool calc)
<DD><I>Set to true if you want SceneView to automatically calculate values for the near/far clipping planes, each frame, set false to use camera's internal near and far planes.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.25.48">getCalcNearFar</A></B>() const
<DD><I>return true if SceneView automatically calculates near and far clipping planes for each frame</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.25.49">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.25.50">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.25.51">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.25.52">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.25.53">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.25.54">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.25.55">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.25.56">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.25.57">app</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.25.58">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.25.59">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.25.18">LightingMode</A></B>
</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.25.61">_sceneData</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::StateSet&gt; <B><A HREF="#DOC.2.25.62">_globalState</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::Light&gt; <B><A HREF="#DOC.2.25.63">_light</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::Camera&gt; <B><A HREF="#DOC.2.25.64">_camera</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::DisplaySettings&gt; <B><A HREF="#DOC.2.25.65">_displaySettings</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::State&gt; <B><A HREF="#DOC.2.25.66">_state</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.25.67">_initCalled</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::NodeVisitor&gt; <B><A HREF="#DOC.2.25.68">_initVisitor</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::NodeVisitor&gt; <B><A HREF="#DOC.2.25.69">_appVisitor</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.25.70">_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.25.71">_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.25.72">_renderStage</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::FrameStamp&gt; <B><A HREF="#DOC.2.25.73">_frameStamp</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.25.74">_need_compile</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.25.75">_calc_nearfar</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Vec4 <B><A HREF="#DOC.2.25.76">_backgroundColor</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>double <B><A HREF="#DOC.2.25.77">_near_plane</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>double <B><A HREF="#DOC.2.25.78">_far_plane</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.25.79">_lodBias</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;osg::Viewport&gt; <B><A HREF="#DOC.2.25.80">_viewport</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="SceneView.html#DOC.2.25.18">LightingMode</A> <B><A HREF="#DOC.2.25.81">_lightingMode</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.25.82">_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.25.60">~SceneView</A></B>()
</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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const osg::DisplaySettings* getDisplaySettings() const </B></TT>
<DD>Get the DisplaySettings
<DL><DT><DD></DL><P>
<A NAME="setBackgroundColor"></A>
<A NAME="DOC.2.25.13"></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.25.14"></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.25.15"></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.25.16"></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.25.17"></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.25.18"></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.25.18.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.25.18.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.25.18.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.25.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setLightingMode(<!1><A HREF="SceneView.html#DOC.2.25.18">LightingMode</A> mode)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getLightingMode"></A>
<A NAME="DOC.2.25.20"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="SceneView.html#DOC.2.25.18">LightingMode</A> getLightingMode() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setLight"></A>
<A NAME="DOC.2.25.21"></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.25.22"></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.25.23"></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.25.24"></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.25.25"></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.25.26"></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.25.27"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setCamera(osg::Camera* camera)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getCamera"></A>
<A NAME="DOC.2.25.28"></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.25.29"></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="setInitVisitor"></A>
<A NAME="DOC.2.25.30"></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.25.31"></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.25.32"></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="setAppVisitor"></A>
<A NAME="DOC.2.25.33"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setAppVisitor(osg::NodeVisitor* av)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getAppVisitor"></A>
<A NAME="DOC.2.25.34"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::NodeVisitor* getAppVisitor()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getAppVisitor"></A>
<A NAME="DOC.2.25.35"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const osg::NodeVisitor* getAppVisitor() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setCullVisitor"></A>
<A NAME="DOC.2.25.36"></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.25.37"></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.25.38"></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.25.39"></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.25.40"></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.25.41"></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.25.42"></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.25.43"></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.25.44"></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="setLODBias"></A>
<A NAME="DOC.2.25.45"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setLODBias(float bias)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getLODBias"></A>
<A NAME="DOC.2.25.46"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float getLODBias() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setCalcNearFar"></A>
<A NAME="DOC.2.25.47"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setCalcNearFar(bool calc)</B></TT>
<DD>Set to true if you want SceneView to automatically calculate values
for the near/far clipping planes, each frame, set false to use camera's
internal near and far planes. Default value is true.
<DL><DT><DD></DL><P>
<A NAME="getCalcNearFar"></A>
<A NAME="DOC.2.25.48"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool getCalcNearFar() const </B></TT>
<DD>return true if SceneView automatically calculates near and
far clipping planes for each frame
<DL><DT><DD></DL><P>
<A NAME="setPrioritizeTextures"></A>
<A NAME="DOC.2.25.49"></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.25.50"></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.25.51"></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.25.52"></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.25.53"></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.25.54"></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.25.55"></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.25.56"></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 app&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="app"></A>
<A NAME="DOC.2.25.57"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void app()</B></TT>
<DD>Do app traversal of attached scene graph using App NodeVisitor
<DL><DT><DD></DL><P>
<A NAME="cull"></A>
<A NAME="DOC.2.25.58"></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.25.59"></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.25.60"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~SceneView()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_sceneData"></A>
<A NAME="DOC.2.25.61"></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.25.62"></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.25.63"></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.25.64"></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="_displaySettings"></A>
<A NAME="DOC.2.25.65"></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.25.66"></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.25.67"></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.25.68"></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="_appVisitor"></A>
<A NAME="DOC.2.25.69"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::NodeVisitor&gt; _appVisitor</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_cullVisitor"></A>
<A NAME="DOC.2.25.70"></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.25.71"></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.25.72"></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="_frameStamp"></A>
<A NAME="DOC.2.25.73"></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="_need_compile"></A>
<A NAME="DOC.2.25.74"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _need_compile</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_calc_nearfar"></A>
<A NAME="DOC.2.25.75"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _calc_nearfar</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_backgroundColor"></A>
<A NAME="DOC.2.25.76"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Vec4 _backgroundColor</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_near_plane"></A>
<A NAME="DOC.2.25.77"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>double _near_plane</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_far_plane"></A>
<A NAME="DOC.2.25.78"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>double _far_plane</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_lodBias"></A>
<A NAME="DOC.2.25.79"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float _lodBias</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_viewport"></A>
<A NAME="DOC.2.25.80"></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.25.81"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="SceneView.html#DOC.2.25.18">LightingMode</A> _lightingMode</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_prioritizeTextures"></A>
<A NAME="DOC.2.25.82"></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>