Sophie

Sophie

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

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