<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>OpenSceneGraph: osgUtil::ReflectionMapGenerator Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="a01640.html">osgUtil</a> </li> <li><a class="el" href="a00630.html">osgUtil::ReflectionMapGenerator</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> </div> <div class="headertitle"> <h1>osgUtil::ReflectionMapGenerator Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="osgUtil::ReflectionMapGenerator" --><!-- doxytag: inherits="osgUtil::CubeMapGenerator" --> <p>This is the most simple cube map generator. <a href="#_details">More...</a></p> <div class="dynheader"> Inheritance diagram for osgUtil::ReflectionMapGenerator:</div> <div class="dyncontent"> <div class="center"><img src="a03676.png" border="0" usemap="#osgUtil_1_1ReflectionMapGenerator_inherit__map" alt="Inheritance graph"/></div> <map name="osgUtil_1_1ReflectionMapGenerator_inherit__map" id="osgUtil_1_1ReflectionMapGenerator_inherit__map"> <area shape="rect" id="node2" href="a00176.html" title="This is the base class for cube map generators." alt="" coords="19,83,203,112"/><area shape="rect" id="node4" href="a00627.html" title="Base class from providing referencing counted objects." alt="" coords="52,5,169,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="a03677.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00630.html#a475310f0d62616f86b588e71dc7796db">ReflectionMapGenerator</a> (int texture_size=64)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00630.html#aa576c9678b7c42fed9e6f2c601883ac5">ReflectionMapGenerator</a> (const <a class="el" href="a00630.html">ReflectionMapGenerator</a> &copy, const <a class="el" href="a00169.html">osg::CopyOp</a> &copyop=osg::CopyOp::SHALLOW_COPY)</td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="a00630.html#a549ae4870d585b84e78dd647a3db6401">~ReflectionMapGenerator</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00630.html">ReflectionMapGenerator</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00630.html#a57a3ba0c489b4aa5bb232e2274c0f205">operator=</a> (const <a class="el" href="a00630.html">ReflectionMapGenerator</a> &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="a01074.html">osg::Vec4</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00630.html#a96aabaded807f6d6457590af85b56bab">compute_color</a> (const <a class="el" href="a01069.html">osg::Vec3</a> &R) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Override this method to define how colors are computed. <a href="#a96aabaded807f6d6457590af85b56bab"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>This is the most simple cube map generator. </p> <p>It performs a direct association between reflection vector and RGBA color (C = R). </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a475310f0d62616f86b588e71dc7796db"></a><!-- doxytag: member="osgUtil::ReflectionMapGenerator::ReflectionMapGenerator" ref="a475310f0d62616f86b588e71dc7796db" args="(int texture_size=64)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">osgUtil::ReflectionMapGenerator::ReflectionMapGenerator </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>texture_size</em> = <code>64</code></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="aa576c9678b7c42fed9e6f2c601883ac5"></a><!-- doxytag: member="osgUtil::ReflectionMapGenerator::ReflectionMapGenerator" ref="aa576c9678b7c42fed9e6f2c601883ac5" args="(const ReflectionMapGenerator &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">osgUtil::ReflectionMapGenerator::ReflectionMapGenerator </td> <td>(</td> <td class="paramtype">const <a class="el" href="a00630.html">ReflectionMapGenerator</a> & </td> <td class="paramname"> <em>copy</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="a00169.html">osg::CopyOp</a> & </td> <td class="paramname"> <em>copyop</em> = <code>osg::CopyOp::SHALLOW_COPY</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a549ae4870d585b84e78dd647a3db6401"></a><!-- doxytag: member="osgUtil::ReflectionMapGenerator::~ReflectionMapGenerator" ref="a549ae4870d585b84e78dd647a3db6401" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual osgUtil::ReflectionMapGenerator::~ReflectionMapGenerator </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline, protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a96aabaded807f6d6457590af85b56bab"></a><!-- doxytag: member="osgUtil::ReflectionMapGenerator::compute_color" ref="a96aabaded807f6d6457590af85b56bab" args="(const osg::Vec3 &R) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a01074.html">osg::Vec4</a> osgUtil::ReflectionMapGenerator::compute_color </td> <td>(</td> <td class="paramtype">const <a class="el" href="a01069.html">osg::Vec3</a> & </td> <td class="paramname"> <em>R</em></td> <td> ) </td> <td> const<code> [inline, protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Override this method to define how colors are computed. </p> <p>The parameter R is the reflection vector, pointing from the center of the cube. The return value should be the RGBA color associated with that reflection ray. </p> <p>Implements <a class="el" href="a00176.html#acb56125b5342ef0984cb8be8d3ce8f79">osgUtil::CubeMapGenerator</a>.</p> <p>References <a class="el" href="a01069.html#a875996d2b29bbe3f0577aafb5b990698">osg::Vec3f::length()</a>, and <a class="el" href="a00176.html#ae05e9d3a7d0439df27b59575777a7b4b">osgUtil::CubeMapGenerator::vector_to_color()</a>.</p> </div> </div> <a class="anchor" id="a57a3ba0c489b4aa5bb232e2274c0f205"></a><!-- doxytag: member="osgUtil::ReflectionMapGenerator::operator=" ref="a57a3ba0c489b4aa5bb232e2274c0f205" args="(const ReflectionMapGenerator &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00630.html">ReflectionMapGenerator</a>& osgUtil::ReflectionMapGenerator::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="a00630.html">ReflectionMapGenerator</a> & </td> <td class="paramname"></td> <td> ) </td> <td><code> [inline, protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>osgUtil/<a class="el" href="a01568.html">ReflectionMapGenerator</a></li> </ul> </div> <hr> <table border="0"><tr><td> <img src="osg32-32.png" alt="osg logo" /> </td><td> <address><small>Generated at Thu Aug 19 2010 16:22:46 for the <a href="http://www.openscenegraph.org/">OpenSceneGraph</a> by <a href="http://www.doxygen.org">doxygen</a> 1.7.1.</small></address> <!-- Dimitri van Heesch's e-mail address removed, lest he get messages on the OpenSceneGraph --> </td></tr></table> </body> </html>