<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>mrpt::utils::TColorf Struct Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> > <b>C++ reference</b> </div> <div align="right"> <a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a> </div> <!-- Generated by Doxygen 1.7.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" 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="modules.html"><span>Modules</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> <div id="MSearchBox" class="MSearchBoxInactive"> <div class="left"> <form id="FSearchBox" action="search.php" method="get"> <img id="MSearchSelect" src="search/mag.png" alt=""/> <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"/> </form> </div><div class="right"></div> </div> </li> </ul> </div> <div id="navrow2" 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="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacemrpt.html">mrpt</a> </li> <li class="navelem"><a class="el" href="namespacemrpt_1_1utils.html">utils</a> </li> <li class="navelem"><a class="el" href="structmrpt_1_1utils_1_1_t_colorf.html">TColorf</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-attribs">Public Attributes</a> </div> <div class="headertitle"> <div class="title">mrpt::utils::TColorf Struct Reference<div class="ingroups"><a class="el" href="group__mrpt__base__grp.html">[mrpt-base]</a></div></div> </div> </div> <div class="contents"> <!-- doxytag: class="mrpt::utils::TColorf" --><hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A RGB color - floats in the range [0,1]. </p> </div> <p><code>#include <<a class="el" href="_t_color_8h_source.html">mrpt/utils/TColor.h</a>></code></p> <p><a href="structmrpt_1_1utils_1_1_t_colorf-members.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="structmrpt_1_1utils_1_1_t_colorf.html#af16218bd2db97e01bb64e05c2a0ec616">TColorf</a> (float r=0, float g=0, float b=0, float alpha=1.0f)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_colorf.html#ab97d3dfc6bf44d8336011f3e2684289b">TColorf</a> (const <a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> &col)</td></tr> <tr><td colspan="2"><h2><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_colorf.html#ac1941d15140c3f22cced86c45050aaef">R</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_colorf.html#a49c6f1a9fe53f5d9618f9660fc19d498">G</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_colorf.html#abd3067144a754d3bb08b786d7ce1757f">B</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_colorf.html#a4d07b92468313d471c58e94aa5f898c7">A</a></td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="af16218bd2db97e01bb64e05c2a0ec616"></a><!-- doxytag: member="mrpt::utils::TColorf::TColorf" ref="af16218bd2db97e01bb64e05c2a0ec616" args="(float r=0, float g=0, float b=0, float alpha=1.0f)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::utils::TColorf::TColorf </td> <td>(</td> <td class="paramtype">float </td> <td class="paramname"><em>r</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>g</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>b</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>alpha</em> = <code>1.0f</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00064">64</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> </div> </div> <a class="anchor" id="ab97d3dfc6bf44d8336011f3e2684289b"></a><!-- doxytag: member="mrpt::utils::TColorf::TColorf" ref="ab97d3dfc6bf44d8336011f3e2684289b" args="(const TColor &col)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::utils::TColorf::TColorf </td> <td>(</td> <td class="paramtype">const <a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> & </td> <td class="paramname"><em>col</em></td><td>)</td> <td><code> [inline, explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00065">65</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a4d07b92468313d471c58e94aa5f898c7"></a><!-- doxytag: member="mrpt::utils::TColorf::A" ref="a4d07b92468313d471c58e94aa5f898c7" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">float <a class="el" href="structmrpt_1_1utils_1_1_t_colorf.html#a4d07b92468313d471c58e94aa5f898c7">mrpt::utils::TColorf::A</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00066">66</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> <p>Referenced by <a class="el" href="_c_renderizable_8h_source.html#l00151">mrpt::opengl::CRenderizable::setColor()</a>.</p> </div> </div> <a class="anchor" id="abd3067144a754d3bb08b786d7ce1757f"></a><!-- doxytag: member="mrpt::utils::TColorf::B" ref="abd3067144a754d3bb08b786d7ce1757f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">float <a class="el" href="structmrpt_1_1utils_1_1_t_colorf.html#abd3067144a754d3bb08b786d7ce1757f">mrpt::utils::TColorf::B</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00066">66</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> <p>Referenced by <a class="el" href="_c_point_cloud_coloured_8h_source.html#l00161">mrpt::opengl::CPointCloudColoured::loadFromPointsMap()</a>, and <a class="el" href="_c_renderizable_8h_source.html#l00151">mrpt::opengl::CRenderizable::setColor()</a>.</p> </div> </div> <a class="anchor" id="a49c6f1a9fe53f5d9618f9660fc19d498"></a><!-- doxytag: member="mrpt::utils::TColorf::G" ref="a49c6f1a9fe53f5d9618f9660fc19d498" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">float <a class="el" href="structmrpt_1_1utils_1_1_t_colorf.html#a49c6f1a9fe53f5d9618f9660fc19d498">mrpt::utils::TColorf::G</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00066">66</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> <p>Referenced by <a class="el" href="_c_point_cloud_coloured_8h_source.html#l00161">mrpt::opengl::CPointCloudColoured::loadFromPointsMap()</a>, and <a class="el" href="_c_renderizable_8h_source.html#l00151">mrpt::opengl::CRenderizable::setColor()</a>.</p> </div> </div> <a class="anchor" id="ac1941d15140c3f22cced86c45050aaef"></a><!-- doxytag: member="mrpt::utils::TColorf::R" ref="ac1941d15140c3f22cced86c45050aaef" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">float <a class="el" href="structmrpt_1_1utils_1_1_t_colorf.html#ac1941d15140c3f22cced86c45050aaef">mrpt::utils::TColorf::R</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00066">66</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> <p>Referenced by <a class="el" href="_c_point_cloud_coloured_8h_source.html#l00161">mrpt::opengl::CPointCloudColoured::loadFromPointsMap()</a>, and <a class="el" href="_c_renderizable_8h_source.html#l00151">mrpt::opengl::CRenderizable::setColor()</a>.</p> </div> </div> </div> <br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150"> </td></tr> </table> </body></html>