<!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::TColor 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_color.html">TColor</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> | <a href="#pub-static-attribs">Static Public Attributes</a> </div> <div class="headertitle"> <div class="title">mrpt::utils::TColor 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::TColor" --><hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A RGB color - 8bit. </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_color-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_color.html#a7848db38e0d06ab2c60c65dd5e9c12ec">TColor</a> ()</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_color.html#af5bdff62161a7ccfc5ecf71b6dd22e33">TColor</a> (uint8_t r, uint8_t g, uint8_t b, uint8_t alpha=255)</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_color.html#ac1499b2822a146a490a5cc526dc4fdb6">TColor</a> (const unsigned int color_RGB_24bit)</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_color.html#a9dfac91d02cc5f8f3381bb3ed2489f1a">operator unsigned int</a> (void) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Operator for implicit conversion into an int binary representation 0xRRGGBB. <a href="#a9dfac91d02cc5f8f3381bb3ed2489f1a"></a><br/></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">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a0f62f632e30adf825cecb3e65d719ca5">R</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html#af3c6674942537c656cd0d8fa405a0fad">G</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a42c56d1cdfc6119d133b84f8dd3d3fad">B</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a2e5a371bfc3d2a9f6656e488e9947704">A</a></td></tr> <tr><td colspan="2"><h2><a name="pub-static-attribs"></a> Static Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a889b647441f8534a0e205e387635e1c1">red</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Predefined colors. <a href="#a889b647441f8534a0e205e387635e1c1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a5bf90664d0b8252eb2538af5ef9c29c1">green</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Predefined colors. <a href="#a5bf90664d0b8252eb2538af5ef9c29c1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a18bc65f7262e4dc77569f502cd14260e">blue</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Predefined colors. <a href="#a18bc65f7262e4dc77569f502cd14260e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a027d442b5be142e286b30859b71188cd">white</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Predefined colors. <a href="#a027d442b5be142e286b30859b71188cd"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html#ae112ea044360e8bbee5b2553a79240e8">black</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Predefined colors. <a href="#ae112ea044360e8bbee5b2553a79240e8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a3be8b8a51425783d005914b82b9f8891">gray</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Predefined colors. <a href="#a3be8b8a51425783d005914b82b9f8891"></a><br/></td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a7848db38e0d06ab2c60c65dd5e9c12ec"></a><!-- doxytag: member="mrpt::utils::TColor::TColor" ref="a7848db38e0d06ab2c60c65dd5e9c12ec" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::utils::TColor::TColor </td> <td>(</td> <td class="paramname"></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#l00044">44</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> </div> </div> <a class="anchor" id="af5bdff62161a7ccfc5ecf71b6dd22e33"></a><!-- doxytag: member="mrpt::utils::TColor::TColor" ref="af5bdff62161a7ccfc5ecf71b6dd22e33" args="(uint8_t r, uint8_t g, uint8_t b, uint8_t alpha=255)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::utils::TColor::TColor </td> <td>(</td> <td class="paramtype">uint8_t </td> <td class="paramname"><em>r</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint8_t </td> <td class="paramname"><em>g</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint8_t </td> <td class="paramname"><em>b</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint8_t </td> <td class="paramname"><em>alpha</em> = <code>255</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#l00045">45</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> </div> </div> <a class="anchor" id="ac1499b2822a146a490a5cc526dc4fdb6"></a><!-- doxytag: member="mrpt::utils::TColor::TColor" ref="ac1499b2822a146a490a5cc526dc4fdb6" args="(const unsigned int color_RGB_24bit)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::utils::TColor::TColor </td> <td>(</td> <td class="paramtype">const unsigned int </td> <td class="paramname"><em>color_RGB_24bit</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#l00046">46</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a9dfac91d02cc5f8f3381bb3ed2489f1a"></a><!-- doxytag: member="mrpt::utils::TColor::operator unsigned int" ref="a9dfac91d02cc5f8f3381bb3ed2489f1a" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::utils::TColor::operator unsigned int </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Operator for implicit conversion into an int binary representation 0xRRGGBB. </p> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00050">50</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="a2e5a371bfc3d2a9f6656e488e9947704"></a><!-- doxytag: member="mrpt::utils::TColor::A" ref="a2e5a371bfc3d2a9f6656e488e9947704" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t <a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a2e5a371bfc3d2a9f6656e488e9947704">mrpt::utils::TColor::A</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00047">47</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> </div> </div> <a class="anchor" id="a42c56d1cdfc6119d133b84f8dd3d3fad"></a><!-- doxytag: member="mrpt::utils::TColor::B" ref="a42c56d1cdfc6119d133b84f8dd3d3fad" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t <a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a42c56d1cdfc6119d133b84f8dd3d3fad">mrpt::utils::TColor::B</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00047">47</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> <p>Referenced by <a class="el" href="graph__tools__impl_8h_source.html#l00038">mrpt::opengl::graph_tools::graph_visualize()</a>.</p> </div> </div> <a class="anchor" id="ae112ea044360e8bbee5b2553a79240e8"></a><!-- doxytag: member="mrpt::utils::TColor::black" ref="ae112ea044360e8bbee5b2553a79240e8" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> <a class="el" href="structmrpt_1_1utils_1_1_t_color.html#ae112ea044360e8bbee5b2553a79240e8">mrpt::utils::TColor::black</a><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Predefined colors. </p> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00056">56</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> <p>Referenced by <a class="el" href="_c_occupancy_grid_map2_d_8h_source.html#l00929">mrpt::slam::COccupancyGridMap2D::saveAsBitmapFileWithLandmarks()</a>.</p> </div> </div> <a class="anchor" id="a18bc65f7262e4dc77569f502cd14260e"></a><!-- doxytag: member="mrpt::utils::TColor::blue" ref="a18bc65f7262e4dc77569f502cd14260e" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> <a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a18bc65f7262e4dc77569f502cd14260e">mrpt::utils::TColor::blue</a><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Predefined colors. </p> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00054">54</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> </div> </div> <a class="anchor" id="af3c6674942537c656cd0d8fa405a0fad"></a><!-- doxytag: member="mrpt::utils::TColor::G" ref="af3c6674942537c656cd0d8fa405a0fad" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t <a class="el" href="structmrpt_1_1utils_1_1_t_color.html#af3c6674942537c656cd0d8fa405a0fad">mrpt::utils::TColor::G</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00047">47</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> <p>Referenced by <a class="el" href="graph__tools__impl_8h_source.html#l00038">mrpt::opengl::graph_tools::graph_visualize()</a>.</p> </div> </div> <a class="anchor" id="a3be8b8a51425783d005914b82b9f8891"></a><!-- doxytag: member="mrpt::utils::TColor::gray" ref="a3be8b8a51425783d005914b82b9f8891" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> <a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a3be8b8a51425783d005914b82b9f8891">mrpt::utils::TColor::gray</a><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Predefined colors. </p> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00057">57</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> </div> </div> <a class="anchor" id="a5bf90664d0b8252eb2538af5ef9c29c1"></a><!-- doxytag: member="mrpt::utils::TColor::green" ref="a5bf90664d0b8252eb2538af5ef9c29c1" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> <a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a5bf90664d0b8252eb2538af5ef9c29c1">mrpt::utils::TColor::green</a><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Predefined colors. </p> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00053">53</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> <p>Referenced by <a class="el" href="_c_display_window_8h_source.html#l00108">mrpt::gui::CDisplayWindow::showTiledImageAndPoints()</a>.</p> </div> </div> <a class="anchor" id="a0f62f632e30adf825cecb3e65d719ca5"></a><!-- doxytag: member="mrpt::utils::TColor::R" ref="a0f62f632e30adf825cecb3e65d719ca5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t <a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a0f62f632e30adf825cecb3e65d719ca5">mrpt::utils::TColor::R</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00047">47</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> <p>Referenced by <a class="el" href="graph__tools__impl_8h_source.html#l00038">mrpt::opengl::graph_tools::graph_visualize()</a>.</p> </div> </div> <a class="anchor" id="a889b647441f8534a0e205e387635e1c1"></a><!-- doxytag: member="mrpt::utils::TColor::red" ref="a889b647441f8534a0e205e387635e1c1" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> <a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a889b647441f8534a0e205e387635e1c1">mrpt::utils::TColor::red</a><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Predefined colors. </p> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00052">52</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</a>.</p> </div> </div> <a class="anchor" id="a027d442b5be142e286b30859b71188cd"></a><!-- doxytag: member="mrpt::utils::TColor::white" ref="a027d442b5be142e286b30859b71188cd" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1utils_1_1_t_color.html">TColor</a> <a class="el" href="structmrpt_1_1utils_1_1_t_color.html#a027d442b5be142e286b30859b71188cd">mrpt::utils::TColor::white</a><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Predefined colors. </p> <p>Definition at line <a class="el" href="_t_color_8h_source.html#l00055">55</a> of file <a class="el" href="_t_color_8h_source.html">TColor.h</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>