Sophie

Sophie

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

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