Sophie

Sophie

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

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_4a8869a1c3a722e926803cb2dc6e642c.html">plotters</a>
  </div>
</div>
<div class="contents">
<h1>Cut1DPlotter.cxx</h1><a href="Cut1DPlotter_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">#include &quot;<a class="code" href="Cut1DPlotter_8h.html" title="Cut1DPlotter class interface.">Cut1DPlotter.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="DataRep_8h.html" title="hippodraw::DataRep class interface.">datareps/DataRep.h</a>&quot;</span>
<a name="l00020"></a>00020 <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="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="CutRangeRep_8h.html" title="CutRangeRep class interface.">reps/CutRangeRep.h</a>&quot;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="keyword">using</span> std::vector;
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">using namespace </span>hippodraw;
<a name="l00028"></a>00028 
<a name="l00029"></a><a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a112adca9d70895c7ec149ee9ac9b7ffc">00029</a> Cut1DPlotter::Cut1DPlotter ( )
<a name="l00030"></a>00030   : <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> ( <span class="stringliteral">&quot;Cut1DPlotter&quot;</span> )
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032 }
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a756f0f6a255ec91aa138c8bbbd0b7edf">00034</a> <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a112adca9d70895c7ec149ee9ac9b7ffc" title="This default constructor.">Cut1DPlotter::Cut1DPlotter</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Cut1DPlotter.html" title="A Plotter class that plots one-dimensional TupleCut values.">Cut1DPlotter</a> &amp; plotter )
<a name="l00035"></a>00035   : <a class="code" href="classhippodraw_1_1CutPlotter.html" title="A PlotterBase derived class that serves a base class for cut plotters.">CutPlotter</a> ( plotter )
<a name="l00036"></a>00036 {
<a name="l00037"></a>00037 }
<a name="l00038"></a>00038 
<a name="l00039"></a><a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a2dd7292ee9011cef3f0d8687af69b4aa">00039</a> <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a2dd7292ee9011cef3f0d8687af69b4aa" title="The destructor.">Cut1DPlotter::~Cut1DPlotter</a> ()
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 }
<a name="l00042"></a>00042 
<a name="l00043"></a><a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a62e4ad0bd8430cb77896170749953f2a">00043</a> <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a62e4ad0bd8430cb77896170749953f2a" title="This clone function returns an object of its own kind which is a copy of this object...">Cut1DPlotter::clone</a>()
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a112adca9d70895c7ec149ee9ac9b7ffc" title="This default constructor.">Cut1DPlotter</a> ( *<span class="keyword">this</span> );
<a name="l00046"></a>00046 }
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="keywordtype">void</span>
<a name="l00049"></a>00049 <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a3881385ad8bc73a31132b7b7559c9b73" title="Adds tuple cut after adding a data representation.">Cut1DPlotter::</a>
<a name="l00050"></a><a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a3881385ad8bc73a31132b7b7559c9b73">00050</a> <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a3881385ad8bc73a31132b7b7559c9b73" title="Adds tuple cut after adding a data representation.">addTupleCut</a> ( <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * rep )
<a name="l00051"></a>00051 {
<a name="l00052"></a>00052   <a class="code" href="classhippodraw_1_1CutPlotter.html#a0a5b7f934e1c9daae05aa76f35f15849" title="A pointer to the data representation that holds the cuts.">m_datarep</a>=rep;
<a name="l00053"></a>00053   <a class="code" href="classhippodraw_1_1CutPlotter.html#a0a5b7f934e1c9daae05aa76f35f15849" title="A pointer to the data representation that holds the cuts.">m_datarep</a> -&gt; addCut ( <a class="code" href="classhippodraw_1_1TupleCut.html" title="The class expresses a cut on a DataSource, i.e.">TupleCut</a> () );
<a name="l00054"></a>00054 }
<a name="l00055"></a>00055   
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="keywordtype">void</span>
<a name="l00058"></a>00058 <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a00ce5cb89847e32d808196841499cea3" title="Adds a data representation.">Cut1DPlotter::</a>
<a name="l00059"></a><a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a00ce5cb89847e32d808196841499cea3">00059</a> <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a00ce5cb89847e32d808196841499cea3" title="Adds a data representation.">addDataRep</a> ( <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * rep )
<a name="l00060"></a>00060 {
<a name="l00061"></a>00061   <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a00ce5cb89847e32d808196841499cea3" title="Adds a data representation.">XyPlotter::addDataRep</a> ( rep );
<a name="l00062"></a>00062 }
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="keywordtype">void</span>
<a name="l00065"></a>00065 <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a963370fb1fb9ab12585be12115b53c8e" title="Sets the axis binding of both the Cut and its DataRep.">Cut1DPlotter::</a>
<a name="l00066"></a><a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a963370fb1fb9ab12585be12115b53c8e">00066</a> <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a963370fb1fb9ab12585be12115b53c8e" title="Sets the axis binding of both the Cut and its DataRep.">setAxisBinding</a> ( <span class="keyword">const</span> std::vector &lt; std::string &gt;  &amp; bindings )
<a name="l00067"></a>00067 {
<a name="l00068"></a>00068   assert ( bindings.size () == 1 );
<a name="l00069"></a>00069 
<a name="l00070"></a>00070   <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a963370fb1fb9ab12585be12115b53c8e" title="Sets the axis binding of both the Cut and its DataRep.">CutPlotter::setAxisBinding</a> ( bindings );
<a name="l00071"></a>00071 }
<a name="l00072"></a>00072 
<a name="l00073"></a><a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a6968e329f213a105b1d67e6c41f1238f">00073</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a6968e329f213a105b1d67e6c41f1238f" title="Sets the cut Range to include the full range of data.">Cut1DPlotter::setCutRangeFull</a> ( )
<a name="l00074"></a>00074 {
<a name="l00075"></a>00075   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; range = <a class="code" href="classhippodraw_1_1XyPlotter.html#a2e02fc30c09ce8abbb8cb702623fb22f" title="Returns the range on the specified axis.">getRange</a> ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a58833a3110c570fb05130d40c365d1e4" title="X axis.">Axes::X</a>, <span class="keyword">false</span> );
<a name="l00076"></a>00076   <a class="code" href="classhippodraw_1_1CutPlotter.html#a0a5b7f934e1c9daae05aa76f35f15849" title="A pointer to the data representation that holds the cuts.">m_datarep</a> -&gt; <a class="code" href="classhippodraw_1_1CutPlotter.html#abe9413ab44cebb37a4621813301c206a" title="Sets the Range of the cut.">setCutRangeAt</a> ( range, 0 );
<a name="l00077"></a>00077   
<a name="l00078"></a>00078   <a class="code" href="classhippodraw_1_1CutPlotter.html#a1611ee1787821f8ea3de11ef9356388e" title="Update the target DataRep when a change has been made in the TupleCut.">updateTargets</a> ();
<a name="l00079"></a>00079 }
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="keywordtype">void</span>
<a name="l00082"></a>00082 <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a987d667f01422e4a7e9070eb775e8ee9" title="Reverse the meaning of the cut Range.">Cut1DPlotter::</a>
<a name="l00083"></a><a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a987d667f01422e4a7e9070eb775e8ee9">00083</a> <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a987d667f01422e4a7e9070eb775e8ee9" title="Reverse the meaning of the cut Range.">toggleInverted</a> ()
<a name="l00084"></a>00084 {
<a name="l00085"></a>00085   <a class="code" href="classhippodraw_1_1CutPlotter.html#a0a5b7f934e1c9daae05aa76f35f15849" title="A pointer to the data representation that holds the cuts.">m_datarep</a> -&gt; <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a987d667f01422e4a7e9070eb775e8ee9" title="Reverse the meaning of the cut Range.">toggleInverted</a> ( 0 );
<a name="l00086"></a>00086 
<a name="l00087"></a>00087   <a class="code" href="classhippodraw_1_1CutPlotter.html#a1611ee1787821f8ea3de11ef9356388e" title="Update the target DataRep when a change has been made in the TupleCut.">updateTargets</a> ();
<a name="l00088"></a>00088 }
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 <span class="keyword">const</span> std::string &amp;
<a name="l00091"></a>00091 <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a41f4c67d0c48dd47e90053e43e028f00" title="Returns the label for the Cut.">Cut1DPlotter::</a>
<a name="l00092"></a><a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a41f4c67d0c48dd47e90053e43e028f00">00092</a> <a class="code" href="classhippodraw_1_1Cut1DPlotter.html#a41f4c67d0c48dd47e90053e43e028f00" title="Returns the label for the Cut.">getCutLabel</a> ()<span class="keyword"> const</span>
<a name="l00093"></a>00093 <span class="keyword"></span>{
<a name="l00094"></a>00094   <span class="keyword">const</span> vector &lt; TupleCut &gt; &amp; cuts = <a class="code" href="classhippodraw_1_1CutPlotter.html#a0a5b7f934e1c9daae05aa76f35f15849" title="A pointer to the data representation that holds the cuts.">m_datarep</a> -&gt; <a class="code" href="classhippodraw_1_1CutPlotter.html#a8f2d85a629a080468a5a0d744efc6bd4" title="Returns the list of TupleCut objects used by this plotter.">getCuts</a> ();
<a name="l00095"></a>00095   <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> &amp; cut = cuts[0]; <span class="comment">// so Doxygen sees it.</span>
<a name="l00096"></a>00096 
<a name="l00097"></a>00097   <span class="keywordflow">return</span> cut.<a class="code" href="classhippodraw_1_1TupleCut.html#ae1370f369a9c1b2b6e850ab544853d9c" title="Returns the label for the cut.">getLabel</a> ();
<a name="l00098"></a>00098 }
</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>