Sophie

Sophie

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

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