Sophie

Sophie

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

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>BinToPeppermint.cxx</h1><a href="BinToPeppermint_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="BinToPeppermint_8h.html" title="BinToEosA class interface.">BinToPeppermint.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> BinToPeppermint::reds[256] =
<a name="l00017"></a>00017 { 0, 0, 0, 0, 80, 80, 80, 80, 160, 160, 160, 160, 240, 240,
<a name="l00018"></a>00018 240, 240, 0, 0, 0, 0, 80, 80, 80, 80, 160, 160, 160, 160, 240, 240, 240,
<a name="l00019"></a>00019 240, 0, 0, 0, 0, 80, 80, 80, 80, 160, 160, 160, 160, 240, 240, 240, 240,
<a name="l00020"></a>00020 0, 0, 0, 0, 80, 80, 80, 80, 160, 160, 160, 160, 240, 240, 240, 240, 0,
<a name="l00021"></a>00021 0, 0, 0, 80, 80, 80, 80, 160, 160, 160, 160, 240, 240, 240, 240, 0, 0,
<a name="l00022"></a>00022 0, 0, 80, 80, 80, 80, 160, 160, 160, 160, 240, 240, 240, 240, 0, 0, 0,
<a name="l00023"></a>00023 0, 80, 80, 80, 80, 160, 160, 160, 160, 240, 240, 240, 240, 0, 0, 0, 0,
<a name="l00024"></a>00024 80, 80, 80, 80, 160, 160, 160, 160, 240, 240, 240, 240, 0, 0, 0, 0, 80,
<a name="l00025"></a>00025 80, 80, 80, 160, 160, 160, 160, 240, 240, 240, 240, 0, 0, 0, 0, 80, 80,
<a name="l00026"></a>00026 80, 80, 160, 160, 160, 160, 240, 240, 240, 240, 0, 0, 0, 0, 80, 80, 80,
<a name="l00027"></a>00027 80, 160, 160, 160, 160, 240, 240, 240, 240, 0, 0, 0, 0, 80, 80, 80, 80,
<a name="l00028"></a>00028 160, 160, 160, 160, 240, 240, 240, 240, 0, 0, 0, 0, 80, 80, 81, 80, 160,
<a name="l00029"></a>00029 160, 160, 160, 240, 240, 240, 240, 0, 0, 0, 0, 80, 80, 80, 80, 160, 160,
<a name="l00030"></a>00030 160, 160, 240, 240, 240, 240, 0, 0, 0, 0, 80, 80, 80, 80, 160, 160, 160,
<a name="l00031"></a>00031 160, 240, 240, 240, 240, 0, 0, 0, 0, 80, 80, 80, 80, 160, 160, 160, 160,
<a name="l00032"></a>00032   240, 240, 240, 240};
<a name="l00033"></a>00033 <span class="keywordtype">int</span> BinToPeppermint::greens[256] =
<a name="l00034"></a>00034 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 16,
<a name="l00035"></a>00035 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 32, 32, 32, 32,
<a name="l00036"></a>00036 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 48, 48, 48, 48, 48, 48,
<a name="l00037"></a>00037 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 64, 64, 64, 64, 64, 64, 64, 64,
<a name="l00038"></a>00038 64, 64, 64, 64, 64, 64, 64, 64, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
<a name="l00039"></a>00039 80, 80, 80, 80, 80, 80, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
<a name="l00040"></a>00040 96, 96, 96, 96, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
<a name="l00041"></a>00041 112, 112, 112, 112, 112, 128, 128, 128, 128, 128, 128, 128, 128, 128,
<a name="l00042"></a>00042 128, 128, 128, 128, 128, 128, 128, 144, 144, 144, 144, 144, 144, 144,
<a name="l00043"></a>00043 144, 144, 144, 144, 144, 144, 144, 144, 144, 160, 160, 160, 160, 160,
<a name="l00044"></a>00044 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 176, 176, 176,
<a name="l00045"></a>00045 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 192,
<a name="l00046"></a>00046 192, 192, 192, 192, 192, 193, 192, 192, 192, 192, 192, 192, 192, 192,
<a name="l00047"></a>00047 192, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208,
<a name="l00048"></a>00048 208, 208, 208, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224,
<a name="l00049"></a>00049 224, 224, 224, 224, 224, 240, 240, 240, 240, 240, 240, 240, 240, 240,
<a name="l00050"></a>00050   240, 240, 240, 240, 240, 240, 240};
<a name="l00051"></a>00051   <span class="keywordtype">int</span> BinToPeppermint::blues[256]=
<a name="l00052"></a>00052 { 80, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80,
<a name="l00053"></a>00053 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160,
<a name="l00054"></a>00054 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240,
<a name="l00055"></a>00055 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0,
<a name="l00056"></a>00056 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80,
<a name="l00057"></a>00057 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160,
<a name="l00058"></a>00058 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240,
<a name="l00059"></a>00059 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0,
<a name="l00060"></a>00060 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80,
<a name="l00061"></a>00061 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160,
<a name="l00062"></a>00062 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240,
<a name="l00063"></a>00063 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0,
<a name="l00064"></a>00064 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80,
<a name="l00065"></a>00065 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160,
<a name="l00066"></a>00066 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240, 0, 80, 160, 240,
<a name="l00067"></a>00067   0, 80, 160, 160};
<a name="l00068"></a>00068 BinToPeppermint::
<a name="l00069"></a><a class="code" href="classhippodraw_1_1BinToPeppermint.html#a8033f48f8103461c44e7e38b19eb843d">00069</a> BinToPeppermint ( <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_1BinToPeppermint.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_1BinToPeppermint.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_1BinToPeppermint.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_1BinToPeppermint.html#a7fb1af0950ee75daafb5d0cb8a73ec01">00083</a> <a class="code" href="classhippodraw_1_1BinToPeppermint.html#a8033f48f8103461c44e7e38b19eb843d" title="The constructor.">BinToPeppermint::BinToPeppermint</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinToPeppermint.html" title="This class implements a value to nature colors.">BinToPeppermint</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_1BinToPeppermint.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_1BinToPeppermint.html#acf2d9ae0de44b8efbce24084b3ea5184" title="Creates a copy of itself.">BinToPeppermint::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_1BinToPeppermint.html#a8033f48f8103461c44e7e38b19eb843d" title="The constructor.">BinToPeppermint</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>