<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>BinToPastels.cxx</h1><a href="BinToPastels_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="BinToPastels_8h.html" title="BinToPastels class interface.">BinToPastels.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> BinToPastels::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, 255, 255, 255, 255, 255, 255, 255, 255, 255, <a name="l00021"></a>00021 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, <a name="l00022"></a>00022 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, <a name="l00023"></a>00023 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, <a name="l00024"></a>00024 253, 251, 249, 247, 245, 243, 241, 239, 237, 235, 233, 231, 229, 227, <a name="l00025"></a>00025 225, 223, 221, 219, 217, 216, 214, 212, 210, 208, 206, 204, 202, 200, <a name="l00026"></a>00026 198, 196, 194, 192, 190, 188, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, <a name="l00027"></a>00027 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="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, 2, 8, 13, 19, 25, 30, 36, 42, 48, 53, 59, 65, 71, 76, 82, <a name="l00030"></a>00030 88, 93, 99, 105, 111, 116, 122, 128, 133, 139, 145, 151, 156, 162, 168, <a name="l00031"></a>00031 173, 179, 185, 191, 196, 202, 208, 214, 219, 225, 231, 236, 242, 248, <a name="l00032"></a>00032 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, <a name="l00033"></a>00033 255, 255, 255}; <a name="l00034"></a>00034 <span class="keywordtype">int</span> BinToPastels::greens[256] = <a name="l00035"></a>00035 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, <a name="l00036"></a>00036 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="l00037"></a>00037 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="l00038"></a>00038 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="l00039"></a>00039 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="l00040"></a>00040 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 140, 146, 152, 157, 163, <a name="l00041"></a>00041 169, 174, 180, 186, 192, 197, 203, 209, 214, 220, 226, 232, 237, 243, <a name="l00042"></a>00042 249, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, <a name="l00043"></a>00043 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, <a name="l00044"></a>00044 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 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, 250, 244, 238, 233, 227, 221, 215, <a name="l00049"></a>00049 210, 204, 198, 193, 187, 181, 175, 170, 170}; <a name="l00050"></a>00050 <span class="keywordtype">int</span> BinToPastels::blues[256]= <a name="l00051"></a>00051 { 72, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 91, 93, 95, <a name="l00052"></a>00052 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, <a name="l00053"></a>00053 127, 129, 131, 133, 135, 137, 139, 141, 142, 144, 146, 148, 150, 152, <a name="l00054"></a>00054 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, <a name="l00055"></a>00055 182, 184, 186, 188, 190, 191, 193, 195, 197, 199, 201, 203, 205, 207, <a name="l00056"></a>00056 209, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, <a name="l00057"></a>00057 237, 239, 241, 242, 244, 246, 248, 250, 252, 254, 255, 255, 255, 255, <a name="l00058"></a>00058 255, 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, 249, 243, 237, 232, <a name="l00062"></a>00062 226, 220, 214, 209, 203, 197, 192, 186, 180, 174, 169, 163, 157, 152, <a name="l00063"></a>00063 146, 140, 134, 129, 123, 117, 112, 106, 100, 94, 89, 83, 77, 71, 66, 60, <a name="l00064"></a>00064 54, 49, 43, 37, 31, 26, 20, 14, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, <a name="l00065"></a>00065 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="l00066"></a>00066 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="l00067"></a>00067 0, 0}; <a name="l00068"></a>00068 BinToPastels:: <a name="l00069"></a><a class="code" href="classhippodraw_1_1BinToPastels.html#a9efa73d311c34d8cbae77c792f32ad08">00069</a> BinToPastels ( <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 < 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_1BinToPastels.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_1BinToPastels.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_1BinToPastels.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_1BinToPastels.html#a5a54682e4546d82917676284b141814d">00083</a> <a class="code" href="classhippodraw_1_1BinToPastels.html#a9efa73d311c34d8cbae77c792f32ad08" title="The constructor.">BinToPastels::BinToPastels</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinToPastels.html" title="This class implements a value to pastel colors.">BinToPastels</a> & 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_1BinToPastels.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_1BinToPastels.html#acf2d9ae0de44b8efbce24084b3ea5184" title="Creates a copy of itself.">BinToPastels::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_1BinToPastels.html#a9efa73d311c34d8cbae77c792f32ad08" title="The constructor.">BinToPastels</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>