Sophie

Sophie

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

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>Cut2DPlotter.cxx</h1><a href="Cut2DPlotter_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="Cut2DPlotter_8h.html" title="hippodraw::Cut2DPlotter class interface">Cut2DPlotter.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 <span class="preprocessor">#include &quot;<a class="code" href="CutRangeRep_8h.html" title="CutRangeRep class interface.">reps/CutRangeRep.h</a>&quot;</span>
<a name="l00022"></a>00022 
<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">namespace </span>hippodraw {
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#acbb888df350f4c78d954208050f48690" title="This default constructor.">Cut2DPlotter::</a>
<a name="l00030"></a><a class="code" href="classhippodraw_1_1Cut2DPlotter.html#acbb888df350f4c78d954208050f48690">00030</a> <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#acbb888df350f4c78d954208050f48690" title="This default constructor.">Cut2DPlotter</a> ( )
<a name="l00031"></a>00031   : <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;Cut2DPlotter&quot;</span> )
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033   <a class="code" href="classhippodraw_1_1XyPlotter.html#a04cd59885508cb37663b54c844bd97ae" title="Sets the display of the Z axis on.">setEnableZ</a> ( <span class="keyword">true</span> );
<a name="l00034"></a>00034 }
<a name="l00035"></a>00035 
<a name="l00036"></a><a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a7b9869f785537dce297d77716072aa34">00036</a> <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#acbb888df350f4c78d954208050f48690" title="This default constructor.">Cut2DPlotter::Cut2DPlotter</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Cut2DPlotter.html" title="A Plotter class that plots one-dimensional TupleCut values.">Cut2DPlotter</a> &amp; plotter )
<a name="l00037"></a>00037   : <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="l00038"></a>00038 {
<a name="l00039"></a>00039   <a class="code" href="classhippodraw_1_1XyPlotter.html#a04cd59885508cb37663b54c844bd97ae" title="Sets the display of the Z axis on.">setEnableZ</a> ( <span class="keyword">true</span> );
<a name="l00040"></a>00040 }
<a name="l00041"></a>00041 
<a name="l00042"></a><a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a28d32d68e5a47d76f26ec80445d22614">00042</a> <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a28d32d68e5a47d76f26ec80445d22614" title="The destructor.">Cut2DPlotter::~Cut2DPlotter</a> ()
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 }
<a name="l00045"></a>00045 
<a name="l00046"></a><a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a62e4ad0bd8430cb77896170749953f2a">00046</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_1Cut2DPlotter.html#a62e4ad0bd8430cb77896170749953f2a" title="This clone function returns an object of its own kind which is a copy of this object...">Cut2DPlotter::clone</a>()
<a name="l00047"></a>00047 {
<a name="l00048"></a>00048   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#acbb888df350f4c78d954208050f48690" title="This default constructor.">Cut2DPlotter</a> ( *<span class="keyword">this</span> );
<a name="l00049"></a>00049 }
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="keywordtype">void</span>
<a name="l00052"></a>00052 <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a3881385ad8bc73a31132b7b7559c9b73" title="Adds tuple cut after adding a data representation.">Cut2DPlotter::</a>
<a name="l00053"></a><a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a3881385ad8bc73a31132b7b7559c9b73">00053</a> <a class="code" href="classhippodraw_1_1Cut2DPlotter.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="l00054"></a>00054 {
<a name="l00055"></a>00055   <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="l00056"></a>00056   <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="l00057"></a>00057   <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="l00058"></a>00058 }
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 <span class="keywordtype">void</span>
<a name="l00062"></a>00062 <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a00ce5cb89847e32d808196841499cea3" title="Adds a data representation.">Cut2DPlotter::</a>
<a name="l00063"></a><a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a00ce5cb89847e32d808196841499cea3">00063</a> <a class="code" href="classhippodraw_1_1Cut2DPlotter.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="l00064"></a>00064 {
<a name="l00065"></a>00065   <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a00ce5cb89847e32d808196841499cea3" title="Adds a data representation.">XyPlotter::addDataRep</a> ( rep );
<a name="l00066"></a>00066 }
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 <span class="keywordtype">void</span>
<a name="l00069"></a>00069 <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a963370fb1fb9ab12585be12115b53c8e" title="Sets the axis binding of both the Cut and its DataRep.">Cut2DPlotter::</a>
<a name="l00070"></a><a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a963370fb1fb9ab12585be12115b53c8e">00070</a> <a class="code" href="classhippodraw_1_1Cut2DPlotter.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="l00071"></a>00071 {
<a name="l00072"></a>00072   assert ( bindings.size () == 2 );
<a name="l00073"></a>00073 
<a name="l00074"></a>00074   <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a963370fb1fb9ab12585be12115b53c8e" title="Sets the axis binding of both the Cut and its DataRep.">CutPlotter::setAxisBinding</a> ( bindings );
<a name="l00075"></a>00075 }
<a name="l00076"></a>00076 
<a name="l00077"></a><a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a6968e329f213a105b1d67e6c41f1238f">00077</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a6968e329f213a105b1d67e6c41f1238f" title="Sets the cut Range to include the full range of data.">Cut2DPlotter::setCutRangeFull</a> ( )
<a name="l00078"></a>00078 {
<a name="l00079"></a>00079   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; rangeX = <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="l00080"></a>00080   <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> (rangeX, 0 );
<a name="l00081"></a>00081 
<a name="l00082"></a>00082   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; rangeY = <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#a1d1cfd8ffb84e947f82999c682b666a7a5596231eabd6cf29050967d5ac83ad84" title="Y axis.">Axes::Y</a>, <span class="keyword">false</span> );
<a name="l00083"></a>00083   <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> ( rangeY, 1 );
<a name="l00084"></a>00084   
<a name="l00085"></a>00085   <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="l00086"></a>00086 }
<a name="l00087"></a>00087 
<a name="l00088"></a><a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a987d667f01422e4a7e9070eb775e8ee9">00088</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#a987d667f01422e4a7e9070eb775e8ee9" title="Reverse the meaning of the cut Range on the give axis.">Cut2DPlotter::toggleInverted</a> ( )
<a name="l00089"></a>00089 {
<a name="l00090"></a>00090   <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_1Cut2DPlotter.html#a987d667f01422e4a7e9070eb775e8ee9" title="Reverse the meaning of the cut Range on the give axis.">toggleInverted</a> ( 0 );
<a name="l00091"></a>00091   <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_1Cut2DPlotter.html#a987d667f01422e4a7e9070eb775e8ee9" title="Reverse the meaning of the cut Range on the give axis.">toggleInverted</a> ( 1 );
<a name="l00092"></a>00092 
<a name="l00093"></a>00093   <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="l00094"></a>00094 }
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="classhippodraw_1_1Cut2DPlotter.html#aa7293b6fe5ae2854e26d77bf10a922ef">00096</a> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> <a class="code" href="classhippodraw_1_1Cut2DPlotter.html#aa7293b6fe5ae2854e26d77bf10a922ef" title="Cut the range of the cut at Y axis.">Cut2DPlotter::getCutRangeY</a> ( )
<a name="l00097"></a>00097 {
<a name="l00098"></a>00098   <a class="code" href="classhippodraw_1_1TupleCut.html" title="The class expresses a cut on a DataSource, i.e.">TupleCut</a> * cut = <a class="code" href="classhippodraw_1_1XyPlotter.html#a5473ad7dbb84d30aea02973c61fbf695" title="Returns the TupleCut object at position i.">getCutAt</a> ( 1 );
<a name="l00099"></a>00099   <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> range = cut -&gt; <a class="code" href="classhippodraw_1_1XyPlotter.html#a2e02fc30c09ce8abbb8cb702623fb22f" title="Returns the range on the specified axis.">getRange</a> ();
<a name="l00100"></a>00100 
<a name="l00101"></a>00101   <span class="keywordflow">return</span> range;
<a name="l00102"></a>00102 }
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 } <span class="comment">// namespace hippodraw</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>