<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_974d432048ef135a7d3fc83794dbf3e9.html">binners</a> </div> </div> <div class="contents"> <h1>Bins2DBase.h</h1><a href="Bins2DBase_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: c++; -*- */</span> <a name="l00002"></a>00002 <a name="l00014"></a>00014 <span class="preprocessor">#ifndef _Bins2DBase_H_</span> <a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define _Bins2DBase_H_</span> <a name="l00016"></a>00016 <span class="preprocessor"></span> <a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="BinsBase_8h.html" title="hippodraw::BinsBase class interface">BinsBase.h</a>"</span> <a name="l00018"></a>00018 <a name="l00019"></a>00019 <span class="keyword">namespace </span>hippodraw { <a name="l00020"></a>00020 <a name="l00030"></a><a class="code" href="classhippodraw_1_1Bins2DBase.html">00030</a> <span class="keyword">class </span><a class="code" href="libhippo_8h.html#a480024fd54849c743866874550153711">MDL_HIPPOPLOT_API</a> <a class="code" href="classhippodraw_1_1Bins2DBase.html" title="The base class for the 2D binner hierarchy.">Bins2DBase</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1BinsBase.html" title="The base class for the binner hierarchy.">BinsBase</a> <a name="l00031"></a>00031 { <a name="l00032"></a>00032 <a name="l00033"></a>00033 <span class="keyword">private</span>: <a name="l00034"></a>00034 <a name="l00036"></a><a class="code" href="classhippodraw_1_1Bins2DBase.html#a63f0e843e976ab71ef47e4322602e786">00036</a> <a class="code" href="classhippodraw_1_1BinnerAxis.html" title="The base class for the BinnerAxis hierarchy.">BinnerAxis</a> * binner_axisX; <a name="l00037"></a>00037 <a name="l00039"></a><a class="code" href="classhippodraw_1_1Bins2DBase.html#a6c09851a2bd7409d8810df69d2410a14">00039</a> <a class="code" href="classhippodraw_1_1BinnerAxis.html" title="The base class for the BinnerAxis hierarchy.">BinnerAxis</a> * binner_axisY; <a name="l00040"></a>00040 <a name="l00041"></a>00041 <span class="keyword">protected</span>: <a name="l00042"></a>00042 <a name="l00048"></a><a class="code" href="classhippodraw_1_1Bins2DBase.html#a287a9a0d703b83be85508774314e8073">00048</a> std::vector<std::vector<double> > m_data; <a name="l00049"></a>00049 <a name="l00050"></a>00050 <a name="l00052"></a>00052 <a class="code" href="classhippodraw_1_1Bins2DBase.html" title="The base class for the 2D binner hierarchy.">Bins2DBase</a> ( <span class="keyword">const</span> <span class="keywordtype">char</span> * name ); <a name="l00053"></a>00053 <a name="l00057"></a><a class="code" href="classhippodraw_1_1Bins2DBase.html#af113be2bbd858bb78acf33de386fac3a">00057</a> <span class="keywordtype">int</span> m_num_bins; <a name="l00058"></a>00058 <a name="l00061"></a>00061 <span class="keywordtype">int</span> binNumberX ( <span class="keywordtype">double</span> x ) <span class="keyword">const</span>; <a name="l00062"></a>00062 <a name="l00065"></a>00065 <span class="keywordtype">int</span> binNumberY ( <span class="keywordtype">double</span> y ) <span class="keyword">const</span>; <a name="l00066"></a>00066 <a name="l00067"></a>00067 <span class="keyword">virtual</span> <span class="keywordtype">double</span> getLow ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis ) <span class="keyword">const</span>; <a name="l00068"></a>00068 <a name="l00069"></a>00069 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNumberOfBins ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis, <span class="keywordtype">int</span> number ); <a name="l00070"></a>00070 <a name="l00074"></a>00074 <span class="keywordtype">void</span> resize (); <a name="l00075"></a>00075 <a name="l00077"></a>00077 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resize ( <span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny ); <a name="l00078"></a>00078 <a name="l00083"></a>00083 <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&lt;double&gt; to store the column...">NTuple</a> * prepareNTuple ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> rows ) <span class="keyword">const</span>; <a name="l00084"></a>00084 <a name="l00085"></a>00085 <span class="keyword">public</span>: <a name="l00086"></a>00086 <a name="l00088"></a>00088 <a class="code" href="classhippodraw_1_1Bins2DBase.html" title="The base class for the 2D binner hierarchy.">Bins2DBase</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Bins2DBase.html" title="The base class for the 2D binner hierarchy.">Bins2DBase</a> & binner ); <a name="l00089"></a>00089 <a name="l00091"></a>00091 ~<a class="code" href="classhippodraw_1_1Bins2DBase.html" title="The base class for the 2D binner hierarchy.">Bins2DBase</a> (); <a name="l00092"></a>00092 <a name="l00093"></a>00093 <span class="keyword">virtual</span> <span class="keywordtype">int</span> getNumberOfAxes () <span class="keyword">const</span>; <a name="l00094"></a>00094 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasEqualWidths () <span class="keyword">const</span>; <a name="l00095"></a>00095 <a name="l00097"></a>00097 <span class="keywordtype">double</span> binWidthX ( <span class="keywordtype">int</span> i ) <span class="keyword">const</span>; <a name="l00098"></a>00098 <a name="l00100"></a>00100 <span class="keywordtype">double</span> binWidthY ( <span class="keywordtype">int</span> i ) <span class="keyword">const</span>; <a name="l00101"></a>00101 <a name="l00102"></a>00102 <span class="keyword">virtual</span> <span class="keywordtype">int</span> numberOfBins ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis ) <span class="keyword">const</span>; <a name="l00103"></a>00103 <a name="l00104"></a>00104 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinnerAxis.html" title="The base class for the BinnerAxis hierarchy.">BinnerAxis</a> * getBinnerOn ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis ) <span class="keyword">const</span>; <a name="l00105"></a>00105 <a name="l00109"></a>00109 <span class="keywordtype">void</span> setBinnerOn ( <a class="code" href="classhippodraw_1_1BinnerAxis.html" title="The base class for the BinnerAxis hierarchy.">BinnerAxis</a> *, <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis ); <a name="l00110"></a>00110 <a name="l00111"></a>00111 <span class="keyword">virtual</span> <span class="keywordtype">double</span> scaleFactor () <span class="keyword">const</span>; <a name="l00112"></a>00112 <a name="l00114"></a>00114 <span class="keywordtype">int</span> numberOfBins() <span class="keyword">const</span>; <a name="l00115"></a>00115 <a name="l00116"></a>00116 <span class="keyword">virtual</span> <span class="keywordtype">double</span> binWidth ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis ) <span class="keyword">const</span>; <a name="l00117"></a>00117 <a name="l00118"></a>00118 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> & <a name="l00119"></a>00119 setBinWidth ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis, <span class="keywordtype">double</span> value ); <a name="l00120"></a>00120 <a name="l00123"></a>00123 <span class="keywordtype">double</span> calcBinWidth ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis, <a name="l00124"></a>00124 <span class="keywordtype">int</span> parm, <a name="l00125"></a>00125 <span class="keywordtype">bool</span> dragging ) <span class="keyword">const</span>; <a name="l00126"></a>00126 <a name="l00128"></a>00128 <span class="keyword">virtual</span> <span class="keywordtype">double</span> calcOffset ( <span class="keyword">const</span> std::string &, <a name="l00129"></a>00129 <span class="keywordtype">int</span> parm, <a name="l00130"></a>00130 <span class="keywordtype">bool</span> dragging ) <span class="keyword">const</span>; <a name="l00131"></a>00131 <a name="l00133"></a>00133 <span class="keyword">virtual</span> <span class="keywordtype">double</span> getOffset ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis ) <span class="keyword">const</span>; <a name="l00134"></a>00134 <a name="l00137"></a>00137 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setOffset ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis, <span class="keywordtype">double</span> value ); <a name="l00138"></a>00138 <a name="l00139"></a>00139 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> & setRange ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis, <a name="l00140"></a>00140 <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &, <a name="l00141"></a>00141 <span class="keywordtype">bool</span> hold_width = <span class="keyword">true</span> ); <a name="l00142"></a>00142 <a name="l00144"></a>00144 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> & getRange ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis ); <a name="l00145"></a>00145 <a name="l00146"></a>00146 <span class="keyword">virtual</span> <span class="keywordtype">int</span> getNumberOfEntries () <span class="keyword">const</span>; <a name="l00147"></a>00147 <a name="l00148"></a>00148 <span class="keyword">virtual</span> <span class="keywordtype">int</span> getUnderflow () <span class="keyword">const</span>; <a name="l00149"></a>00149 <span class="keyword">virtual</span> <span class="keywordtype">int</span> getOverflow () <span class="keyword">const</span>; <a name="l00150"></a>00150 <a name="l00151"></a>00151 <a name="l00152"></a>00152 }; <a name="l00153"></a>00153 <a name="l00154"></a>00154 } <span class="comment">// namespace hippodraw</span> <a name="l00155"></a>00155 <a name="l00156"></a>00156 <span class="preprocessor">#endif // _Bins2DBase_H_</span> </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>