Sophie

Sophie

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

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><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><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="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_e91d7d57230b93275afa36a649c1c346.html">colorreps</a>
  </div>
</div>
<div class="contents">
<h1>BinToHueSatLight2.cxx</h1><a href="BinToHueSatLight2_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="BinToHueSatLight2_8h.html" title="BinToHueSatLight2 class interface.">BinToHueSatLight2.h</a>&quot;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="keyword">using namespace </span>hippodraw;
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keywordtype">int</span> BinToHueSatLight2::reds[256] =
<a name="l00017"></a>00017 { 253, 253, 251, 250, 250, 249, 249, 248, 248, 247, 247,
<a name="l00018"></a>00018 246, 246, 246, 245, 245, 244, 244, 244, 243, 243, 242, 242, 242, 241,
<a name="l00019"></a>00019 241, 240, 240, 240, 239, 239, 239, 238, 238, 238, 237, 237, 236, 236,
<a name="l00020"></a>00020 236, 235, 235, 235, 235, 234, 233, 233, 232, 232, 231, 231, 230, 229,
<a name="l00021"></a>00021 229, 228, 227, 226, 226, 225, 224, 223, 223, 222, 221, 220, 219, 218,
<a name="l00022"></a>00022 217, 216, 215, 214, 213, 212, 211, 210, 208, 207, 206, 205, 204, 202,
<a name="l00023"></a>00023 200, 199, 198, 196, 195, 194, 192, 192, 191, 191, 190, 189, 188, 187,
<a name="l00024"></a>00024 185, 185, 184, 183, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174,
<a name="l00025"></a>00025 173, 172, 172, 171, 170, 169, 168, 167, 166, 165, 165, 164, 163, 162,
<a name="l00026"></a>00026 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 149, 148, 147,
<a name="l00027"></a>00027 146, 145, 144, 143, 142, 140, 139, 138, 138, 137, 136, 135, 134, 132,
<a name="l00028"></a>00028 131, 130, 129, 128, 127, 126, 125, 124, 122, 121, 120, 119, 118, 118,
<a name="l00029"></a>00029 116, 114, 113, 112, 111, 111, 109, 108, 109, 111, 114, 115, 117, 118,
<a name="l00030"></a>00030 120, 123, 125, 127, 129, 131, 134, 137, 139, 141, 144, 147, 150, 152,
<a name="l00031"></a>00031 155, 158, 161, 164, 167, 171, 174, 177, 181, 184, 188, 192, 195, 199,
<a name="l00032"></a>00032 203, 207, 211, 216, 220, 224, 228, 233, 237, 238, 239, 239, 240, 240,
<a name="l00033"></a>00033 240, 241, 241, 241, 242, 242, 243, 243, 243, 244, 244, 245, 245, 245,
<a name="l00034"></a>00034 246, 246, 247, 247, 247, 248, 248, 249, 249, 250, 250, 251, 251, 252,
<a name="l00035"></a>00035   252, 253, 253, 254, 254, 254, 254};
<a name="l00036"></a>00036 <span class="keywordtype">int</span> BinToHueSatLight2::greens[256] =
<a name="l00037"></a>00037 { 252, 252, 250, 250, 249, 249, 248, 248, 247, 247, 246,
<a name="l00038"></a>00038 246, 245, 245, 244, 244, 243, 242, 242, 241, 241, 240, 239, 239, 238,
<a name="l00039"></a>00039 238, 237, 236, 236, 235, 235, 234, 233, 233, 232, 232, 231, 230, 230,
<a name="l00040"></a>00040 229, 228, 228, 227, 226, 226, 225, 224, 223, 223, 222, 221, 221, 220,
<a name="l00041"></a>00041 219, 218, 218, 217, 217, 216, 215, 214, 214, 213, 212, 211, 211, 209,
<a name="l00042"></a>00042 209, 208, 208, 206, 206, 205, 205, 204, 202, 202, 201, 201, 200, 199,
<a name="l00043"></a>00043 197, 197, 196, 196, 195, 195, 194, 194, 194, 194, 194, 194, 194, 195,
<a name="l00044"></a>00044 194, 195, 195, 195, 196, 196, 196, 197, 197, 198, 198, 199, 199, 200,
<a name="l00045"></a>00045 200, 201, 202, 203, 204, 204, 205, 206, 207, 208, 210, 211, 212, 213,
<a name="l00046"></a>00046 215, 216, 217, 219, 220, 222, 222, 222, 222, 222, 222, 223, 223, 223,
<a name="l00047"></a>00047 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 224,
<a name="l00048"></a>00048 224, 224, 224, 224, 224, 224, 224, 224, 225, 225, 225, 225, 225, 225,
<a name="l00049"></a>00049 225, 226, 226, 226, 226, 226, 227, 227, 227, 227, 227, 227, 228, 228,
<a name="l00050"></a>00050 228, 228, 229, 229, 229, 229, 229, 230, 230, 230, 230, 231, 231, 231,
<a name="l00051"></a>00051 231, 232, 232, 232, 232, 233, 233, 233, 234, 234, 234, 234, 235, 235,
<a name="l00052"></a>00052 235, 236, 236, 236, 237, 237, 237, 238, 238, 235, 231, 227, 223, 218,
<a name="l00053"></a>00053 214, 210, 205, 201, 196, 191, 187, 182, 177, 172, 167, 162, 157, 151,
<a name="l00054"></a>00054 146, 140, 135, 129, 123, 117, 111, 106, 99, 93, 85, 78, 74, 67, 61, 54,
<a name="l00055"></a>00055   47, 40, 33, 27, 27};
<a name="l00056"></a>00056   <span class="keywordtype">int</span> BinToHueSatLight2::blues[256]=
<a name="l00057"></a>00057 { 252, 252, 250, 250, 249, 249, 248, 248, 247, 247, 246,
<a name="l00058"></a>00058 246, 245, 245, 244, 244, 243, 243, 243, 242, 242, 241, 241, 241, 240,
<a name="l00059"></a>00059 240, 239, 239, 239, 238, 238, 238, 237, 237, 237, 237, 236, 236, 236,
<a name="l00060"></a>00060 236, 235, 235, 235, 235, 234, 234, 234, 234, 233, 233, 233, 232, 232,
<a name="l00061"></a>00061 232, 232, 231, 231, 231, 230, 230, 230, 230, 229, 229, 229, 229, 229,
<a name="l00062"></a>00062 228, 228, 228, 228, 227, 227, 227, 227, 227, 226, 226, 226, 226, 226,
<a name="l00063"></a>00063 226, 225, 226, 225, 225, 225, 225, 224, 225, 224, 224, 224, 224, 224,
<a name="l00064"></a>00064 224, 224, 224, 224, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
<a name="l00065"></a>00065 223, 223, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222,
<a name="l00066"></a>00066 222, 222, 222, 222, 222, 222, 222, 220, 218, 217, 215, 213, 211, 210,
<a name="l00067"></a>00067 208, 206, 204, 202, 200, 197, 195, 193, 191, 188, 186, 183, 181, 178,
<a name="l00068"></a>00068 176, 173, 170, 168, 165, 162, 159, 156, 153, 150, 146, 143, 140, 137,
<a name="l00069"></a>00069 133, 129, 126, 122, 118, 116, 112, 107, 106, 105, 105, 104, 102, 100,
<a name="l00070"></a>00070 99, 99, 97, 96, 94, 93, 93, 91, 90, 88, 88, 86, 85, 83, 83, 81, 80, 78,
<a name="l00071"></a>00071 78, 76, 75, 73, 72, 71, 70, 69, 67, 66, 65, 63, 62, 62, 59, 58, 58, 55,
<a name="l00072"></a>00072 54, 54, 51, 50, 49, 47, 46, 45, 43, 42, 41, 39, 38, 36, 35, 34, 32, 31,
<a name="l00073"></a>00073 30, 28, 27, 25, 24, 23, 22, 20, 18, 17, 15, 14, 13, 8, 13, 8, 7, 5, 4,
<a name="l00074"></a>00074   2, 1, 0, 0};
<a name="l00075"></a>00075 BinToHueSatLight2::
<a name="l00076"></a><a class="code" href="classhippodraw_1_1BinToHueSatLight2.html#af99d6e8e948a7015c2bb504297d40bbd">00076</a> BinToHueSatLight2 ( <span class="keyword">const</span> <span class="keywordtype">char</span> * name )
<a name="l00077"></a>00077   : <a class="code" href="classhippodraw_1_1BinToColorMap.html" title="The base class for the value to the color transformation.">BinToColorMap</a> ( name )
<a name="l00078"></a>00078 {
<a name="l00079"></a>00079   <a class="code" href="classhippodraw_1_1BinToColorMap.html#a1951711673d1297250e9607dc140fc1a" title="vector of reds for color map.">m_reds</a>.resize ( 256);
<a name="l00080"></a>00080   <a class="code" href="classhippodraw_1_1BinToColorMap.html#a7b97174c3ea3639f19956c1a869f2276" title="vector of greens for color map.">m_greens</a>.resize ( 256 );
<a name="l00081"></a>00081   <a class="code" href="classhippodraw_1_1BinToColorMap.html#a067a68d593da370b79eeb6f9f0d75fe7" title="vector of blues for color map.">m_blues</a>.resize ( 256 );
<a name="l00082"></a>00082 
<a name="l00083"></a>00083   <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; 256; i++ ) {
<a name="l00084"></a>00084     <a class="code" href="classhippodraw_1_1BinToColorMap.html#a1951711673d1297250e9607dc140fc1a" title="vector of reds for color map.">m_reds</a>  [i] = <a class="code" href="classhippodraw_1_1BinToHueSatLight2.html#af8ef9136d2057fafe0fbeea364e3ea47">reds</a>[i];
<a name="l00085"></a>00085     <a class="code" href="classhippodraw_1_1BinToColorMap.html#a7b97174c3ea3639f19956c1a869f2276" title="vector of greens for color map.">m_greens</a>[i] = <a class="code" href="classhippodraw_1_1BinToHueSatLight2.html#a75e83604f229d4ab399943c3d3314dc3">greens</a>[i];
<a name="l00086"></a>00086     <a class="code" href="classhippodraw_1_1BinToColorMap.html#a067a68d593da370b79eeb6f9f0d75fe7" title="vector of blues for color map.">m_blues</a> [i] = <a class="code" href="classhippodraw_1_1BinToHueSatLight2.html#a3fc05dcd77fea8f491b5f3970af4f3b1">blues</a>[i];
<a name="l00087"></a>00087   }
<a name="l00088"></a>00088 }
<a name="l00089"></a>00089 
<a name="l00090"></a><a class="code" href="classhippodraw_1_1BinToHueSatLight2.html#af2ec3af25220d6ffab149611413b4b5e">00090</a> <a class="code" href="classhippodraw_1_1BinToHueSatLight2.html#af99d6e8e948a7015c2bb504297d40bbd" title="The constructor.">BinToHueSatLight2::BinToHueSatLight2</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinToHueSatLight2.html" title="This class implements a value to pastel colors.">BinToHueSatLight2</a> &amp; bin_to_color )
<a name="l00091"></a>00091   : <a class="code" href="classhippodraw_1_1BinToColorMap.html" title="The base class for the value to the color transformation.">BinToColorMap</a> ( bin_to_color )
<a name="l00092"></a>00092 {
<a name="l00093"></a>00093 }
<a name="l00094"></a>00094 
<a name="l00095"></a><a class="code" href="classhippodraw_1_1BinToHueSatLight2.html#acf2d9ae0de44b8efbce24084b3ea5184">00095</a> <a class="code" href="classhippodraw_1_1BinToColor.html" title="The base class for the value to the color transformation.">BinToColor</a> * <a class="code" href="classhippodraw_1_1BinToHueSatLight2.html#acf2d9ae0de44b8efbce24084b3ea5184" title="Creates a copy of itself.">BinToHueSatLight2::clone</a> ()<span class="keyword"> const</span>
<a name="l00096"></a>00096 <span class="keyword"></span>{
<a name="l00097"></a>00097   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1BinToHueSatLight2.html#af99d6e8e948a7015c2bb504297d40bbd" title="The constructor.">BinToHueSatLight2</a> ( *<span class="keyword">this</span> );
<a name="l00098"></a>00098 }
<a name="l00099"></a>00099 
</pre></div></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>