Sophie

Sophie

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

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_390cfd4b32d48f53301526c593d2b8f8.html">datareps</a>
  </div>
</div>
<div class="contents">
<h1>FunctionRep2.cxx</h1><a href="FunctionRep2_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 in debug mode</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="FunctionRep2_8h.html" title="FunctionRep2 class interface.">FunctionRep2.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="FunctionBase_8h.html" title="hippodraw::FunctionBase class interface">functions/FunctionBase.h</a>&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;<a class="code" href="ProjectorBase_8h.html" title="hippodraw::ProjectorBase class interface.">projectors/ProjectorBase.h</a>&quot;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="ContourFunctionRep_8h.html" title="ContourFunctionRep class interface.">reps/ContourFunctionRep.h</a>&quot;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">using namespace </span>hippodraw;
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 FunctionRep2::
<a name="l00029"></a><a class="code" href="classhippodraw_1_1FunctionRep2.html#aa3c9720b8788f87a8e7a863a458e48c0">00029</a> FunctionRep2 ( <a class="code" href="classhippodraw_1_1FunctionBase.html" title="A function that can be added to a DataRep and used in a fitter.">FunctionBase</a> * function, <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * rep )
<a name="l00030"></a>00030   : <a class="code" href="classhippodraw_1_1FunctionRep.html" title="A derived class of DataRep which is a base class for displaying a function.">FunctionRep</a> ( function, rep )
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032   <a class="code" href="classhippodraw_1_1DataRep.html#a4a95e3eb102edf27f2493407c711908d" title="The representation used for drawing each data point in the view.">m_rep</a> = <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1ContourFunctionRep.html" title="A class that draws a function as contour lines.">ContourFunctionRep</a>(); 
<a name="l00033"></a>00033   <span class="comment">// The above deleted in ~DataRep()</span>
<a name="l00034"></a>00034 }
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <a class="code" href="classhippodraw_1_1FunctionRep2.html#a223717f8f185323acb54a2cfd7e8a8fb" title="The copy constructor.">FunctionRep2::</a>
<a name="l00037"></a><a class="code" href="classhippodraw_1_1FunctionRep2.html#a223717f8f185323acb54a2cfd7e8a8fb">00037</a> <a class="code" href="classhippodraw_1_1FunctionRep2.html#a223717f8f185323acb54a2cfd7e8a8fb" title="The copy constructor.">FunctionRep2</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1FunctionRep2.html" title="A derived class of FunctionRep that handles functions with 2 coordinates.">FunctionRep2</a> &amp; rep )
<a name="l00038"></a>00038   : <a class="code" href="classhippodraw_1_1FunctionRep.html" title="A derived class of DataRep which is a base class for displaying a function.">FunctionRep</a> ( rep )
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040 }
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <a class="code" href="classhippodraw_1_1FunctionRep2.html#a4944822d3bbe7cd225be44f17b4b02c3" title="The virtual destructor.">FunctionRep2::</a>
<a name="l00043"></a><a class="code" href="classhippodraw_1_1FunctionRep2.html#a4944822d3bbe7cd225be44f17b4b02c3">00043</a> <a class="code" href="classhippodraw_1_1FunctionRep2.html#a4944822d3bbe7cd225be44f17b4b02c3" title="The virtual destructor.">~FunctionRep2</a> ()
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 }
<a name="l00046"></a>00046 
<a name="l00047"></a><a class="code" href="classhippodraw_1_1FunctionRep2.html#a9c1ed0172b026722ac23a85d45862cd2">00047</a> <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * <a class="code" href="classhippodraw_1_1FunctionRep2.html#a9c1ed0172b026722ac23a85d45862cd2" title="The clone function returns an object of its own kind which is a copy of this object...">FunctionRep2::clone</a> ()
<a name="l00048"></a>00048 {
<a name="l00049"></a>00049   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1FunctionRep2.html#a223717f8f185323acb54a2cfd7e8a8fb" title="The copy constructor.">FunctionRep2</a> ( *<span class="keyword">this</span> );
<a name="l00050"></a>00050 }
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="keywordtype">bool</span>
<a name="l00053"></a>00053 <a class="code" href="classhippodraw_1_1FunctionRep2.html#aa0c9706bc92a98daae1a677ea435a161" title="Returns true if the data representation has specified axis type axis.">FunctionRep2::</a>
<a name="l00054"></a><a class="code" href="classhippodraw_1_1FunctionRep2.html#aa0c9706bc92a98daae1a677ea435a161">00054</a> <a class="code" href="classhippodraw_1_1FunctionRep2.html#aa0c9706bc92a98daae1a677ea435a161" title="Returns true if the data representation has specified axis type axis.">hasAxis</a> ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis )<span class="keyword"> const</span>
<a name="l00055"></a>00055 <span class="keyword"></span>{
<a name="l00056"></a>00056   <span class="keywordflow">return</span> axis == <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a58833a3110c570fb05130d40c365d1e4" title="X axis.">Axes::X</a> || axis == <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a5596231eabd6cf29050967d5ac83ad84" title="Y axis.">Axes::Y</a> || axis == <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7aa70478ce277ffc322f8e1e3418e07355" title="Z axis.">Axes::Z</a>;
<a name="l00057"></a>00057 }
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="keywordtype">void</span>
<a name="l00060"></a>00060 <a class="code" href="classhippodraw_1_1FunctionRep2.html#a25b67f880fe10746e06718bc8df027ba" title="Draws the projected values.">FunctionRep2::</a>
<a name="l00061"></a><a class="code" href="classhippodraw_1_1FunctionRep2.html#a25b67f880fe10746e06718bc8df027ba">00061</a> <a class="code" href="classhippodraw_1_1FunctionRep2.html#a25b67f880fe10746e06718bc8df027ba" title="Draws the projected values.">drawProjectedValues</a> ( <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> * transform,
<a name="l00062"></a>00062                       <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> * view )
<a name="l00063"></a>00063 {
<a name="l00064"></a>00064   <a class="code" href="classhippodraw_1_1DataRep.html#a80b45c3379327b1d4cec69cdf9ef3207" title="Draws the cuts.">drawCuts</a> ( transform, view );
<a name="l00065"></a>00065 
<a name="l00066"></a>00066   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; x_range = <a class="code" href="classhippodraw_1_1DataRep.html#aa7c0d96e4919970f6e1823693f5cdc27" title="A projector used to transform data to projected values that will be plotted.">m_projector</a> -&gt; getRange ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a58833a3110c570fb05130d40c365d1e4" title="X axis.">Axes::X</a> );
<a name="l00067"></a>00067   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; y_range = <a class="code" href="classhippodraw_1_1DataRep.html#aa7c0d96e4919970f6e1823693f5cdc27" title="A projector used to transform data to projected values that will be plotted.">m_projector</a> -&gt; getRange ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a5596231eabd6cf29050967d5ac83ad84" title="Y axis.">Axes::Y</a> );
<a name="l00068"></a>00068   <a class="code" href="classhippodraw_1_1FunctionBase.html" title="A function that can be added to a DataRep and used in a fitter.">FunctionBase</a> * function = <a class="code" href="classhippodraw_1_1FunctionRep.html#ad4b11c2e6c3e1a2b7e7c985ccd8e7b3d" title="Returns the actual function, a FunctionBase derived class.">getFunction</a> ();
<a name="l00069"></a>00069   <a class="code" href="classhippodraw_1_1ContourFunctionRep.html" title="A class that draws a function as contour lines.">ContourFunctionRep</a> * rep = dynamic_cast &lt; <a class="code" href="classhippodraw_1_1ContourFunctionRep.html" title="A class that draws a function as contour lines.">ContourFunctionRep</a> * &gt; ( <a class="code" href="classhippodraw_1_1DataRep.html#a4a95e3eb102edf27f2493407c711908d" title="The representation used for drawing each data point in the view.">m_rep</a> );
<a name="l00070"></a>00070   assert ( rep != 0 );
<a name="l00071"></a>00071 
<a name="l00072"></a>00072   rep -&gt; <a class="code" href="classhippodraw_1_1FunctionRep2.html#a25b67f880fe10746e06718bc8df027ba" title="Draws the projected values.">drawProjectedValues</a> ( x_range, y_range, function, transform, view );
<a name="l00073"></a>00073 
<a name="l00074"></a>00074   <a class="code" href="classhippodraw_1_1DataRep.html#ae4c9a4959266e2a4e31d77aec4acef9d" title="Sets the dirty flag.">setDirty</a> ( <span class="keyword">false</span> );
<a name="l00075"></a>00075 }
</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>