<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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_e91d7d57230b93275afa36a649c1c346.html">colorreps</a> </div> </div> <div class="contents"> <h1>BinToBeach.cxx</h1><a href="BinToBeach_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 "<a class="code" href="BinToBeach_8h.html" title="BinToBeach class interface.">BinToBeach.h</a>"</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> BinToBeach::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, 4, 8, 12, 17, 21, 25, 29, 34, 38, 42, 46, 51, 55, 59, 64, 68, <a name="l00022"></a>00022 72, 76, 81, 85, 89, 93, 98, 102, 106, 110, 115, 119, 123, 128, 132, 136, <a name="l00023"></a>00023 140, 76, 76, 76, 81, 85, 89, 93, 98, 102, 106, 110, 115, 119, 123, 128, <a name="l00024"></a>00024 132, 136, 140, 145, 149, 153, 157, 157, 161, 164, 167, 170, 173, 177, <a name="l00025"></a>00025 180, 183, 186, 189, 193, 196, 199, 202, 205, 209, 212, 215, 218, 218, <a name="l00026"></a>00026 219, 220, 222, 223, 224, 225, 226, 227, 229, 230, 231, 232, 233, 234, <a name="l00027"></a>00027 236, 237, 238, 239, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, <a name="l00028"></a>00028 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="l00029"></a>00029 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="l00030"></a>00030 0, 0, 0}; <a name="l00031"></a>00031 <span class="keywordtype">int</span> BinToBeach::greens[256] = <a name="l00032"></a>00032 { 251, 251, 249, 247, 245, 243, 241, 238, 236, 234, 232, <a name="l00033"></a>00033 230, 228, 226, 224, 221, 219, 217, 215, 213, 211, 209, 206, 204, 202, <a name="l00034"></a>00034 200, 198, 196, 194, 192, 189, 187, 185, 183, 181, 179, 177, 174, 172, <a name="l00035"></a>00035 170, 168, 166, 164, 162, 160, 157, 155, 153, 151, 149, 147, 145, 142, <a name="l00036"></a>00036 140, 138, 136, 134, 132, 130, 128, 128, 129, 131, 133, 134, 136, 138, <a name="l00037"></a>00037 139, 141, 143, 145, 146, 148, 150, 151, 153, 155, 157, 158, 160, 162, <a name="l00038"></a>00038 163, 165, 167, 168, 170, 172, 174, 175, 177, 179, 180, 182, 182, 177, <a name="l00039"></a>00039 171, 165, 160, 154, 149, 143, 138, 132, 126, 121, 115, 110, 104, 99, 93, <a name="l00040"></a>00040 88, 82, 76, 71, 65, 60, 54, 49, 43, 37, 32, 26, 21, 15, 13, 4, 0, 0, 0, <a name="l00041"></a>00041 4, 8, 12, 17, 21, 25, 29, 34, 38, 42, 46, 51, 55, 59, 64, 68, 72, 76, <a name="l00042"></a>00042 81, 81, 85, 89, 93, 98, 102, 106, 110, 115, 119, 123, 128, 132, 136, <a name="l00043"></a>00043 140, 145, 149, 153, 157, 162, 162, 166, 170, 174, 179, 183, 187, 192, <a name="l00044"></a>00044 196, 200, 204, 209, 213, 217, 221, 226, 230, 234, 238, 243, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; <a name="l00048"></a>00048 <span class="keywordtype">int</span> BinToBeach::blues[256]= <a name="l00049"></a>00049 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, <a name="l00050"></a>00050 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="l00051"></a>00051 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 8, 12, 17, 21, 25, <a name="l00052"></a>00052 29, 34, 38, 42, 46, 51, 55, 59, 64, 68, 72, 76, 81, 85, 89, 93, 98, 102, <a name="l00053"></a>00053 106, 110, 115, 119, 123, 128, 132, 136, 136, 136, 136, 136, 136, 136, <a name="l00054"></a>00054 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, <a name="l00055"></a>00055 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 76, 76, <a name="l00056"></a>00056 76, 72, 68, 64, 60, 56, 52, 48, 44, 40, 36, 32, 28, 23, 19, 15, 11, 7, <a name="l00057"></a>00057 3, 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, 4, 8, 12, 17, <a name="l00059"></a>00059 21, 25, 29, 34, 38, 42, 46, 51, 55, 59, 64, 68, 72, 76, 81, 81, 84, 88, <a name="l00060"></a>00060 91, 95, 98, 102, 105, 109, 113, 116, 120, 123, 127, 130, 134, 137, 141, <a name="l00061"></a>00061 145, 148, 152, 155, 159, 159, 162, 166, 170, 173, 177, 181, 184, 188, <a name="l00062"></a>00062 192, 195, 199, 203, 206, 210, 214, 217, 221, 225, 228, 232, 236, 239, 0, <a name="l00063"></a>00063 0, 0}; <a name="l00064"></a>00064 BinToBeach:: <a name="l00065"></a><a class="code" href="classhippodraw_1_1BinToBeach.html#a966db74df63a1b0d5762d3af3354bb81">00065</a> BinToBeach ( <span class="keyword">const</span> <span class="keywordtype">char</span> * name ) <a name="l00066"></a>00066 : <a class="code" href="classhippodraw_1_1BinToColorMap.html" title="The base class for the value to the color transformation.">BinToColorMap</a> ( name ) <a name="l00067"></a>00067 { <a name="l00068"></a>00068 <a class="code" href="classhippodraw_1_1BinToColorMap.html#a1951711673d1297250e9607dc140fc1a" title="vector of reds for color map.">m_reds</a>.resize ( 256); <a name="l00069"></a>00069 <a class="code" href="classhippodraw_1_1BinToColorMap.html#a7b97174c3ea3639f19956c1a869f2276" title="vector of greens for color map.">m_greens</a>.resize ( 256 ); <a name="l00070"></a>00070 <a class="code" href="classhippodraw_1_1BinToColorMap.html#a067a68d593da370b79eeb6f9f0d75fe7" title="vector of blues for color map.">m_blues</a>.resize ( 256 ); <a name="l00071"></a>00071 <a name="l00072"></a>00072 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i < 256; i++ ) { <a name="l00073"></a>00073 <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_1BinToBeach.html#af8ef9136d2057fafe0fbeea364e3ea47">reds</a>[i]; <a name="l00074"></a>00074 <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_1BinToBeach.html#a75e83604f229d4ab399943c3d3314dc3">greens</a>[i]; <a name="l00075"></a>00075 <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_1BinToBeach.html#a3fc05dcd77fea8f491b5f3970af4f3b1">blues</a>[i]; <a name="l00076"></a>00076 } <a name="l00077"></a>00077 } <a name="l00078"></a>00078 <a name="l00079"></a><a class="code" href="classhippodraw_1_1BinToBeach.html#a30c907ebf425253d2df36b0b78c6bde2">00079</a> <a class="code" href="classhippodraw_1_1BinToBeach.html#a966db74df63a1b0d5762d3af3354bb81" title="The constructor.">BinToBeach::BinToBeach</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinToBeach.html" title="This class implements a value to pastel colors.">BinToBeach</a> & bin_to_color ) <a name="l00080"></a>00080 : <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="l00081"></a>00081 { <a name="l00082"></a>00082 } <a name="l00083"></a>00083 <a name="l00084"></a><a class="code" href="classhippodraw_1_1BinToBeach.html#acf2d9ae0de44b8efbce24084b3ea5184">00084</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_1BinToBeach.html#acf2d9ae0de44b8efbce24084b3ea5184" title="Creates a copy of itself.">BinToBeach::clone</a> ()<span class="keyword"> const</span> <a name="l00085"></a>00085 <span class="keyword"></span>{ <a name="l00086"></a>00086 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1BinToBeach.html#a966db74df63a1b0d5762d3af3354bb81" title="The constructor.">BinToBeach</a> ( *<span class="keyword">this</span> ); <a name="l00087"></a>00087 } <a name="l00088"></a>00088 </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>