Sophie

Sophie

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

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_bd46360b4c6a7cd846adf95fa79d46e4.html">python</a>
  </div>
</div>
<div class="contents">
<h1>QtCut.h</h1><a href="QtCut_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 _QtCut_H_</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define _QtCut_H_</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="QtDisplay_8h.html" title="hippodraw::QtDisplay class interface.">QtDisplay.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="keyword">namespace </span>boost {
<a name="l00020"></a>00020   <span class="keyword">namespace </span>python {
<a name="l00021"></a>00021     <span class="keyword">namespace </span>numeric {
<a name="l00022"></a>00022       <span class="keyword">class </span>array;
<a name="l00023"></a>00023     }
<a name="l00024"></a>00024   }
<a name="l00025"></a>00025 }
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">namespace </span>hippodraw {
<a name="l00028"></a>00028 
<a name="l00029"></a>00029   <span class="keyword">class </span>Cut1DPlotter;
<a name="l00030"></a>00030   <span class="keyword">class </span>Cut2DPlotter;
<a name="l00031"></a>00031   <span class="keyword">class </span>TupleCut;
<a name="l00032"></a>00032 
<a name="l00042"></a><a class="code" href="classhippodraw_1_1QtCut.html">00042</a> <span class="keyword">class </span><a class="code" href="classhippodraw_1_1QtCut.html" title="Qt Displays wraps a derived class of Cut1DPlotter.">QtCut</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a>
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="keyword">public</span>:
<a name="l00046"></a>00046 
<a name="l00048"></a>00048   <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut</a>( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> &amp; nt, 
<a name="l00049"></a>00049          <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; binding );
<a name="l00050"></a>00050 
<a name="l00052"></a>00052   <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut</a>( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1PyDataSource.html" title="This class is the public interface to a DataSource object that the user sees as the...">PyDataSource</a> &amp; nt, 
<a name="l00053"></a>00053          <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; binding );
<a name="l00054"></a>00054 
<a name="l00059"></a>00059   <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> &amp; source,
<a name="l00060"></a>00060           <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; binding,
<a name="l00061"></a>00061           <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * target, <span class="keywordtype">double</span> low, <span class="keywordtype">double</span> high );
<a name="l00062"></a>00062 
<a name="l00067"></a>00067   <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1PyDataSource.html" title="This class is the public interface to a DataSource object that the user sees as the...">PyDataSource</a> &amp; nt,  
<a name="l00068"></a>00068           <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; binding,
<a name="l00069"></a>00069           <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * target, <span class="keywordtype">double</span> low, <span class="keywordtype">double</span> high );
<a name="l00070"></a>00070 
<a name="l00074"></a>00074   <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut</a> ( <a class="code" href="classhippodraw_1_1PyDataSource.html" title="This class is the public interface to a DataSource object that the user sees as the...">PyDataSource</a> &amp; source,
<a name="l00075"></a>00075           <span class="keyword">const</span> std::string &amp; label,
<a name="l00076"></a>00076           boost::python::numeric::array array,
<a name="l00077"></a>00077           <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * target );
<a name="l00078"></a>00078 
<a name="l00081"></a>00081   <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut</a>( <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter );
<a name="l00082"></a>00082   
<a name="l00084"></a>00084   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtCut.html#ad5c441b9addbe42510d1b3bb850c9777" title="Adds a display as a target of the cut.">addTarget</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * );
<a name="l00085"></a>00085   
<a name="l00088"></a>00088   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtCut.html#a87578920c425dd7a375bd17b81206e63" title="Adds the displays as targets of the cut.">addTargets</a> ( <span class="keyword">const</span> std::vector &lt; QtDisplay * &gt; &amp; targets );
<a name="l00089"></a>00089 
<a name="l00092"></a>00092   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtCut.html#a54330d13ae61024954ca52666b80049f" title="Sets the range of the cut on the chosen axis.">setCutRange</a> ( <span class="keywordtype">double</span> low, <span class="keywordtype">double</span> high,  
<a name="l00093"></a>00093                      <span class="keyword">const</span> std::string &amp; axis = <span class="stringliteral">&quot;x&quot;</span> );
<a name="l00094"></a>00094   
<a name="l00098"></a>00098   std::vector&lt;double&gt; <a class="code" href="classhippodraw_1_1QtCut.html#a987de1a9b2179931fd11dedb826bc03a" title="Return the range of the cut.">cutRange</a>();
<a name="l00099"></a>00099 
<a name="l00104"></a>00104   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtCut.html#a3b845901b5a386c3682ed17c2431f781" title="Sets the enabled status.">setEnabled</a> ( <span class="keywordtype">bool</span> yes );
<a name="l00105"></a>00105 
<a name="l00108"></a>00108   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtCut.html#a987d667f01422e4a7e9070eb775e8ee9" title="Toggles the inversion status.">toggleInverted</a> ();
<a name="l00109"></a>00109 
<a name="l00110"></a>00110   <span class="keyword">static</span> <span class="keywordtype">void</span>
<a name="l00111"></a>00111   <a class="code" href="classhippodraw_1_1QtCut.html#a95e0cdb755608b425d0253637dfd45f8">fillCutList</a> ( std::vector &lt; const TupleCut * &gt; &amp; tuple_cut_list,
<a name="l00112"></a>00112                 <span class="keyword">const</span> std::vector &lt; QtCut * &gt; &amp; cut_list );
<a name="l00113"></a>00113 
<a name="l00118"></a>00118   <span class="keyword">static</span> <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&amp;lt;double&amp;gt; to store the column...">NTuple</a> * 
<a name="l00119"></a>00119   <a class="code" href="classhippodraw_1_1QtDisplay.html#a6cbd006f5158348ac6dde45606695a69" title="Creates and returns an PyNTuple representing the display.">createNTuple</a> ( <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; column_list,
<a name="l00120"></a>00120                  <span class="keyword">const</span> std::vector &lt; QtCut * &gt; &amp; cut_list, 
<a name="l00121"></a>00121                  <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ds );
<a name="l00122"></a>00122 
<a name="l00126"></a>00126   <span class="keyword">static</span> <span class="keywordtype">void</span>
<a name="l00127"></a>00127   <a class="code" href="classhippodraw_1_1QtCut.html#acc073c9530c283e9a1d1f3cd88fcea68" title="Static method.">createTnt</a> ( <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; column_list,
<a name="l00128"></a>00128               <span class="keyword">const</span> std::vector &lt; QtCut * &gt; &amp; cut_list, 
<a name="l00129"></a>00129               <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ds,
<a name="l00130"></a>00130               <span class="keyword">const</span> std::string &amp; filename,
<a name="l00131"></a>00131               <span class="keyword">const</span> std::string &amp; dsname );
<a name="l00132"></a>00132 
<a name="l00136"></a>00136   <span class="keyword">static</span> <span class="keywordtype">void</span>
<a name="l00137"></a>00137   <a class="code" href="classhippodraw_1_1QtCut.html#af08f3471144cf3522ed00f0faab4da5c" title="Static method.">createFits</a> ( <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; column_list,
<a name="l00138"></a>00138                <span class="keyword">const</span> std::vector &lt; QtCut * &gt; &amp; cut_list, 
<a name="l00139"></a>00139                <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ds,
<a name="l00140"></a>00140                <span class="keyword">const</span> std::string &amp; filename,
<a name="l00141"></a>00141                <span class="keyword">const</span> std::string &amp; dsname );
<a name="l00142"></a>00142     
<a name="l00143"></a>00143 <span class="keyword">private</span>:
<a name="l00144"></a>00144 
<a name="l00147"></a>00147   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtCut.html#a5448c88915d410f7b62691f95ac02dc4" title="Creates an uninitialized cut.">createCut</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> &amp; ds,
<a name="l00148"></a>00148                    <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; binding );
<a name="l00149"></a>00149 
<a name="l00150"></a>00150 };
<a name="l00151"></a>00151 
<a name="l00152"></a>00152 } <span class="comment">// namespace hippodraw</span>
<a name="l00153"></a>00153 
<a name="l00154"></a>00154 <span class="preprocessor">#endif // _QtCut_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>