Sophie

Sophie

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

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