Sophie

Sophie

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

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