Sophie

Sophie

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

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