Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 2718

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacehippodraw.html">hippodraw</a>::<a class="el" href="classhippodraw_1_1Color.html">Color</a>
  </div>
</div>
<div class="contents">
<h1>Color Class Reference</h1><!-- doxytag: class="hippodraw::Color" -->
<p>A <a class="el" href="classhippodraw_1_1Color.html" title="A Color class for creating the color object following the standard RGB color space...">Color</a> class for creating the color object following the standard RGB color space.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="Color_8h_source.html">Color.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for Color:</div>
<div class="dynsection">
<div class="center"><img src="classhippodraw_1_1Color__coll__graph.gif" border="0" usemap="#Color_coll__map" alt="Collaboration graph"/></div>
<map name="Color_coll__map" id="Color_coll__map">
<area shape="rect" id="node2" title="STL class." alt="" coords="5,101,101,131"/><area shape="rect" id="node16" title="STL class." alt="" coords="139,101,229,131"/><area shape="rect" id="node12" title="STL class." alt="" coords="271,101,324,131"/><area shape="rect" id="node14" title="STL class." alt="" coords="227,5,368,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classhippodraw_1_1Color-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880">Value</a> { <br/>
&nbsp;&nbsp;<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880aace9033470c7bfe9523c814271251908">red</a>, 
<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880a6aa25890c44e0aac424e56338abe47ca">green</a>, 
<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880a8f5fa6b484ac7e2a97943d915cf224e2">blue</a>, 
<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880ab31edea3fab8c488c7a8f78545e7f5a9">yellow</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880aa2b3d8856786dbe594751820bc1ff2e5">orange</a>, 
<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880af86e4e7e79173ee87c1976080bb250b7">cyan</a>, 
<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880a997d39850948cc1baf6bd0cfd791d95d">magenta</a>, 
<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880a775364fe1f3fffe99686bf6d572a7370">black</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880a1f4d12a09d3c93e96d2d9c95a9f3bd89">darkgray</a>, 
<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880a3b082eb5c383772d7198529b4a11d1e5">lightgray</a>, 
<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880ade7bfe6c82a2aaaee276f752cdadf3a9">white</a>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>A few common colors. </p>
 <a href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a79356f75792559724022c4444ce56264">Color</a> (const std::string &amp;name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A constructor using a <em>name</em> to set the color.  <a href="#a79356f75792559724022c4444ce56264"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a851dd9a56bb01ef59da2090a3b7c15c3">Color</a> (<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880">Color::Value</a> value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A constructor using <a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880" title="A few common colors.">Color::Value</a> to set the color.  <a href="#a851dd9a56bb01ef59da2090a3b7c15c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a9ea173113146997e24ff98601a128432">Color</a> (int red=0, int green=0, int blue=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The following constructor takes red, green, and blue components as arguments.  <a href="#a9ea173113146997e24ff98601a128432"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a6ef3a4782f8f919620728bc62e80f1e1">getBlue</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a2f7edccf0a09b1eb61bdca066be488ce">getGreen</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a554f0bc3f055386ee8d8af3bed2270e0">getRed</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#adfebbf39568a3c7f43fa72d39f507249">operator==</a> (<a class="el" href="classhippodraw_1_1Color.html">Color</a> c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#afcf43b323c7c6f7be4b5a4dd9ed67d6e">setColor</a> (<a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880">Color::Value</a> value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the color.  <a href="#afcf43b323c7c6f7be4b5a4dd9ed67d6e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#aa2181e20c0b567fedc7e77c317b5256e">setColor</a> (int red=0, int green=0, int blue=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the color.  <a href="#aa2181e20c0b567fedc7e77c317b5256e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#aff0b32998d700c5a25a89f1b0304b035">setColor</a> (const std::string &amp;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the color.  <a href="#aff0b32998d700c5a25a89f1b0304b035"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a5f1fae427255a7cb2f246c662b6d8dd4">addColor</a> (const char *name, const <a class="el" href="classhippodraw_1_1Color.html">Color</a> &amp;color)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a named color to the color by name map.  <a href="#a5f1fae427255a7cb2f246c662b6d8dd4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::vector<br class="typebreak"/>
&lt; std::string &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#ab83ec04e7cea0449a9c41e685ee146ce">colorNames</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the list of color names.  <a href="#ab83ec04e7cea0449a9c41e685ee146ce"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880">Color::Value</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#afd2c4bdd3a370a5ea6ae965a8a06f94e">getColor</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Instead of getting a random color, this static method loop over the 5 common colors: red, green, blue, magenta and orange.  <a href="#afd2c4bdd3a370a5ea6ae965a8a06f94e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#aabf05db3f9b281ef0b9b0bc539d511be">isValid</a> (const std::string &amp;name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns <code>true</code> if <em>name</em> is a valid color.  <a href="#aabf05db3f9b281ef0b9b0bc539d511be"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a4d6f16a223c2938ec6eea969d870bffe">colorIndex</a> = 0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classhippodraw_1_1Color.html" title="A Color class for creating the color object following the standard RGB color space...">Color</a> index for composite plotter.  <a href="#a4d6f16a223c2938ec6eea969d870bffe"></a><br/></td></tr>
<tr><td colspan="2"><h2>Private Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::map&lt; std::string, <br class="typebreak"/>
<a class="el" href="classhippodraw_1_1Color.html">Color</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a0cf6356f9cdb060e2b5d1fd660a86d78">ColorMapByName_t</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The type of container mapping string to <a class="el" href="classhippodraw_1_1Color.html" title="A Color class for creating the color object following the standard RGB color space...">Color</a> object.  <a href="#a0cf6356f9cdb060e2b5d1fd660a86d78"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#ae933a80efc7a0b25c7c530bc07c90dff">initColorByNameMap</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initializes the mapping of a name to <a class="el" href="classhippodraw_1_1Color.html" title="A Color class for creating the color object following the standard RGB color space...">Color</a> object.  <a href="#ae933a80efc7a0b25c7c530bc07c90dff"></a><br/></td></tr>
<tr><td colspan="2"><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a6d976298d7df84c4d1e167e44ee014ab">m_blue</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The blue component of the color.  <a href="#a6d976298d7df84c4d1e167e44ee014ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#acb6115cc02c24123d126a87e27c53820">m_green</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The green component of the color.  <a href="#acb6115cc02c24123d126a87e27c53820"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#aaaa5dc4bcfcbf40a425010a674035ba9">m_red</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The red component of the color.  <a href="#aaaa5dc4bcfcbf40a425010a674035ba9"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classhippodraw_1_1Color.html#a0cf6356f9cdb060e2b5d1fd660a86d78">ColorMapByName_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#abc0cfa42ebaeb255c7314fcd31f6e748">s_color_by_name</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The color by name map.  <a href="#abc0cfa42ebaeb255c7314fcd31f6e748"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static std::vector&lt; std::string &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1Color.html#a32bf5999edade6e42dab856472bc065f">s_color_names</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The list of available color names.  <a href="#a32bf5999edade6e42dab856472bc065f"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A <a class="el" href="classhippodraw_1_1Color.html" title="A Color class for creating the color object following the standard RGB color space...">Color</a> class for creating the color object following the standard RGB color space. </p>
<p>This class represents color in a way similar to color classes of GUI tool kits such as Java and <a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qt.html">Qt</a>. It should, thus, be straight-forward to convert from one to the other.</p>
<p>The compiler-generated copy constructor, destructor, and assignment operator are all valid and, thus, not explicitly implemented.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html">http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html</a> .</dd></dl>
<dl class="author"><dt><b>Author:</b></dt><dd>Stephane Bonneaud &lt;<a href="mailto:gandalf@slac.stanford.edu">gandalf@slac.stanford.edu</a>&gt; </dd></dl>

<p>Definition at line <a class="el" href="Color_8h_source.html#l00037">37</a> of file <a class="el" href="Color_8h_source.html">Color.h</a>.</p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a0cf6356f9cdb060e2b5d1fd660a86d78"></a><!-- doxytag: member="hippodraw::Color::ColorMapByName_t" ref="a0cf6356f9cdb060e2b5d1fd660a86d78" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef std::map&lt; std::string, <a class="el" href="classhippodraw_1_1Color.html">Color</a> &gt; <a class="el" href="classhippodraw_1_1Color.html#a0cf6356f9cdb060e2b5d1fd660a86d78">ColorMapByName_t</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The type of container mapping string to <a class="el" href="classhippodraw_1_1Color.html" title="A Color class for creating the color object following the standard RGB color space...">Color</a> object. </p>

<p>Definition at line <a class="el" href="Color_8h_source.html#l00058">58</a> of file <a class="el" href="Color_8h_source.html">Color.h</a>.</p>

</div>
</div>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a896c037a32087c5c20d97e64a1786880"></a><!-- doxytag: member="hippodraw::Color::Value" ref="a896c037a32087c5c20d97e64a1786880" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880">Value</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A few common colors. </p>
<p>A few common colors for use by clients.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>A few common colors are provided as a convenience to the programmer. They are better to use than constructing a <a class="el" href="classhippodraw_1_1Color.html" title="A Color class for creating the color object following the standard RGB color space...">Color</a> by name because they are typed checked and take up less space. At one point, it took over 5K byte more space in the core library if colors were created by name. </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880aace9033470c7bfe9523c814271251908"></a><!-- doxytag: member="red" ref="a896c037a32087c5c20d97e64a1786880aace9033470c7bfe9523c814271251908" args="" -->red</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880a6aa25890c44e0aac424e56338abe47ca"></a><!-- doxytag: member="green" ref="a896c037a32087c5c20d97e64a1786880a6aa25890c44e0aac424e56338abe47ca" args="" -->green</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880a8f5fa6b484ac7e2a97943d915cf224e2"></a><!-- doxytag: member="blue" ref="a896c037a32087c5c20d97e64a1786880a8f5fa6b484ac7e2a97943d915cf224e2" args="" -->blue</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880ab31edea3fab8c488c7a8f78545e7f5a9"></a><!-- doxytag: member="yellow" ref="a896c037a32087c5c20d97e64a1786880ab31edea3fab8c488c7a8f78545e7f5a9" args="" -->yellow</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880aa2b3d8856786dbe594751820bc1ff2e5"></a><!-- doxytag: member="orange" ref="a896c037a32087c5c20d97e64a1786880aa2b3d8856786dbe594751820bc1ff2e5" args="" -->orange</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880af86e4e7e79173ee87c1976080bb250b7"></a><!-- doxytag: member="cyan" ref="a896c037a32087c5c20d97e64a1786880af86e4e7e79173ee87c1976080bb250b7" args="" -->cyan</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880a997d39850948cc1baf6bd0cfd791d95d"></a><!-- doxytag: member="magenta" ref="a896c037a32087c5c20d97e64a1786880a997d39850948cc1baf6bd0cfd791d95d" args="" -->magenta</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880a775364fe1f3fffe99686bf6d572a7370"></a><!-- doxytag: member="black" ref="a896c037a32087c5c20d97e64a1786880a775364fe1f3fffe99686bf6d572a7370" args="" -->black</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880a1f4d12a09d3c93e96d2d9c95a9f3bd89"></a><!-- doxytag: member="darkgray" ref="a896c037a32087c5c20d97e64a1786880a1f4d12a09d3c93e96d2d9c95a9f3bd89" args="" -->darkgray</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880a3b082eb5c383772d7198529b4a11d1e5"></a><!-- doxytag: member="lightgray" ref="a896c037a32087c5c20d97e64a1786880a3b082eb5c383772d7198529b4a11d1e5" args="" -->lightgray</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a896c037a32087c5c20d97e64a1786880ade7bfe6c82a2aaaee276f752cdadf3a9"></a><!-- doxytag: member="white" ref="a896c037a32087c5c20d97e64a1786880ade7bfe6c82a2aaaee276f752cdadf3a9" args="" -->white</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="Color_8h_source.html#l00051">51</a> of file <a class="el" href="Color_8h_source.html">Color.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9ea173113146997e24ff98601a128432"></a><!-- doxytag: member="hippodraw::Color::Color" ref="a9ea173113146997e24ff98601a128432" args="(int red=0, int green=0, int blue=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1Color.html">Color</a> </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>red</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>green</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>blue</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The following constructor takes red, green, and blue components as arguments. </p>
<p>The range of the values is 0 to 255. If the default values are taken, then the color will be black. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00024">24</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

</div>
</div>
<a class="anchor" id="a851dd9a56bb01ef59da2090a3b7c15c3"></a><!-- doxytag: member="hippodraw::Color::Color" ref="a851dd9a56bb01ef59da2090a3b7c15c3" args="(Color::Value value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1Color.html">Color</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880">Color::Value</a>&nbsp;</td>
          <td class="paramname"> <em>value</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A constructor using <a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880" title="A few common colors.">Color::Value</a> to set the color. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00030">30</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8cxx_source.html#l00112">Color::setColor()</a>.</p>

</div>
</div>
<a class="anchor" id="a79356f75792559724022c4444ce56264"></a><!-- doxytag: member="hippodraw::Color::Color" ref="a79356f75792559724022c4444ce56264" args="(const std::string &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1Color.html">Color</a> </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A constructor using a <em>name</em> to set the color. </p>
<p>A constructor using a <em>name</em> to set the color. The <em>name</em> must match one of the values of the <a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880" title="A few common colors.">Color::Value</a> enumeration, otherwise the color is set to <a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880a775364fe1f3fffe99686bf6d572a7370">Color::black</a>. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00105">105</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8cxx_source.html#l00112">Color::setColor()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5f1fae427255a7cb2f246c662b6d8dd4"></a><!-- doxytag: member="hippodraw::Color::addColor" ref="a5f1fae427255a7cb2f246c662b6d8dd4" args="(const char *name, const Color &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void addColor </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhippodraw_1_1Color.html">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a named color to the color by name map. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00037">37</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8h_source.html#l00062">Color::s_color_by_name</a>.</p>

<p>Referenced by <a class="el" href="Color_8cxx_source.html#l00089">Color::initColorByNameMap()</a>.</p>

</div>
</div>
<a class="anchor" id="ab83ec04e7cea0449a9c41e685ee146ce"></a><!-- doxytag: member="hippodraw::Color::colorNames" ref="ab83ec04e7cea0449a9c41e685ee146ce" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt; std::string &gt; &amp; colorNames </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the list of color names. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00144">144</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8h_source.html#l00062">Color::s_color_by_name</a>, and <a class="el" href="Color_8h_source.html#l00066">Color::s_color_names</a>.</p>

</div>
</div>
<a class="anchor" id="a6ef3a4782f8f919620728bc62e80f1e1"></a><!-- doxytag: member="hippodraw::Color::getBlue" ref="a6ef3a4782f8f919620728bc62e80f1e1" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getBlue </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00174">174</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8h_source.html#l00075">Color::m_blue</a>.</p>

<p>Referenced by <a class="el" href="Inspector_8cxx_source.html#l02221">Inspector::colorSelect_clicked()</a>, <a class="el" href="ColorXML_8cxx_source.html#l00034">ColorXML::createElement()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00502">QtViewImp::createPen()</a>, <a class="el" href="BinToLineStyle_8cxx_source.html#l00034">BinToLineStyle::doubleToColor()</a>, <a class="el" href="BinToGreyScale_8cxx_source.html#l00034">BinToGreyScale::doubleToColor()</a>, <a class="el" href="BinToGamma_8cxx_source.html#l00042">BinToGamma::doubleToColor()</a>, <a class="el" href="BinToBlack_8cxx_source.html#l00033">BinToBlack::doubleToColor()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00609">QtViewImp::drawColorLines()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00118">OpenGLView::drawColorLines()</a>, <a class="el" href="AxisRepColor_8cxx_source.html#l00237">AxisRepColor::drawColorScale()</a>, <a class="el" href="CutRangeRep_8cxx_source.html#l00126">CutRangeRep::drawInvertedRange1D()</a>, <a class="el" href="CutRangeRep_8cxx_source.html#l00175">CutRangeRep::drawInvertedRange2D()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00067">OpenGLView::drawLines()</a>, <a class="el" href="CutRangeRep_8cxx_source.html#l00074">CutRangeRep::drawNormalRange()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00212">QtViewImp::drawPoints()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00312">OpenGLView::drawPoints()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00518">QtViewImp::drawPolygon()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00232">OpenGLView::drawPolyLine()</a>, <a class="el" href="ColorBoxPointRep_8cxx_source.html#l00082">ColorBoxPointRep::drawProjectedValues()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00917">QtViewImp::drawText()</a>, <a class="el" href="FilledColumnPointRep_8cxx_source.html#l00064">FilledColumnPointRep::drawValues()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00196">OpenGLView::drawViewLines()</a>, <a class="el" href="Color_8cxx_source.html#l00202">Color::operator==()</a>, <a class="el" href="EpsView_8cxx_source.html#l00103">EpsView::setRgbColor()</a>, and <a class="el" href="Inspector_8cxx_source.html#l01617">Inspector::updatePlotTab()</a>.</p>

</div>
</div>
<a class="anchor" id="afd2c4bdd3a370a5ea6ae965a8a06f94e"></a><!-- doxytag: member="hippodraw::Color::getColor" ref="afd2c4bdd3a370a5ea6ae965a8a06f94e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880">Color::Value</a> getColor </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Instead of getting a random color, this static method loop over the 5 common colors: red, green, blue, magenta and orange. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00181">181</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8h_source.html#l00051">Color::blue</a>, <a class="el" href="Color_8h_source.html#l00137">Color::colorIndex</a>, <a class="el" href="Color_8h_source.html#l00051">Color::green</a>, <a class="el" href="Color_8h_source.html#l00051">Color::magenta</a>, <a class="el" href="Color_8h_source.html#l00051">Color::orange</a>, and <a class="el" href="Color_8h_source.html#l00051">Color::red</a>.</p>

<p>Referenced by <a class="el" href="Inspector_8cxx_source.html#l01400">Inspector::addDataRepButton_clicked()</a>.</p>

</div>
</div>
<a class="anchor" id="a2f7edccf0a09b1eb61bdca066be488ce"></a><!-- doxytag: member="hippodraw::Color::getGreen" ref="a2f7edccf0a09b1eb61bdca066be488ce" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getGreen </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00169">169</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8h_source.html#l00072">Color::m_green</a>.</p>

<p>Referenced by <a class="el" href="Inspector_8cxx_source.html#l02221">Inspector::colorSelect_clicked()</a>, <a class="el" href="ColorXML_8cxx_source.html#l00034">ColorXML::createElement()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00502">QtViewImp::createPen()</a>, <a class="el" href="BinToLineStyle_8cxx_source.html#l00034">BinToLineStyle::doubleToColor()</a>, <a class="el" href="BinToGreyScale_8cxx_source.html#l00034">BinToGreyScale::doubleToColor()</a>, <a class="el" href="BinToGamma_8cxx_source.html#l00042">BinToGamma::doubleToColor()</a>, <a class="el" href="BinToBlack_8cxx_source.html#l00033">BinToBlack::doubleToColor()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00609">QtViewImp::drawColorLines()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00118">OpenGLView::drawColorLines()</a>, <a class="el" href="AxisRepColor_8cxx_source.html#l00237">AxisRepColor::drawColorScale()</a>, <a class="el" href="CutRangeRep_8cxx_source.html#l00126">CutRangeRep::drawInvertedRange1D()</a>, <a class="el" href="CutRangeRep_8cxx_source.html#l00175">CutRangeRep::drawInvertedRange2D()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00067">OpenGLView::drawLines()</a>, <a class="el" href="CutRangeRep_8cxx_source.html#l00074">CutRangeRep::drawNormalRange()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00212">QtViewImp::drawPoints()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00312">OpenGLView::drawPoints()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00518">QtViewImp::drawPolygon()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00232">OpenGLView::drawPolyLine()</a>, <a class="el" href="ColorBoxPointRep_8cxx_source.html#l00082">ColorBoxPointRep::drawProjectedValues()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00917">QtViewImp::drawText()</a>, <a class="el" href="FilledColumnPointRep_8cxx_source.html#l00064">FilledColumnPointRep::drawValues()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00196">OpenGLView::drawViewLines()</a>, <a class="el" href="Color_8cxx_source.html#l00202">Color::operator==()</a>, <a class="el" href="EpsView_8cxx_source.html#l00103">EpsView::setRgbColor()</a>, and <a class="el" href="Inspector_8cxx_source.html#l01617">Inspector::updatePlotTab()</a>.</p>

</div>
</div>
<a class="anchor" id="a554f0bc3f055386ee8d8af3bed2270e0"></a><!-- doxytag: member="hippodraw::Color::getRed" ref="a554f0bc3f055386ee8d8af3bed2270e0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getRed </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00164">164</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8h_source.html#l00069">Color::m_red</a>.</p>

<p>Referenced by <a class="el" href="Inspector_8cxx_source.html#l02221">Inspector::colorSelect_clicked()</a>, <a class="el" href="ColorXML_8cxx_source.html#l00034">ColorXML::createElement()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00502">QtViewImp::createPen()</a>, <a class="el" href="BinToLineStyle_8cxx_source.html#l00034">BinToLineStyle::doubleToColor()</a>, <a class="el" href="BinToGreyScale_8cxx_source.html#l00034">BinToGreyScale::doubleToColor()</a>, <a class="el" href="BinToGamma_8cxx_source.html#l00042">BinToGamma::doubleToColor()</a>, <a class="el" href="BinToBlack_8cxx_source.html#l00033">BinToBlack::doubleToColor()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00609">QtViewImp::drawColorLines()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00118">OpenGLView::drawColorLines()</a>, <a class="el" href="AxisRepColor_8cxx_source.html#l00237">AxisRepColor::drawColorScale()</a>, <a class="el" href="CutRangeRep_8cxx_source.html#l00126">CutRangeRep::drawInvertedRange1D()</a>, <a class="el" href="CutRangeRep_8cxx_source.html#l00175">CutRangeRep::drawInvertedRange2D()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00067">OpenGLView::drawLines()</a>, <a class="el" href="CutRangeRep_8cxx_source.html#l00074">CutRangeRep::drawNormalRange()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00212">QtViewImp::drawPoints()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00312">OpenGLView::drawPoints()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00518">QtViewImp::drawPolygon()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00232">OpenGLView::drawPolyLine()</a>, <a class="el" href="ColorBoxPointRep_8cxx_source.html#l00082">ColorBoxPointRep::drawProjectedValues()</a>, <a class="el" href="QtViewImp_8cxx_source.html#l00917">QtViewImp::drawText()</a>, <a class="el" href="FilledColumnPointRep_8cxx_source.html#l00064">FilledColumnPointRep::drawValues()</a>, <a class="el" href="OpenGLView_8cxx_source.html#l00196">OpenGLView::drawViewLines()</a>, <a class="el" href="Color_8cxx_source.html#l00202">Color::operator==()</a>, <a class="el" href="EpsView_8cxx_source.html#l00103">EpsView::setRgbColor()</a>, and <a class="el" href="Inspector_8cxx_source.html#l01617">Inspector::updatePlotTab()</a>.</p>

</div>
</div>
<a class="anchor" id="ae933a80efc7a0b25c7c530bc07c90dff"></a><!-- doxytag: member="hippodraw::Color::initColorByNameMap" ref="ae933a80efc7a0b25c7c530bc07c90dff" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void initColorByNameMap </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes the mapping of a name to <a class="el" href="classhippodraw_1_1Color.html" title="A Color class for creating the color object following the standard RGB color space...">Color</a> object. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00089">89</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8cxx_source.html#l00037">Color::addColor()</a>.</p>

<p>Referenced by <a class="el" href="Color_8cxx_source.html#l00131">Color::isValid()</a>.</p>

</div>
</div>
<a class="anchor" id="aabf05db3f9b281ef0b9b0bc539d511be"></a><!-- doxytag: member="hippodraw::Color::isValid" ref="aabf05db3f9b281ef0b9b0bc539d511be" args="(const std::string &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool isValid </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns <code>true</code> if <em>name</em> is a valid color. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00131">131</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8cxx_source.html#l00089">Color::initColorByNameMap()</a>, and <a class="el" href="Color_8h_source.html#l00062">Color::s_color_by_name</a>.</p>

<p>Referenced by <a class="el" href="PyDataRep_8cxx_source.html#l00457">PyDataRep::setColor()</a>, and <a class="el" href="Color_8cxx_source.html#l00112">Color::setColor()</a>.</p>

</div>
</div>
<a class="anchor" id="adfebbf39568a3c7f43fa72d39f507249"></a><!-- doxytag: member="hippodraw::Color::operator==" ref="adfebbf39568a3c7f43fa72d39f507249" args="(Color c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator== </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1Color.html">Color</a>&nbsp;</td>
          <td class="paramname"> <em>c</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00202">202</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8cxx_source.html#l00174">Color::getBlue()</a>, <a class="el" href="Color_8cxx_source.html#l00169">Color::getGreen()</a>, <a class="el" href="Color_8cxx_source.html#l00164">Color::getRed()</a>, <a class="el" href="Color_8h_source.html#l00075">Color::m_blue</a>, <a class="el" href="Color_8h_source.html#l00072">Color::m_green</a>, and <a class="el" href="Color_8h_source.html#l00069">Color::m_red</a>.</p>

</div>
</div>
<a class="anchor" id="afcf43b323c7c6f7be4b5a4dd9ed67d6e"></a><!-- doxytag: member="hippodraw::Color::setColor" ref="afcf43b323c7c6f7be4b5a4dd9ed67d6e" args="(Color::Value value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setColor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880">Color::Value</a>&nbsp;</td>
          <td class="paramname"> <em>value</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the color. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00045">45</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8h_source.html#l00052">Color::black</a>, <a class="el" href="Color_8h_source.html#l00051">Color::blue</a>, <a class="el" href="Color_8h_source.html#l00051">Color::cyan</a>, <a class="el" href="Color_8h_source.html#l00052">Color::darkgray</a>, <a class="el" href="Color_8h_source.html#l00051">Color::green</a>, <a class="el" href="Color_8h_source.html#l00052">Color::lightgray</a>, <a class="el" href="Color_8h_source.html#l00051">Color::magenta</a>, <a class="el" href="Color_8h_source.html#l00051">Color::orange</a>, <a class="el" href="Color_8h_source.html#l00051">Color::red</a>, <a class="el" href="Color_8cxx_source.html#l00112">Color::setColor()</a>, <a class="el" href="Color_8h_source.html#l00052">Color::white</a>, and <a class="el" href="Color_8h_source.html#l00051">Color::yellow</a>.</p>

</div>
</div>
<a class="anchor" id="aa2181e20c0b567fedc7e77c317b5256e"></a><!-- doxytag: member="hippodraw::Color::setColor" ref="aa2181e20c0b567fedc7e77c317b5256e" args="(int red=0, int green=0, int blue=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setColor </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>red</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>green</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>blue</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the color. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00157">157</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8h_source.html#l00075">Color::m_blue</a>, <a class="el" href="Color_8h_source.html#l00072">Color::m_green</a>, and <a class="el" href="Color_8h_source.html#l00069">Color::m_red</a>.</p>

</div>
</div>
<a class="anchor" id="aff0b32998d700c5a25a89f1b0304b035"></a><!-- doxytag: member="hippodraw::Color::setColor" ref="aff0b32998d700c5a25a89f1b0304b035" args="(const std::string &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setColor </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the color. </p>
<p>Sets the color by one of the known color names. If the <em>name</em> is not found in the color map, then sets the color to black. </p>

<p>Definition at line <a class="el" href="Color_8cxx_source.html#l00112">112</a> of file <a class="el" href="Color_8cxx_source.html">Color.cxx</a>.</p>

<p>References <a class="el" href="Color_8cxx_source.html#l00131">Color::isValid()</a>, <a class="el" href="Color_8h_source.html#l00075">Color::m_blue</a>, <a class="el" href="Color_8h_source.html#l00072">Color::m_green</a>, <a class="el" href="Color_8h_source.html#l00069">Color::m_red</a>, and <a class="el" href="Color_8h_source.html#l00062">Color::s_color_by_name</a>.</p>

<p>Referenced by <a class="el" href="Color_8cxx_source.html#l00030">Color::Color()</a>, <a class="el" href="ColorXML_8cxx_source.html#l00045">ColorXML::createObject()</a>, <a class="el" href="BinToUsrDefinedScale_8cxx_source.html#l00042">BinToUsrDefinedScale::doubleToColor()</a>, <a class="el" href="BinToMovingBrkPt_8cxx_source.html#l00044">BinToMovingBrkPt::doubleToColor()</a>, <a class="el" href="BinToLineStyle_8cxx_source.html#l00034">BinToLineStyle::doubleToColor()</a>, <a class="el" href="BinToKamaeScale_8cxx_source.html#l00038">BinToKamaeScale::doubleToColor()</a>, <a class="el" href="BinToGreyScale_8cxx_source.html#l00034">BinToGreyScale::doubleToColor()</a>, <a class="el" href="BinToGamma_8cxx_source.html#l00042">BinToGamma::doubleToColor()</a>, <a class="el" href="BinToFullColorScale_8cxx_source.html#l00037">BinToFullColorScale::doubleToColor()</a>, <a class="el" href="BinToColorScaleMovingBrkPt_8cxx_source.html#l00063">BinToColorScaleMovingBrkPt::doubleToColor()</a>, <a class="el" href="BinToColorMap_8cxx_source.html#l00070">BinToColorMap::doubleToColor()</a>, <a class="el" href="BinToBlack_8cxx_source.html#l00033">BinToBlack::doubleToColor()</a>, and <a class="el" href="Color_8cxx_source.html#l00045">Color::setColor()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a4d6f16a223c2938ec6eea969d870bffe"></a><!-- doxytag: member="hippodraw::Color::colorIndex" ref="a4d6f16a223c2938ec6eea969d870bffe" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classhippodraw_1_1Color.html#a4d6f16a223c2938ec6eea969d870bffe">colorIndex</a> = 0<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classhippodraw_1_1Color.html" title="A Color class for creating the color object following the standard RGB color space...">Color</a> index for composite plotter. </p>

<p>Definition at line <a class="el" href="Color_8h_source.html#l00137">137</a> of file <a class="el" href="Color_8h_source.html">Color.h</a>.</p>

<p>Referenced by <a class="el" href="Color_8cxx_source.html#l00181">Color::getColor()</a>.</p>

</div>
</div>
<a class="anchor" id="a6d976298d7df84c4d1e167e44ee014ab"></a><!-- doxytag: member="hippodraw::Color::m_blue" ref="a6d976298d7df84c4d1e167e44ee014ab" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classhippodraw_1_1Color.html#a6d976298d7df84c4d1e167e44ee014ab">m_blue</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The blue component of the color. </p>

<p>Definition at line <a class="el" href="Color_8h_source.html#l00075">75</a> of file <a class="el" href="Color_8h_source.html">Color.h</a>.</p>

<p>Referenced by <a class="el" href="Color_8cxx_source.html#l00174">Color::getBlue()</a>, <a class="el" href="Color_8cxx_source.html#l00202">Color::operator==()</a>, and <a class="el" href="Color_8cxx_source.html#l00112">Color::setColor()</a>.</p>

</div>
</div>
<a class="anchor" id="acb6115cc02c24123d126a87e27c53820"></a><!-- doxytag: member="hippodraw::Color::m_green" ref="acb6115cc02c24123d126a87e27c53820" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classhippodraw_1_1Color.html#acb6115cc02c24123d126a87e27c53820">m_green</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The green component of the color. </p>

<p>Definition at line <a class="el" href="Color_8h_source.html#l00072">72</a> of file <a class="el" href="Color_8h_source.html">Color.h</a>.</p>

<p>Referenced by <a class="el" href="Color_8cxx_source.html#l00169">Color::getGreen()</a>, <a class="el" href="Color_8cxx_source.html#l00202">Color::operator==()</a>, and <a class="el" href="Color_8cxx_source.html#l00112">Color::setColor()</a>.</p>

</div>
</div>
<a class="anchor" id="aaaa5dc4bcfcbf40a425010a674035ba9"></a><!-- doxytag: member="hippodraw::Color::m_red" ref="aaaa5dc4bcfcbf40a425010a674035ba9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classhippodraw_1_1Color.html#aaaa5dc4bcfcbf40a425010a674035ba9">m_red</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The red component of the color. </p>

<p>Definition at line <a class="el" href="Color_8h_source.html#l00069">69</a> of file <a class="el" href="Color_8h_source.html">Color.h</a>.</p>

<p>Referenced by <a class="el" href="Color_8cxx_source.html#l00164">Color::getRed()</a>, <a class="el" href="Color_8cxx_source.html#l00202">Color::operator==()</a>, and <a class="el" href="Color_8cxx_source.html#l00112">Color::setColor()</a>.</p>

</div>
</div>
<a class="anchor" id="abc0cfa42ebaeb255c7314fcd31f6e748"></a><!-- doxytag: member="hippodraw::Color::s_color_by_name" ref="abc0cfa42ebaeb255c7314fcd31f6e748" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1Color.html#a0cf6356f9cdb060e2b5d1fd660a86d78">Color::ColorMapByName_t</a> <a class="el" href="classhippodraw_1_1Color.html#abc0cfa42ebaeb255c7314fcd31f6e748">s_color_by_name</a><code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The color by name map. </p>

<p>Definition at line <a class="el" href="Color_8h_source.html#l00062">62</a> of file <a class="el" href="Color_8h_source.html">Color.h</a>.</p>

<p>Referenced by <a class="el" href="Color_8cxx_source.html#l00037">Color::addColor()</a>, <a class="el" href="Color_8cxx_source.html#l00144">Color::colorNames()</a>, <a class="el" href="Color_8cxx_source.html#l00131">Color::isValid()</a>, and <a class="el" href="Color_8cxx_source.html#l00112">Color::setColor()</a>.</p>

</div>
</div>
<a class="anchor" id="a32bf5999edade6e42dab856472bc065f"></a><!-- doxytag: member="hippodraw::Color::s_color_names" ref="a32bf5999edade6e42dab856472bc065f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::string &gt; <a class="el" href="classhippodraw_1_1Color.html#a32bf5999edade6e42dab856472bc065f">s_color_names</a><code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The list of available color names. </p>

<p>Definition at line <a class="el" href="Color_8h_source.html#l00066">66</a> of file <a class="el" href="Color_8h_source.html">Color.h</a>.</p>

<p>Referenced by <a class="el" href="Color_8cxx_source.html#l00144">Color::colorNames()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="Color_8h_source.html">Color.h</a></li>
<li><a class="el" href="Color_8cxx_source.html">Color.cxx</a></li>
</ul>
</div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>