Sophie

Sophie

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

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_546918f92081d0a3941b8fe5c9b2d53f.html">controllers</a>
  </div>
</div>
<div class="contents">
<h1>CutController.h</h1><a href="CutController_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 _CutController_H_</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define _CutController_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="Color_8h.html" title="Color class interface.">graphics/Color.h</a>&quot;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &quot;<a class="code" href="AxesType_8h.html" title="The namespace for axes.">axes/AxesType.h</a>&quot;</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="keyword">namespace </span>hippodraw {
<a name="l00023"></a>00023 <span class="keyword">class </span>DataRep;
<a name="l00024"></a>00024 <span class="keyword">class </span>DataSource;
<a name="l00025"></a>00025 <span class="keyword">class </span>PlotterBase;
<a name="l00026"></a>00026 <span class="keyword">class </span>CutPlotter;
<a name="l00027"></a>00027 <span class="keyword">class </span>Cut1DPlotter;
<a name="l00028"></a>00028 <span class="keyword">class </span>Cut2DPlotter;
<a name="l00029"></a>00029 <span class="keyword">class </span>NTupleProjector;
<a name="l00030"></a>00030 <span class="keyword">class </span>Range;
<a name="l00031"></a>00031 <span class="keyword">class </span>TupleCut;
<a name="l00032"></a>00032 <span class="keyword">class </span>ViewBase;
<a name="l00033"></a>00033 
<a name="l00038"></a><a class="code" href="classhippodraw_1_1CutController.html">00038</a> <span class="keyword">class </span><a class="code" href="libhippo_8h.html#a480024fd54849c743866874550153711">MDL_HIPPOPLOT_API</a> <a class="code" href="classhippodraw_1_1CutController.html" title="A singleton class that handles the application logic for cuts.">CutController</a>
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="keyword">private</span>:
<a name="l00042"></a>00042 
<a name="l00046"></a><a class="code" href="classhippodraw_1_1CutController.html#a75427e6c7cca64bf193db39173bc6085">00046</a>   <span class="keyword">typedef</span> std::vector &lt; PlotterBase * &gt; <a class="code" href="classhippodraw_1_1CutController.html#a75427e6c7cca64bf193db39173bc6085" title="The type of standard C++ container used to hold PlotterBase objects.">PlotterList_t</a>;
<a name="l00047"></a>00047 
<a name="l00049"></a><a class="code" href="classhippodraw_1_1CutController.html#ad0ff30687f5375345d1b9b9e8af20a76">00049</a>   <span class="keyword">static</span> <a class="code" href="classhippodraw_1_1CutController.html" title="A singleton class that handles the application logic for cuts.">CutController</a> * s_instance;
<a name="l00050"></a>00050 
<a name="l00052"></a>00052   <a class="code" href="classhippodraw_1_1CutController.html" title="A singleton class that handles the application logic for cuts.">CutController</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1CutController.html" title="A singleton class that handles the application logic for cuts.">CutController</a> &amp; );
<a name="l00053"></a>00053 
<a name="l00055"></a><a class="code" href="classhippodraw_1_1CutController.html#a553c1cac62362fc060a844a635a001ae">00055</a>   std:: list &lt; std::pair&lt; PlotterBase *, Axes::Type &gt; &gt; m_zoom_pan;
<a name="l00056"></a>00056   
<a name="l00061"></a><a class="code" href="classhippodraw_1_1CutController.html#a2f2f375b66232b30f0d0003d4b1dc5d9">00061</a>   <span class="keyword">mutable</span> std::vector &lt; PlotterBase * &gt; m_cut_list;
<a name="l00062"></a>00062 
<a name="l00064"></a><a class="code" href="classhippodraw_1_1CutController.html#a0a5da2046f89d3526ace357e88f1b930">00064</a>   <span class="keyword">mutable</span> std::vector &lt; std::string &gt; m_cut_strings;
<a name="l00065"></a>00065 
<a name="l00072"></a>00072   <span class="keywordtype">void</span> connectDataRep ( <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * rep, 
<a name="l00073"></a>00073                         <span class="keyword">const</span> std::vector &lt; const ViewBase * &gt; &amp; views );
<a name="l00074"></a>00074 
<a name="l00081"></a>00081   <span class="keywordtype">void</span> connectDataRep ( <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,
<a name="l00082"></a>00082                         <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * rep,
<a name="l00083"></a>00083                         <span class="keyword">const</span> std::vector &lt; const ViewBase * &gt; &amp; views );
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="keyword">protected</span>:
<a name="l00086"></a>00086 
<a name="l00089"></a>00089   <a class="code" href="classhippodraw_1_1CutController.html" title="A singleton class that handles the application logic for cuts.">CutController</a>();
<a name="l00090"></a>00090 
<a name="l00091"></a>00091  <span class="keyword">public</span>:
<a name="l00092"></a>00092 
<a name="l00094"></a>00094   <span class="keyword">static</span> <a class="code" href="classhippodraw_1_1CutController.html" title="A singleton class that handles the application logic for cuts.">CutController</a>  * instance ();
<a name="l00095"></a>00095 
<a name="l00103"></a>00103   <a class="code" href="classhippodraw_1_1Cut1DPlotter.html" title="A Plotter class that plots one-dimensional TupleCut values.">Cut1DPlotter</a> * addCut ( <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter, <span class="keyword">const</span> std::string &amp; label );
<a name="l00104"></a>00104 
<a name="l00110"></a>00110   <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * addCut ( <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter,
<a name="l00111"></a>00111                          std::vector&lt; std::string &gt; &amp; bindings );
<a name="l00112"></a>00112   
<a name="l00120"></a>00120   <span class="keywordtype">void</span> addCut ( <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * cut_plotter,
<a name="l00121"></a>00121                 <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter );
<a name="l00122"></a>00122 
<a name="l00125"></a>00125   <span class="keywordtype">void</span> addCuts ( <span class="keyword">const</span> std::vector &lt; PlotterBase * &gt; &amp; cut_list,
<a name="l00126"></a>00126                  <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter );
<a name="l00127"></a>00127 
<a name="l00132"></a>00132   <span class="keywordtype">void</span> linkCutAndRep ( <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,
<a name="l00133"></a>00133                        <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * target );
<a name="l00134"></a>00134 
<a name="l00135"></a>00135   
<a name="l00143"></a>00143   <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * 
<a name="l00144"></a>00144   createCut ( <span class="keyword">const</span> std::string &amp; name, 
<a name="l00145"></a>00145               <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * source,
<a name="l00146"></a>00146               <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; bindings,
<a name="l00147"></a>00147               <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> &amp; color ) <span class="keyword">const</span>;
<a name="l00148"></a>00148   
<a name="l00151"></a>00151   <span class="keywordtype">void</span> removeCut ( <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * cut_plotter, <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter );
<a name="l00152"></a>00152 
<a name="l00156"></a>00156   <span class="keywordtype">void</span> fillCutList ( <span class="keyword">const</span> std::vector &lt; PlotterBase * &gt; &amp; plotter_list,
<a name="l00157"></a>00157                      std::vector &lt; CutPlotter * &gt; &amp; cut_list );
<a name="l00158"></a>00158 
<a name="l00162"></a>00162   <span class="keywordtype">void</span> fillCutList ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter,
<a name="l00163"></a>00163                      std::vector &lt; PlotterBase * &gt; &amp; cut_list );
<a name="l00164"></a>00164 
<a name="l00165"></a>00165 <span class="keyword">private</span>:
<a name="l00169"></a>00169   <span class="keywordtype">void</span> fillCutList ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * data_rep,
<a name="l00170"></a>00170                      std::vector &lt; PlotterBase * &gt; &amp; cut_list );
<a name="l00171"></a>00171 
<a name="l00172"></a>00172 <span class="keyword">public</span>:
<a name="l00175"></a>00175   <span class="keyword">const</span> std::vector &lt; const TupleCut * &gt; &amp; 
<a name="l00176"></a>00176   getCutList ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * rep  ) <span class="keyword">const</span>; 
<a name="l00177"></a>00177 
<a name="l00181"></a>00181   <span class="keyword">const</span> std::vector &lt; PlotterBase * &gt; &amp; 
<a name="l00182"></a>00182   getCutList ( <span class="keyword">const</span> std::vector &lt; PlotterBase * &gt; &amp;,
<a name="l00183"></a>00183                <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * rep  ) <span class="keyword">const</span>; 
<a name="l00184"></a>00184 
<a name="l00190"></a>00190   <span class="keywordtype">void</span> fillCutWeb ( <span class="keyword">const</span> std::vector &lt; PlotterBase * &gt; &amp; plotters,
<a name="l00191"></a>00191                     std::vector &lt; PlotterBase * &gt; &amp; web );
<a name="l00192"></a>00192 
<a name="l00196"></a>00196   <span class="keywordtype">void</span> appendToWeb ( <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter,  <a class="code" href="classhippodraw_1_1CutController.html#a75427e6c7cca64bf193db39173bc6085" title="The type of standard C++ container used to hold PlotterBase objects.">PlotterList_t</a> &amp; web );
<a name="l00197"></a>00197 
<a name="l00199"></a>00199   <span class="keywordtype">void</span> appendToWeb ( <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> * cutter,
<a name="l00200"></a>00200                      <a class="code" href="classhippodraw_1_1CutController.html#a75427e6c7cca64bf193db39173bc6085" title="The type of standard C++ container used to hold PlotterBase objects.">PlotterList_t</a> &amp; web );
<a name="l00201"></a>00201 
<a name="l00203"></a>00203   <span class="keywordtype">void</span> appendToWeb ( <span class="keyword">const</span> std::vector &lt; PlotterBase * &gt; &amp; cutters,
<a name="l00204"></a>00204                      <a class="code" href="classhippodraw_1_1CutController.html#a75427e6c7cca64bf193db39173bc6085" title="The type of standard C++ container used to hold PlotterBase objects.">PlotterList_t</a> &amp; web );
<a name="l00205"></a>00205 
<a name="l00209"></a>00209   <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * findPlotter ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * data_rep );
<a name="l00210"></a>00210 
<a name="l00215"></a>00215   <span class="keywordtype">void</span> fillTupleCutList ( <span class="keyword">const</span> std::vector &lt; const ViewBase * &gt; &amp; views,
<a name="l00216"></a>00216                           std::vector &lt; const TupleCut * &gt; &amp; cut_list );
<a name="l00217"></a>00217 
<a name="l00224"></a>00224   <span class="keywordtype">void</span> connectDataRep ( <span class="keyword">const</span> std::list &lt; ViewBase * &gt; &amp; targets,
<a name="l00225"></a>00225                         <span class="keyword">const</span> std::vector &lt; const ViewBase * &gt; &amp; views );
<a name="l00226"></a>00226 
<a name="l00231"></a>00231   <span class="keywordtype">void</span> setZoomPan ( <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter,
<a name="l00232"></a>00232                     <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis,  <span class="keywordtype">bool</span> yes );
<a name="l00233"></a>00233 
<a name="l00236"></a>00236   <span class="keywordtype">bool</span> isZoomPan ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * cut_plotter,
<a name="l00237"></a>00237                    <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis ) <span class="keyword">const</span>;
<a name="l00238"></a>00238 
<a name="l00239"></a>00239   <span class="keyword">static</span> <span class="keywordtype">void</span> fillAcceptedRows ( std::vector &lt; bool &gt; &amp; array,
<a name="l00240"></a>00240                                  <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * source,
<a name="l00241"></a>00241                                  <span class="keyword">const</span> std::vector&lt; const TupleCut * &gt; &amp; cuts);
<a name="l00242"></a>00242 
<a name="l00244"></a>00244   <span class="keywordtype">void</span> createIdCut ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * source, <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * destination );
<a name="l00245"></a>00245 
<a name="l00246"></a>00246 };
<a name="l00247"></a>00247 
<a name="l00248"></a>00248 } <span class="comment">// namespace hippodraw</span>
<a name="l00249"></a>00249 
<a name="l00250"></a>00250 <span class="preprocessor">#endif // _CutController_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>