Sophie

Sophie

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

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.cxx</h1><a href="QtCut_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="comment">// For truncation warning</span>
<a name="l00013"></a>00013 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#include &quot;msdevstudio/MSconfig.h&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#endif</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#include &quot;config.h&quot;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#endif</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="comment">// include first to avoid _POSIX_C_SOURCE warning.</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;boost/python.hpp&gt;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="QtCut_8h.html" title="hippodraw::QtCut class interface">QtCut.h</a>&quot;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="PyApp_8h.html" title="hippodraw::PyApp class interface.">PyApp.h</a>&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;<a class="code" href="PyDataSource_8h.html" title="hippodraw::PyDataSource class interface">PyDataSource.h</a>&quot;</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;<a class="code" href="CutController_8h.html" title="hippodraw::CutController class interface">controllers/CutController.h</a>&quot;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;<a class="code" href="TupleCut_8h.html" title="hippodraw::TupleCut class interface">datasrcs/TupleCut.h</a>&quot;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="NTupleController_8h.html" title="hippodraw::NTupleController class interface">datasrcs/NTupleController.h</a>&quot;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;<a class="code" href="FitsController_8h.html" title="hippodraw::FitsController class interface.">fits/FitsController.h</a>&quot;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &quot;<a class="code" href="CutPlotter_8h.html" title="hippodraw::CutPlotter class interface">plotters/CutPlotter.h</a>&quot;</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="keyword">using</span> std::string;
<a name="l00036"></a>00036 <span class="keyword">using</span> std::vector;
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keyword">using namespace </span>hippodraw;
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="keywordtype">void</span>
<a name="l00041"></a>00041 QtCut::
<a name="l00042"></a><a class="code" href="classhippodraw_1_1QtCut.html#a5448c88915d410f7b62691f95ac02dc4">00042</a> createCut ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> &amp; nt,
<a name="l00043"></a>00043             <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; binding )
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045   <a class="code" href="classhippodraw_1_1CutController.html" title="A singleton class that handles the application logic for cuts.">CutController</a> * controller = <a class="code" href="classhippodraw_1_1CutController.html#afdc46bf7a3ad3516a4f800bb2cce6e01" title="Returns the pointer to the singleton instance.">CutController::instance</a> ();
<a name="l00046"></a>00046   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Color.html" title="A Color class for creating the color object following the standard RGB color space...">Color</a> yellow ( <a class="code" href="classhippodraw_1_1Color.html#a896c037a32087c5c20d97e64a1786880ab31edea3fab8c488c7a8f78545e7f5a9">Color::yellow</a> );
<a name="l00047"></a>00047   <a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a> = controller -&gt; <a class="code" href="classhippodraw_1_1QtCut.html#a5448c88915d410f7b62691f95ac02dc4" title="Creates an uninitialized cut.">createCut</a> ( std::string(), &amp;nt, binding, yellow );
<a name="l00048"></a>00048 }
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut::</a>
<a name="l00051"></a><a class="code" href="classhippodraw_1_1QtCut.html#ab18c63aafe315600a49263fc491f9fd8">00051</a> <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="l00052"></a>00052         <span class="keyword">const</span> std::vector&lt; std::string &gt; &amp; binding,
<a name="l00053"></a>00053         <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="l00054"></a>00054    : <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> ( )
<a name="l00055"></a>00055 {
<a name="l00056"></a>00056   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a> ();
<a name="l00057"></a>00057   <a class="code" href="classhippodraw_1_1QtCut.html#a5448c88915d410f7b62691f95ac02dc4" title="Creates an uninitialized cut.">createCut</a> ( nt, binding );
<a name="l00058"></a>00058 
<a name="l00059"></a>00059   <a class="code" href="classhippodraw_1_1QtCut.html#ad5c441b9addbe42510d1b3bb850c9777" title="Adds a display as a target of the cut.">addTarget</a> ( target );
<a name="l00060"></a>00060   <a class="code" href="classhippodraw_1_1QtCut.html#a54330d13ae61024954ca52666b80049f" title="Sets the range of the cut on the chosen axis.">setCutRange</a> ( low, high, <span class="stringliteral">&quot;x&quot;</span> );
<a name="l00061"></a>00061   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00062"></a>00062 }
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut::</a>
<a name="l00065"></a><a class="code" href="classhippodraw_1_1QtCut.html#acc3165b89dbcd7d4377166b934292346">00065</a> <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; ds, 
<a name="l00066"></a>00066         <span class="keyword">const</span> std::vector&lt; std::string &gt; &amp; binding,
<a name="l00067"></a>00067         <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="l00068"></a>00068    : <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> ( )
<a name="l00069"></a>00069 {
<a name="l00070"></a>00070   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a> ();
<a name="l00071"></a>00071   <a class="code" href="classhippodraw_1_1QtCut.html#a5448c88915d410f7b62691f95ac02dc4" title="Creates an uninitialized cut.">createCut</a> ( ds.<a class="code" href="classhippodraw_1_1PyDataSource.html#a5e1620dad6d32635469440fb2c902499" title="Return a reference to the underlying DataSource.">dataSource</a>(), binding );
<a name="l00072"></a>00072 
<a name="l00073"></a>00073   <a class="code" href="classhippodraw_1_1QtCut.html#ad5c441b9addbe42510d1b3bb850c9777" title="Adds a display as a target of the cut.">addTarget</a> ( target );
<a name="l00074"></a>00074   <a class="code" href="classhippodraw_1_1QtCut.html#a54330d13ae61024954ca52666b80049f" title="Sets the range of the cut on the chosen axis.">setCutRange</a> ( low, high, <span class="stringliteral">&quot;x&quot;</span> );
<a name="l00075"></a>00075   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00076"></a>00076 }
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut::</a>
<a name="l00079"></a><a class="code" href="classhippodraw_1_1QtCut.html#a3c148ca5c514bc5e2b296d3fb884729d">00079</a> <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="l00080"></a>00080         <span class="keyword">const</span> std::string &amp; label,
<a name="l00081"></a>00081         boost::python::numeric::array array,
<a name="l00082"></a>00082         <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * target )
<a name="l00083"></a>00083 {
<a name="l00084"></a>00084 <span class="preprocessor">#ifdef HAVE_NUMARRAY</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span>  <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a> ();
<a name="l00086"></a>00086 
<a name="l00087"></a>00087   source.<a class="code" href="classhippodraw_1_1PyDataSource.html#a6df19d2008a22273c0a4cbf2546706be" title="Replace or add a column from a numarray object, indexing by column label.">saveColumnFromNumArray</a> ( label, array );
<a name="l00088"></a>00088   vector &lt; string &gt; binding;
<a name="l00089"></a>00089   binding.push_back ( label );
<a name="l00090"></a>00090   <a class="code" href="classhippodraw_1_1QtCut.html#a5448c88915d410f7b62691f95ac02dc4" title="Creates an uninitialized cut.">createCut</a> ( source.<a class="code" href="classhippodraw_1_1PyDataSource.html#a5e1620dad6d32635469440fb2c902499" title="Return a reference to the underlying DataSource.">dataSource</a> (), binding );
<a name="l00091"></a>00091   <a class="code" href="classhippodraw_1_1QtCut.html#ad5c441b9addbe42510d1b3bb850c9777" title="Adds a display as a target of the cut.">addTarget</a> ( target );
<a name="l00092"></a>00092   <a class="code" href="classhippodraw_1_1QtCut.html#a54330d13ae61024954ca52666b80049f" title="Sets the range of the cut on the chosen axis.">setCutRange</a> ( 0.9, 1.1, <span class="stringliteral">&quot;x&quot;</span> );
<a name="l00093"></a>00093 
<a name="l00094"></a>00094   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00095"></a>00095 <span class="preprocessor">#else</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span>  std::runtime_error e ( <span class="stringliteral">&quot;HippoDraw was not built with &quot;</span>
<a name="l00097"></a>00097                        <span class="stringliteral">&quot;numeric Python support&quot;</span> );
<a name="l00098"></a>00098   <span class="keywordflow">throw</span> e;
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="preprocessor">#endif // HAVE_NUMARRAY</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span>}
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut::</a>
<a name="l00104"></a><a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af">00104</a> <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="l00105"></a>00105         <span class="keyword">const</span> std::vector&lt; std::string &gt; &amp; binding )
<a name="l00106"></a>00106    : <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> ( )
<a name="l00107"></a>00107 {
<a name="l00108"></a>00108   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a> ();
<a name="l00109"></a>00109   <a class="code" href="classhippodraw_1_1QtCut.html#a5448c88915d410f7b62691f95ac02dc4" title="Creates an uninitialized cut.">createCut</a> ( nt, binding );
<a name="l00110"></a>00110   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00111"></a>00111 }
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut::</a>
<a name="l00114"></a><a class="code" href="classhippodraw_1_1QtCut.html#a9c0ef047600abae34b8f1a663ca17114">00114</a> <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="l00115"></a>00115         <span class="keyword">const</span> std::vector&lt; std::string &gt; &amp; binding )
<a name="l00116"></a>00116    : <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> ( )
<a name="l00117"></a>00117 {
<a name="l00118"></a>00118   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a> ();
<a name="l00119"></a>00119   <a class="code" href="classhippodraw_1_1QtCut.html#a5448c88915d410f7b62691f95ac02dc4" title="Creates an uninitialized cut.">createCut</a> ( nt.<a class="code" href="classhippodraw_1_1PyDataSource.html#a5e1620dad6d32635469440fb2c902499" title="Return a reference to the underlying DataSource.">dataSource</a> (), binding );
<a name="l00120"></a>00120   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00121"></a>00121 }
<a name="l00122"></a>00122 
<a name="l00123"></a><a class="code" href="classhippodraw_1_1QtCut.html#a749188225b3df436e8297c08ec75ce85">00123</a> <a class="code" href="classhippodraw_1_1QtCut.html#ad0f3d23e4318543b1515485eb8fe16af" title="Create a cut.">QtCut::QtCut</a> ( <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter ) 
<a name="l00124"></a>00124    : <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a>()
<a name="l00125"></a>00125 {
<a name="l00126"></a>00126   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a> ();
<a name="l00127"></a>00127   <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * cut_plotter = dynamic_cast &lt; <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * &gt; ( plotter );
<a name="l00128"></a>00128   assert ( cut_plotter != 0 );
<a name="l00129"></a>00129 
<a name="l00130"></a>00130   <a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a> = plotter;
<a name="l00131"></a>00131   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00132"></a>00132 }
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 <span class="keywordtype">void</span>
<a name="l00135"></a>00135 <a class="code" href="classhippodraw_1_1QtCut.html#ad5c441b9addbe42510d1b3bb850c9777" title="Adds a display as a target of the cut.">QtCut::</a>
<a name="l00136"></a><a class="code" href="classhippodraw_1_1QtCut.html#ad5c441b9addbe42510d1b3bb850c9777">00136</a> <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> * target )
<a name="l00137"></a>00137 {
<a name="l00138"></a>00138   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a>();
<a name="l00139"></a>00139 
<a name="l00140"></a>00140   <a class="code" href="classhippodraw_1_1CutController.html" title="A singleton class that handles the application logic for cuts.">CutController</a> * controller = <a class="code" href="classhippodraw_1_1CutController.html#afdc46bf7a3ad3516a4f800bb2cce6e01" title="Returns the pointer to the singleton instance.">CutController::instance</a> ();
<a name="l00141"></a>00141   <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * cp = dynamic_cast &lt; <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * &gt; ( <a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a> );
<a name="l00142"></a>00142   controller -&gt; addCut ( cp, target -&gt; <a class="code" href="classhippodraw_1_1QtDisplay.html#aea050d6d675376d2ee2899c07fda4c4f" title="Returns the wrapped display object.">display</a> () );
<a name="l00143"></a>00143   
<a name="l00144"></a>00144   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00145"></a>00145 }
<a name="l00146"></a>00146 
<a name="l00147"></a><a class="code" href="classhippodraw_1_1QtCut.html#a87578920c425dd7a375bd17b81206e63">00147</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtCut.html#a87578920c425dd7a375bd17b81206e63" title="Adds the displays as targets of the cut.">QtCut::addTargets</a> ( <span class="keyword">const</span> std::vector &lt; QtDisplay * &gt; &amp; targets )
<a name="l00148"></a>00148 {
<a name="l00149"></a>00149   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a>();
<a name="l00150"></a>00150 
<a name="l00151"></a>00151   <a class="code" href="classhippodraw_1_1CutController.html" title="A singleton class that handles the application logic for cuts.">CutController</a> * controller = <a class="code" href="classhippodraw_1_1CutController.html#afdc46bf7a3ad3516a4f800bb2cce6e01" title="Returns the pointer to the singleton instance.">CutController::instance</a> ();
<a name="l00152"></a>00152   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacenum__util.html#a137f48a49d12a7dae8ba7c86db2a0c01">size</a> = targets.size ();
<a name="l00153"></a>00153   <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * cp = dynamic_cast &lt; <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * &gt; ( <a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a> );
<a name="l00154"></a>00154   <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; size; i++ ) {
<a name="l00155"></a>00155     <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * target = targets [ i ];
<a name="l00156"></a>00156     controller -&gt; addCut ( cp, target -&gt; <a class="code" href="classhippodraw_1_1QtDisplay.html#aea050d6d675376d2ee2899c07fda4c4f" title="Returns the wrapped display object.">display</a> () );
<a name="l00157"></a>00157   }
<a name="l00158"></a>00158   
<a name="l00159"></a>00159   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00160"></a>00160 }
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 <span class="keywordtype">void</span>
<a name="l00163"></a>00163 <a class="code" href="classhippodraw_1_1QtCut.html#a54330d13ae61024954ca52666b80049f" title="Sets the range of the cut on the chosen axis.">QtCut::</a>
<a name="l00164"></a><a class="code" href="classhippodraw_1_1QtCut.html#a54330d13ae61024954ca52666b80049f">00164</a> <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, <span class="keyword">const</span> std::string &amp; axis )
<a name="l00165"></a>00165 {
<a name="l00166"></a>00166   <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> <a class="code" href="namespacenum__util.html#af7e893a8c6a5f6a426480fc85cda4fa1">type</a> = <a class="code" href="namespacehippodraw_1_1Axes.html#ae2337bddf33bc8b17dd5c08e665422cd" title="Converts from string representation ot Axes::Type representation.">hippodraw::Axes::convert</a>( axis );
<a name="l00167"></a>00167 
<a name="l00168"></a>00168   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a>();
<a name="l00169"></a>00169   
<a name="l00170"></a>00170   <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * cut_plotter = dynamic_cast &lt; <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * &gt; ( <a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a> );
<a name="l00171"></a>00171   assert ( cut_plotter != 0 );
<a name="l00172"></a>00172 
<a name="l00173"></a>00173   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> range ( low, high );
<a name="l00174"></a>00174   <span class="keywordflow">try</span> {
<a name="l00175"></a>00175     cut_plotter -&gt; setCutRangeAt ( range, type );    
<a name="l00176"></a>00176   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00177"></a>00177   }
<a name="l00178"></a>00178   <span class="keywordflow">catch</span> ( <span class="keyword">const</span> std::out_of_range &amp;  ) { <span class="comment">// if axis is wrong</span>
<a name="l00179"></a>00179     <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00180"></a>00180     <span class="keywordtype">string</span> what ( <span class="stringliteral">&quot;Cut range axis `&quot;</span> );
<a name="l00181"></a>00181     what += axis;
<a name="l00182"></a>00182     what += <span class="stringliteral">&quot;&#39; is invalid&quot;</span>;
<a name="l00183"></a>00183     <span class="keywordflow">throw</span> std::runtime_error ( what );
<a name="l00184"></a>00184   }
<a name="l00185"></a>00185 }
<a name="l00186"></a>00186 
<a name="l00187"></a>00187 
<a name="l00188"></a><a class="code" href="classhippodraw_1_1QtCut.html#a987de1a9b2179931fd11dedb826bc03a">00188</a> std::vector&lt;double&gt; <a class="code" href="classhippodraw_1_1QtCut.html#a987de1a9b2179931fd11dedb826bc03a" title="Return the range of the cut.">QtCut::cutRange</a> ()
<a name="l00189"></a>00189 {
<a name="l00190"></a>00190   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a>();
<a name="l00191"></a>00191 
<a name="l00192"></a>00192   std::vector&lt;double&gt; myCutRange;
<a name="l00193"></a>00193   vector &lt; const TupleCut * &gt; cuts;
<a name="l00194"></a>00194   <a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a> -&gt; <a class="code" href="classhippodraw_1_1QtCut.html#a95e0cdb755608b425d0253637dfd45f8">fillCutList</a> ( cuts );
<a name="l00195"></a>00195 
<a name="l00196"></a>00196   <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; cuts.size(); i++ ) {
<a name="l00197"></a>00197     <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1TupleCut.html" title="The class expresses a cut on a DataSource, i.e.">TupleCut</a> * cut = cuts [ i ];
<a name="l00198"></a>00198     <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; range = cut -&gt; <a class="code" href="classhippodraw_1_1QtDisplay.html#a24896edac9a28b7dde37782967094ac3" title="Get the Range of the specified axis.">getRange</a> ();
<a name="l00199"></a>00199     myCutRange.push_back ( range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a> () );
<a name="l00200"></a>00200     myCutRange.push_back ( range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a> () );
<a name="l00201"></a>00201   }
<a name="l00202"></a>00202   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00203"></a>00203 
<a name="l00204"></a>00204   <span class="keywordflow">return</span> myCutRange;
<a name="l00205"></a>00205 }
<a name="l00206"></a>00206 
<a name="l00207"></a>00207 <span class="keywordtype">void</span>
<a name="l00208"></a>00208 <a class="code" href="classhippodraw_1_1QtCut.html#a3b845901b5a386c3682ed17c2431f781" title="Sets the enabled status.">QtCut::</a>
<a name="l00209"></a><a class="code" href="classhippodraw_1_1QtCut.html#a3b845901b5a386c3682ed17c2431f781">00209</a> <a class="code" href="classhippodraw_1_1QtCut.html#a3b845901b5a386c3682ed17c2431f781" title="Sets the enabled status.">setEnabled</a> ( <span class="keywordtype">bool</span> yes )
<a name="l00210"></a>00210 {
<a name="l00211"></a>00211   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a>();
<a name="l00212"></a>00212   <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * plotter = dynamic_cast &lt; <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * &gt; ( <a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a> );
<a name="l00213"></a>00213   plotter -&gt; <a class="code" href="classhippodraw_1_1QtCut.html#a3b845901b5a386c3682ed17c2431f781" title="Sets the enabled status.">setEnabled</a> ( yes );
<a name="l00214"></a>00214   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00215"></a>00215 }
<a name="l00216"></a>00216 
<a name="l00217"></a>00217 <span class="keywordtype">void</span>
<a name="l00218"></a>00218 <a class="code" href="classhippodraw_1_1QtCut.html#a987d667f01422e4a7e9070eb775e8ee9" title="Toggles the inversion status.">QtCut::</a>
<a name="l00219"></a><a class="code" href="classhippodraw_1_1QtCut.html#a987d667f01422e4a7e9070eb775e8ee9">00219</a> <a class="code" href="classhippodraw_1_1QtCut.html#a987d667f01422e4a7e9070eb775e8ee9" title="Toggles the inversion status.">toggleInverted</a> ()
<a name="l00220"></a>00220 {
<a name="l00221"></a>00221   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a>();
<a name="l00222"></a>00222   <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * plotter = dynamic_cast &lt; <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * &gt; ( <a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a> );
<a name="l00223"></a>00223   plotter -&gt; <a class="code" href="classhippodraw_1_1QtCut.html#a987d667f01422e4a7e9070eb775e8ee9" title="Toggles the inversion status.">toggleInverted</a> ();
<a name="l00224"></a>00224   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a> ();
<a name="l00225"></a>00225 }
<a name="l00226"></a>00226 
<a name="l00227"></a>00227 <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="l00228"></a>00228 <a class="code" href="classhippodraw_1_1QtDisplay.html#a6cbd006f5158348ac6dde45606695a69" title="Creates and returns an PyNTuple representing the display.">QtCut::</a>
<a name="l00229"></a><a class="code" href="classhippodraw_1_1QtCut.html#aacfd72ddcf9c85ac572764e39c7dc47a">00229</a> <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="l00230"></a>00230                <span class="keyword">const</span> std::vector &lt; QtCut * &gt; &amp; cut_list, 
<a name="l00231"></a>00231                <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ds )
<a name="l00232"></a>00232 {
<a name="l00233"></a>00233 
<a name="l00234"></a>00234   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a>();
<a name="l00235"></a>00235 
<a name="l00236"></a>00236   std::vector &lt; const TupleCut * &gt; tuple_cut_list;
<a name="l00237"></a>00237   std::vector &lt; QtCut * &gt;::const_iterator it = cut_list.begin();
<a name="l00238"></a>00238   
<a name="l00239"></a>00239   <span class="comment">// QtCut list to TupleCut list.</span>
<a name="l00240"></a>00240   <span class="keywordflow">for</span> ( ; it !=cut_list.end(); ++it )
<a name="l00241"></a>00241     {
<a name="l00242"></a>00242       <a class="code" href="classhippodraw_1_1QtCut.html" title="Qt Displays wraps a derived class of Cut1DPlotter.">QtCut</a> * cut = *it;
<a name="l00243"></a>00243       cut-&gt;<a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a>-&gt; <a class="code" href="classhippodraw_1_1QtCut.html#a95e0cdb755608b425d0253637dfd45f8">fillCutList</a> ( tuple_cut_list );
<a name="l00244"></a>00244     }
<a name="l00245"></a>00245 
<a name="l00246"></a>00246   <a class="code" href="classhippodraw_1_1NTupleController.html" title="A singleton class that is the interface between GUI and the NTuple objects.">NTupleController</a> * ntc = <a class="code" href="classhippodraw_1_1NTupleController.html#ae02f71abaf1f85101c7044455ca8ac1a" title="Returns the pointer to the singleton instance.">NTupleController::instance</a>();
<a name="l00247"></a>00247   <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> * nt = ntc-&gt;<a class="code" href="classhippodraw_1_1NTupleController.html#a367a0129829b506b44f415cad946db40" title="Creates and registers an NTuple from data in file filename.">createNTuple</a> ( column_list, tuple_cut_list, ds );
<a name="l00248"></a>00248 
<a name="l00249"></a>00249   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a>();
<a name="l00250"></a>00250 
<a name="l00251"></a>00251   <span class="keywordflow">return</span> nt;
<a name="l00252"></a>00252 
<a name="l00253"></a>00253 }
<a name="l00254"></a>00254 
<a name="l00255"></a>00255 <span class="keywordtype">void</span>
<a name="l00256"></a>00256 <a class="code" href="classhippodraw_1_1QtCut.html#acc073c9530c283e9a1d1f3cd88fcea68" title="Static method.">QtCut::</a>
<a name="l00257"></a><a class="code" href="classhippodraw_1_1QtCut.html#acc073c9530c283e9a1d1f3cd88fcea68">00257</a> <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="l00258"></a>00258             <span class="keyword">const</span> std::vector &lt; QtCut * &gt; &amp; cut_list, 
<a name="l00259"></a>00259             <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ds,
<a name="l00260"></a>00260             <span class="keyword">const</span> std::string &amp; filename,
<a name="l00261"></a>00261             <span class="keyword">const</span> std::string &amp; dsname )
<a name="l00262"></a>00262 {
<a name="l00263"></a>00263 
<a name="l00264"></a>00264   <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a>();
<a name="l00265"></a>00265 
<a name="l00266"></a>00266   std::vector &lt; const TupleCut * &gt; tuple_cut_list;
<a name="l00267"></a>00267   std::vector &lt; QtCut * &gt;::const_iterator it = cut_list.begin();
<a name="l00268"></a>00268   
<a name="l00269"></a>00269   <span class="comment">// QtCut list to TupleCut list.</span>
<a name="l00270"></a>00270   <span class="keywordflow">for</span> ( ; it !=cut_list.end(); ++it )
<a name="l00271"></a>00271     {
<a name="l00272"></a>00272       <a class="code" href="classhippodraw_1_1QtCut.html" title="Qt Displays wraps a derived class of Cut1DPlotter.">QtCut</a> * cut = *it;
<a name="l00273"></a>00273       cut-&gt;<a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a>-&gt; <a class="code" href="classhippodraw_1_1QtCut.html#a95e0cdb755608b425d0253637dfd45f8">fillCutList</a> ( tuple_cut_list );
<a name="l00274"></a>00274     }
<a name="l00275"></a>00275 
<a name="l00276"></a>00276   <a class="code" href="classhippodraw_1_1NTupleController.html" title="A singleton class that is the interface between GUI and the NTuple objects.">NTupleController</a> * ntc = <a class="code" href="classhippodraw_1_1NTupleController.html#ae02f71abaf1f85101c7044455ca8ac1a" title="Returns the pointer to the singleton instance.">NTupleController::instance</a>();
<a name="l00277"></a>00277   
<a name="l00278"></a>00278   <span class="comment">// Need to do something with retval.</span>
<a name="l00279"></a>00279   <span class="comment">// int retval =</span>
<a name="l00280"></a>00280   ntc-&gt;<a class="code" href="classhippodraw_1_1NTupleController.html#a582456bed2f3f7ad2359150575a48f1b" title="Create NTuple with column list and cut list and save to a file.">createNTupleToFile</a>(column_list, tuple_cut_list, ds, filename, dsname);
<a name="l00281"></a>00281 
<a name="l00282"></a>00282   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a>();
<a name="l00283"></a>00283 
<a name="l00284"></a>00284 }
<a name="l00285"></a>00285 
<a name="l00286"></a>00286 <span class="keywordtype">void</span>
<a name="l00287"></a>00287 <a class="code" href="classhippodraw_1_1QtCut.html#af08f3471144cf3522ed00f0faab4da5c" title="Static method.">QtCut::</a>
<a name="l00288"></a><a class="code" href="classhippodraw_1_1QtCut.html#af08f3471144cf3522ed00f0faab4da5c">00288</a> <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="l00289"></a>00289             <span class="keyword">const</span> std::vector &lt; QtCut * &gt; &amp; cut_list, 
<a name="l00290"></a>00290             <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ds,
<a name="l00291"></a>00291             <span class="keyword">const</span> std::string &amp; filename,
<a name="l00292"></a>00292             <span class="keyword">const</span> std::string &amp; dsname )
<a name="l00293"></a>00293 {
<a name="l00294"></a>00294 <span class="preprocessor">#ifdef HAVE_CFITSIO</span>
<a name="l00295"></a>00295 <span class="preprocessor"></span>  <a class="code" href="classhippodraw_1_1PyApp.html#aa81aed607133209dade63a226818224d" title="Obtains a lock on the application&amp;#39;s mutex.">PyApp::lock</a>();
<a name="l00296"></a>00296 
<a name="l00297"></a>00297   std::vector &lt; const TupleCut * &gt; tuple_cut_list;
<a name="l00298"></a>00298   std::vector &lt; QtCut * &gt;::const_iterator it = cut_list.begin();
<a name="l00299"></a>00299   
<a name="l00300"></a>00300   <span class="comment">// QtCut list to TupleCut list.</span>
<a name="l00301"></a>00301   <span class="keywordflow">for</span> ( ; it !=cut_list.end(); ++it )
<a name="l00302"></a>00302     {
<a name="l00303"></a>00303       <a class="code" href="classhippodraw_1_1QtCut.html" title="Qt Displays wraps a derived class of Cut1DPlotter.">QtCut</a> * cut = *it;
<a name="l00304"></a>00304       cut-&gt;<a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a>-&gt; <a class="code" href="classhippodraw_1_1QtCut.html#a95e0cdb755608b425d0253637dfd45f8">fillCutList</a> ( tuple_cut_list );
<a name="l00305"></a>00305     }
<a name="l00306"></a>00306 
<a name="l00307"></a>00307   <a class="code" href="classhippodraw_1_1FitsController.html" title="A Controller class for FITS files.">FitsController</a> * fc = <a class="code" href="classhippodraw_1_1FitsController.html#a127637b93f8a5e52504b68e98126219e" title="Returns the singleton instance of the FitsController.">FitsController::instance</a>();
<a name="l00308"></a>00308   
<a name="l00309"></a>00309   <span class="comment">// Need to do something with retval.</span>
<a name="l00310"></a>00310   <span class="comment">// int retval =</span>
<a name="l00311"></a>00311   fc -&gt; writeNTupleToFile(ds, filename, dsname, column_list, tuple_cut_list );
<a name="l00312"></a>00312 
<a name="l00313"></a>00313   <a class="code" href="classhippodraw_1_1QtDisplay.html#a9278be8203e1c42e2619179882ae4403" title="Unlock the QApplication in case of exception.">PyApp::unlock</a>();
<a name="l00314"></a>00314 <span class="preprocessor">#else</span>
<a name="l00315"></a>00315 <span class="preprocessor"></span>  std::string what ( <span class="stringliteral">&quot;Sorry, can not create FITS file.  hippo module was not &quot;</span>
<a name="l00316"></a>00316                 <span class="stringliteral">&quot;built with optional FITS support&quot;</span> );
<a name="l00317"></a>00317   <span class="keywordflow">throw</span> std::runtime_error ( what );
<a name="l00318"></a>00318 <span class="preprocessor">#endif</span>
<a name="l00319"></a>00319 <span class="preprocessor"></span>
<a name="l00320"></a>00320 }
<a name="l00321"></a>00321 
<a name="l00322"></a>00322 <span class="keywordtype">void</span>
<a name="l00323"></a>00323 <a class="code" href="classhippodraw_1_1QtCut.html#a95e0cdb755608b425d0253637dfd45f8">QtCut::</a>
<a name="l00324"></a><a class="code" href="classhippodraw_1_1QtCut.html#a95e0cdb755608b425d0253637dfd45f8">00324</a> <a class="code" href="classhippodraw_1_1QtCut.html#a95e0cdb755608b425d0253637dfd45f8">fillCutList</a> ( std::vector &lt;  const TupleCut *&gt; &amp; tuple_cut_list,
<a name="l00325"></a>00325               <span class="keyword">const</span> std::vector &lt; QtCut * &gt; &amp; cut_list )
<a name="l00326"></a>00326 {
<a name="l00327"></a>00327   std::vector &lt; QtCut * &gt;::const_iterator it = cut_list.begin();
<a name="l00328"></a>00328   <span class="keywordflow">for</span> ( ; it !=cut_list.end(); ++it )
<a name="l00329"></a>00329     {
<a name="l00330"></a>00330       <a class="code" href="classhippodraw_1_1QtCut.html" title="Qt Displays wraps a derived class of Cut1DPlotter.">QtCut</a> * cut = *it;
<a name="l00331"></a>00331       cut -&gt; <a class="code" href="classhippodraw_1_1QtDisplay.html#a1de80faff2428b8dc67995112931b636" title="The contained PlotterBase object.">m_plotter</a>-&gt; <a class="code" href="classhippodraw_1_1QtCut.html#a95e0cdb755608b425d0253637dfd45f8">fillCutList</a> ( tuple_cut_list );
<a name="l00332"></a>00332     }
<a name="l00333"></a>00333 }
</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>