Sophie

Sophie

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

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>BinToGPink.cxx</h1><a href="BinToGPink_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="BinToGPink_8h.html" title="BinToGPink class interface.">BinToGPink.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> BinToGPink::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,
<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, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55,
<a name="l00023"></a>00023 60, 65, 70, 75, 80, 84, 88, 92, 96, 101, 106, 111, 116, 121, 126, 131,
<a name="l00024"></a>00024 136, 141, 146, 151, 156, 159, 162, 165, 168, 171, 174, 177, 180, 183,
<a name="l00025"></a>00025 186, 189, 192, 195, 198, 201, 204, 207, 210, 213, 216, 219, 222, 225,
<a name="l00026"></a>00026 228, 231, 234, 237, 240, 243, 246, 249, 252, 252, 252, 252, 252, 252,
<a name="l00027"></a>00027 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
<a name="l00028"></a>00028 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
<a name="l00029"></a>00029 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
<a name="l00030"></a>00030 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
<a name="l00031"></a>00031   252, 252, 252, 253, 254, 255};
<a name="l00032"></a>00032 <span class="keywordtype">int</span> BinToGPink::greens[256] =
<a name="l00033"></a>00033   { 0, 0, 0, 0, 14, 28, 43, 57, 72, 81, 90, 99, 108, 117, 126,
<a name="l00034"></a>00034 135, 144, 153, 162, 171, 180, 179, 178, 177, 176, 175, 174, 173, 172,
<a name="l00035"></a>00035 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158,
<a name="l00036"></a>00036 157, 156, 154, 152, 150, 148, 147, 146, 145, 144, 143, 142, 141, 140,
<a name="l00037"></a>00037 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 126, 124,
<a name="l00038"></a>00038 122, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108,
<a name="l00039"></a>00039 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 94, 92, 90, 88,
<a name="l00040"></a>00040 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70,
<a name="l00041"></a>00041 69, 68, 66, 64, 62, 60, 59, 58, 57, 56, 54, 52, 50, 48, 47, 46, 45, 44,
<a name="l00042"></a>00042 42, 40, 38, 36, 34, 32, 30, 28, 26, 24, 22, 20, 19, 18, 17, 16, 14, 12,
<a name="l00043"></a>00043 10, 8, 6, 4, 2, 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, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44,
<a name="l00045"></a>00045 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112,
<a name="l00046"></a>00046 116, 120, 124, 128, 132, 136, 140, 144, 147, 150, 153, 156, 160, 164,
<a name="l00047"></a>00047 168, 172, 176, 180, 184, 188, 192, 196, 200, 204, 208, 212, 216, 220,
<a name="l00048"></a>00048     224, 228, 232, 236, 240, 244, 248, 252, 253, 254, 255};
<a name="l00049"></a>00049   <span class="keywordtype">int</span> BinToGPink::blues[256]=
<a name="l00050"></a>00050     { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
<a name="l00051"></a>00051 0, 0, 1, 3, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33,
<a name="l00052"></a>00052 35, 37, 38, 40, 42, 44, 46, 48, 50, 53, 54, 56, 58, 60, 62, 64, 66, 68,
<a name="l00053"></a>00053 69, 71, 73, 75, 77, 79, 81, 83, 84, 86, 88, 90, 92, 94, 96, 99, 100,
<a name="l00054"></a>00054 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 123, 125, 127,
<a name="l00055"></a>00055 129, 131, 133, 135, 137, 138, 140, 142, 144, 146, 148, 150, 153, 154,
<a name="l00056"></a>00056 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 177, 179, 181,
<a name="l00057"></a>00057 183, 185, 187, 189, 191, 193, 195, 197, 199, 199, 198, 197, 196, 196,
<a name="l00058"></a>00058 196, 196, 195, 195, 194, 193, 192, 192, 191, 191, 190, 190, 190, 190,
<a name="l00059"></a>00059 190, 190, 190, 190, 189, 189, 188, 187, 186, 186, 185, 185, 184, 184,
<a name="l00060"></a>00060 185, 186, 187, 187, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188,
<a name="l00061"></a>00061 189, 189, 189, 189, 189, 189, 189, 189, 190, 190, 190, 190, 191, 191,
<a name="l00062"></a>00062 191, 191, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202,
<a name="l00063"></a>00063 203, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 214,
<a name="l00064"></a>00064 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
<a name="l00065"></a>00065 229, 230, 231, 232, 233, 234, 235, 236, 237, 237, 238, 239, 240, 241,
<a name="l00066"></a>00066       242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255};
<a name="l00067"></a>00067 BinToGPink::
<a name="l00068"></a><a class="code" href="classhippodraw_1_1BinToGPink.html#af242c9e636e654d442e51b4e2630367a">00068</a> BinToGPink ( <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_1BinToGPink.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_1BinToGPink.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_1BinToGPink.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_1BinToGPink.html#a10c023e2b7ce02e640dc8b48a88bb3f1">00082</a> <a class="code" href="classhippodraw_1_1BinToGPink.html#af242c9e636e654d442e51b4e2630367a" title="The constructor.">BinToGPink::BinToGPink</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinToGPink.html" title="This class implements a value to Prism color transform.">BinToGPink</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_1BinToGPink.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_1BinToGPink.html#acf2d9ae0de44b8efbce24084b3ea5184" title="Creates a copy of itself.">BinToGPink::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_1BinToGPink.html#af242c9e636e654d442e51b4e2630367a" title="The constructor.">BinToGPink</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>