Sophie

Sophie

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

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_6dcc65b7c74f97460af44109581e51d3.html">reps</a>
  </div>
</div>
<div class="contents">
<h1>CutRangeRep.cxx</h1><a href="CutRangeRep_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="preprocessor">#include &quot;<a class="code" href="CutRangeRep_8h.html" title="CutRangeRep class interface.">CutRangeRep.h</a>&quot;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <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="l00015"></a>00015 <span class="preprocessor">#include &quot;<a class="code" href="ViewBase_8h.html" title="hippodraw::ViewBase class interface">graphics/ViewBase.h</a>&quot;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &quot;<a class="code" href="BinaryTransform_8h.html" title="hippodraw::BinaryTransform class interface">transforms/BinaryTransform.h</a>&quot;</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;stdexcept&gt;</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="keyword">using</span> std::string;
<a name="l00021"></a>00021 <span class="keyword">using</span> std::vector;
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="keyword">using namespace </span>hippodraw;
<a name="l00024"></a>00024 
<a name="l00025"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#a93a504d2bc84811765adbdb648428e7e">00025</a> CutRangeRep::CutRangeRep ( )
<a name="l00026"></a>00026   : <a class="code" href="classhippodraw_1_1PointRepBase.html" title="The base class for the point representation hierarchy.">PointRepBase</a> ( <span class="stringliteral">&quot;CutRangeRep&quot;</span>, 0.0 )
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028   <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="l00029"></a>00029   <a class="code" href="classhippodraw_1_1RepBase.html#a94badf68e19e0f3fdba50764b5293ebd" title="Sets the color of the representation.">setColor</a> ( yellow );
<a name="l00030"></a>00030 }
<a name="l00031"></a>00031 
<a name="l00032"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#a84022fada60e7273c50880d1288b6505">00032</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a93a504d2bc84811765adbdb648428e7e" title="The default constructor.">CutRangeRep::CutRangeRep</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1CutRangeRep.html" title="A derived class of PointRepBase class that draws a representation of a cut range...">CutRangeRep</a> &amp; point_rep )
<a name="l00033"></a>00033   : <a class="code" href="classhippodraw_1_1PointRepBase.html" title="The base class for the point representation hierarchy.">PointRepBase</a> ( point_rep )
<a name="l00034"></a>00034 {
<a name="l00035"></a>00035 }
<a name="l00036"></a>00036 
<a name="l00037"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#abb739f66a82be630bdd8b96dc20d4755">00037</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html" title="A derived class of PointRepBase class that draws a representation of a cut range...">CutRangeRep</a> * <a class="code" href="classhippodraw_1_1CutRangeRep.html#abb739f66a82be630bdd8b96dc20d4755" title="The clone function returns an object of its own kind which is a copy of this object...">CutRangeRep::clone</a>()
<a name="l00038"></a>00038 {
<a name="l00039"></a>00039   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a93a504d2bc84811765adbdb648428e7e" title="The default constructor.">CutRangeRep</a>( *<span class="keyword">this</span> );
<a name="l00040"></a>00040 }
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="keywordtype">void</span>
<a name="l00043"></a>00043 <a class="code" href="classhippodraw_1_1CutRangeRep.html#adf16f7887d4032eb80645b3110080c2e" title="Draw the Range of the cut.">CutRangeRep::</a>
<a name="l00044"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#a1883a3da03fb3b72260482c91db6cd47">00044</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#adf16f7887d4032eb80645b3110080c2e" title="Draw the Range of the cut.">drawProjectedValues</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> *,
<a name="l00045"></a>00045                       <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> *,
<a name="l00046"></a>00046                       <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> * )
<a name="l00047"></a>00047 {
<a name="l00048"></a>00048 }
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="keywordtype">void</span> 
<a name="l00051"></a>00051 <a class="code" href="classhippodraw_1_1CutRangeRep.html#adf16f7887d4032eb80645b3110080c2e" title="Draw the Range of the cut.">CutRangeRep::</a>
<a name="l00052"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#adf16f7887d4032eb80645b3110080c2e">00052</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#adf16f7887d4032eb80645b3110080c2e" title="Draw the Range of the cut.">drawProjectedValues</a> ( <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 name="l00053"></a>00053                       <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 name="l00054"></a>00054                       <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> &amp; tb,
<a name="l00055"></a>00055                       <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> &amp; view )
<a name="l00056"></a>00056 {
<a name="l00057"></a>00057   <span class="keywordtype">int</span> dim = <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>.size();
<a name="l00058"></a>00058   
<a name="l00059"></a>00059   <span class="keywordtype">bool</span> yes = <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>[0].getInversion ();
<a name="l00060"></a>00060   <span class="keywordflow">if</span> ( dim == 2 ) yes |= <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>[1].getInversion ();
<a name="l00061"></a>00061   <span class="keywordflow">if</span> ( yes ) {
<a name="l00062"></a>00062     <span class="keywordflow">if</span> ( dim == 1 ) {
<a name="l00063"></a>00063       <a class="code" href="classhippodraw_1_1CutRangeRep.html#a8418c99027b0ba4a84f7e8abe8c8c176" title="Draws the Range for 1D cut with inversion within x_range and y_range using view under...">drawInvertedRange1D</a> ( x_range, y_range, tb, view );
<a name="l00064"></a>00064     }
<a name="l00065"></a>00065     <span class="keywordflow">else</span> {
<a name="l00066"></a>00066       <a class="code" href="classhippodraw_1_1CutRangeRep.html#abf255f8886afd9f8b78007afaa6aa413" title="Draws the Range for 2D cut with inversion within x_range and y_range using view under...">drawInvertedRange2D</a> ( x_range, y_range, tb, view );
<a name="l00067"></a>00067     }
<a name="l00068"></a>00068   }
<a name="l00069"></a>00069   <span class="keywordflow">else</span> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a5140e93515e9080db63299e9e3188b1b" title="Draws the Range for cut within x_range and y_range using view under transform tb...">drawNormalRange</a> ( x_range, y_range, tb, view );
<a name="l00070"></a>00070 }
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="keywordtype">void</span>
<a name="l00073"></a>00073 <a class="code" href="classhippodraw_1_1CutRangeRep.html#a5140e93515e9080db63299e9e3188b1b" title="Draws the Range for cut within x_range and y_range using view under transform tb...">CutRangeRep::</a>
<a name="l00074"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#a5140e93515e9080db63299e9e3188b1b">00074</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a5140e93515e9080db63299e9e3188b1b" title="Draws the Range for cut within x_range and y_range using view under transform tb...">drawNormalRange</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; x_range, <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 name="l00075"></a>00075                   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> &amp; tb,
<a name="l00076"></a>00076                   <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> &amp; view )
<a name="l00077"></a>00077 {
<a name="l00078"></a>00078   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinaryTransform.html" title="A transform that transforms coordinates from one 2D coordinate system to another...">BinaryTransform</a> &amp; t 
<a name="l00079"></a>00079     = dynamic_cast &lt; <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinaryTransform.html" title="A transform that transforms coordinates from one 2D coordinate system to another...">BinaryTransform</a> &amp; &gt; ( tb );
<a name="l00080"></a>00080   
<a name="l00081"></a>00081   <span class="keywordtype">double</span> x1 = x_range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a> ();
<a name="l00082"></a>00082   <span class="keywordtype">double</span> y1 = y_range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a> ();
<a name="l00083"></a>00083   <span class="keywordtype">double</span> x2 = x_range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a> ();
<a name="l00084"></a>00084   <span class="keywordtype">double</span> y2 = y_range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a> ();
<a name="l00085"></a>00085   
<a name="l00086"></a>00086   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>.size () &gt;= 1 ) <span class="comment">// i.e. this section applies to 1D and 2D cuts</span>
<a name="l00087"></a>00087     {
<a name="l00088"></a>00088       <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_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>[0].getRange ();
<a name="l00089"></a>00089       <span class="keywordtype">double</span> cut_low = range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a> ();
<a name="l00090"></a>00090       <span class="keywordtype">double</span> cut_high = range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a> ();
<a name="l00091"></a>00091       <span class="keywordflow">if</span> ( cut_low &gt; x1 ) x1 = cut_low;
<a name="l00092"></a>00092       <span class="keywordflow">if</span> ( cut_high &lt; x2 ) x2 = cut_high;
<a name="l00093"></a>00093     }
<a name="l00094"></a>00094   
<a name="l00095"></a>00095   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>.size () &gt;= 2 ) <span class="comment">// i.e., this section applies only to 2D cuts.</span>
<a name="l00096"></a>00096     {
<a name="l00097"></a>00097       <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_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>[1].getRange ();
<a name="l00098"></a>00098       <span class="keywordtype">double</span> cut_low = range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a> ();
<a name="l00099"></a>00099       <span class="keywordtype">double</span> cut_high = range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a> ();
<a name="l00100"></a>00100       <span class="keywordflow">if</span> ( cut_low &gt; y1 ) y1 = cut_low;
<a name="l00101"></a>00101       <span class="keywordflow">if</span> ( cut_high &lt; y2 ) y2 = cut_high;
<a name="l00102"></a>00102     }
<a name="l00103"></a>00103   
<a name="l00104"></a>00104   t.<a class="code" href="classhippodraw_1_1BinaryTransform.html#a1b4dd77a3812e7bf43a74d52ad80ad0b" title="Transform the coordinates on the X and Y axes.">transform</a> ( x1, y1 );
<a name="l00105"></a>00105   t.<a class="code" href="classhippodraw_1_1BinaryTransform.html#a1b4dd77a3812e7bf43a74d52ad80ad0b" title="Transform the coordinates on the X and Y axes.">transform</a> ( x2, y2 );
<a name="l00106"></a>00106 
<a name="l00107"></a>00107   <span class="keywordtype">int</span> red;
<a name="l00108"></a>00108   <span class="keywordtype">int</span> green;
<a name="l00109"></a>00109   <span class="keywordtype">int</span> blue;
<a name="l00110"></a>00110   
<a name="l00111"></a>00111   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RepBase.html#a1505417a702daeecc9fd33dbe6f9b763" title="A flag to indicate the representation is de-selected.">m_desel</a> == <span class="keyword">false</span> ) {
<a name="l00112"></a>00112     red   = <a class="code" href="classhippodraw_1_1RepBase.html#a84fab7a272aa627b0cdac824474d3a17" title="The color of the representation.">m_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a554f0bc3f055386ee8d8af3bed2270e0">getRed</a> ();
<a name="l00113"></a>00113     green = <a class="code" href="classhippodraw_1_1RepBase.html#a84fab7a272aa627b0cdac824474d3a17" title="The color of the representation.">m_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a2f7edccf0a09b1eb61bdca066be488ce">getGreen</a> ();
<a name="l00114"></a>00114     blue  = <a class="code" href="classhippodraw_1_1RepBase.html#a84fab7a272aa627b0cdac824474d3a17" title="The color of the representation.">m_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a6ef3a4782f8f919620728bc62e80f1e1">getBlue</a> ();
<a name="l00115"></a>00115   }
<a name="l00116"></a>00116   <span class="keywordflow">else</span> {
<a name="l00117"></a>00117     red = <a class="code" href="classhippodraw_1_1RepBase.html#a5f5b45135fa8859becbc24cf33442e75" title="The color of the representation when it is de-selected.">s_desel_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a554f0bc3f055386ee8d8af3bed2270e0">getRed</a> ();
<a name="l00118"></a>00118     green = <a class="code" href="classhippodraw_1_1RepBase.html#a5f5b45135fa8859becbc24cf33442e75" title="The color of the representation when it is de-selected.">s_desel_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a2f7edccf0a09b1eb61bdca066be488ce">getGreen</a> ();
<a name="l00119"></a>00119     blue = <a class="code" href="classhippodraw_1_1RepBase.html#a5f5b45135fa8859becbc24cf33442e75" title="The color of the representation when it is de-selected.">s_desel_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a6ef3a4782f8f919620728bc62e80f1e1">getBlue</a> ();
<a name="l00120"></a>00120   }
<a name="l00121"></a>00121   view.<a class="code" href="classhippodraw_1_1ViewBase.html#a12d3047ddbef25f0fa23d44e14bfd2c5" title="Draws a colored square.">drawSquare</a> ( x1, y1, x2, y2, red, green, blue );
<a name="l00122"></a>00122 }
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="keywordtype">void</span>
<a name="l00125"></a>00125 <a class="code" href="classhippodraw_1_1CutRangeRep.html#a8418c99027b0ba4a84f7e8abe8c8c176" title="Draws the Range for 1D cut with inversion within x_range and y_range using view under...">CutRangeRep::</a>
<a name="l00126"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#a8418c99027b0ba4a84f7e8abe8c8c176">00126</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a8418c99027b0ba4a84f7e8abe8c8c176" title="Draws the Range for 1D cut with inversion within x_range and y_range using view under...">drawInvertedRange1D</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; x_range, <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 name="l00127"></a>00127                       <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> &amp; tb,
<a name="l00128"></a>00128                       <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> &amp; view )
<a name="l00129"></a>00129 {
<a name="l00130"></a>00130   <span class="keywordtype">double</span> xl = x_range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a> ();
<a name="l00131"></a>00131   <span class="keywordtype">double</span> xr = x_range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a> ();
<a name="l00132"></a>00132 
<a name="l00133"></a>00133   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> range = <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>[0].getRange ();
<a name="l00134"></a>00134   <span class="keywordtype">double</span> cut_low = range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>();
<a name="l00135"></a>00135   <span class="keywordtype">double</span> cut_high = range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a> ();
<a name="l00136"></a>00136 
<a name="l00137"></a>00137   <span class="keywordtype">double</span> x1 = std::max ( cut_low, xl );
<a name="l00138"></a>00138   <span class="keywordtype">double</span> x2 = std::min ( cut_high, xr );
<a name="l00139"></a>00139 
<a name="l00140"></a>00140   <span class="keywordtype">double</span> y1 = y_range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a> ();
<a name="l00141"></a>00141   <span class="keywordtype">double</span> y2 = y_range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a> ();
<a name="l00142"></a>00142 
<a name="l00143"></a>00143   <span class="keywordtype">double</span> yl = y1;
<a name="l00144"></a>00144   <span class="keywordtype">double</span> yr = y2;
<a name="l00145"></a>00145   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinaryTransform.html" title="A transform that transforms coordinates from one 2D coordinate system to another...">BinaryTransform</a> &amp; t 
<a name="l00146"></a>00146     = dynamic_cast &lt; <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinaryTransform.html" title="A transform that transforms coordinates from one 2D coordinate system to another...">BinaryTransform</a> &amp; &gt; ( tb );
<a name="l00147"></a>00147   
<a name="l00148"></a>00148   t.<a class="code" href="classhippodraw_1_1BinaryTransform.html#a1b4dd77a3812e7bf43a74d52ad80ad0b" title="Transform the coordinates on the X and Y axes.">transform</a> ( x1, y1 ); <span class="comment">// careful, they get modified</span>
<a name="l00149"></a>00149   t.<a class="code" href="classhippodraw_1_1BinaryTransform.html#a1b4dd77a3812e7bf43a74d52ad80ad0b" title="Transform the coordinates on the X and Y axes.">transform</a> ( x2, y2 );
<a name="l00150"></a>00150 
<a name="l00151"></a>00151   t.<a class="code" href="classhippodraw_1_1BinaryTransform.html#a1b4dd77a3812e7bf43a74d52ad80ad0b" title="Transform the coordinates on the X and Y axes.">transform</a> ( xl, yl );
<a name="l00152"></a>00152   t.<a class="code" href="classhippodraw_1_1BinaryTransform.html#a1b4dd77a3812e7bf43a74d52ad80ad0b" title="Transform the coordinates on the X and Y axes.">transform</a> ( xr, yr );
<a name="l00153"></a>00153 
<a name="l00154"></a>00154   <span class="keywordtype">int</span> red;
<a name="l00155"></a>00155   <span class="keywordtype">int</span> green;
<a name="l00156"></a>00156   <span class="keywordtype">int</span> blue;
<a name="l00157"></a>00157   
<a name="l00158"></a>00158   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RepBase.html#a1505417a702daeecc9fd33dbe6f9b763" title="A flag to indicate the representation is de-selected.">m_desel</a> == <span class="keyword">false</span> ) {
<a name="l00159"></a>00159     red   = <a class="code" href="classhippodraw_1_1RepBase.html#a84fab7a272aa627b0cdac824474d3a17" title="The color of the representation.">m_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a554f0bc3f055386ee8d8af3bed2270e0">getRed</a> ();
<a name="l00160"></a>00160     green = <a class="code" href="classhippodraw_1_1RepBase.html#a84fab7a272aa627b0cdac824474d3a17" title="The color of the representation.">m_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a2f7edccf0a09b1eb61bdca066be488ce">getGreen</a> ();
<a name="l00161"></a>00161     blue  = <a class="code" href="classhippodraw_1_1RepBase.html#a84fab7a272aa627b0cdac824474d3a17" title="The color of the representation.">m_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a6ef3a4782f8f919620728bc62e80f1e1">getBlue</a> ();
<a name="l00162"></a>00162   }
<a name="l00163"></a>00163   <span class="keywordflow">else</span> {
<a name="l00164"></a>00164     red = <a class="code" href="classhippodraw_1_1RepBase.html#a5f5b45135fa8859becbc24cf33442e75" title="The color of the representation when it is de-selected.">s_desel_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a554f0bc3f055386ee8d8af3bed2270e0">getRed</a> ();
<a name="l00165"></a>00165     green = <a class="code" href="classhippodraw_1_1RepBase.html#a5f5b45135fa8859becbc24cf33442e75" title="The color of the representation when it is de-selected.">s_desel_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a2f7edccf0a09b1eb61bdca066be488ce">getGreen</a> ();
<a name="l00166"></a>00166     blue = <a class="code" href="classhippodraw_1_1RepBase.html#a5f5b45135fa8859becbc24cf33442e75" title="The color of the representation when it is de-selected.">s_desel_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a6ef3a4782f8f919620728bc62e80f1e1">getBlue</a> ();
<a name="l00167"></a>00167   }
<a name="l00168"></a>00168   
<a name="l00169"></a>00169   view.<a class="code" href="classhippodraw_1_1ViewBase.html#a12d3047ddbef25f0fa23d44e14bfd2c5" title="Draws a colored square.">drawSquare</a> ( xl, y1, x1, y2, red, green, blue );  
<a name="l00170"></a>00170   view.<a class="code" href="classhippodraw_1_1ViewBase.html#a12d3047ddbef25f0fa23d44e14bfd2c5" title="Draws a colored square.">drawSquare</a> ( x2, y1, xr, yr, red, green, blue );  
<a name="l00171"></a>00171 }
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 <span class="keywordtype">void</span>
<a name="l00174"></a>00174 <a class="code" href="classhippodraw_1_1CutRangeRep.html#abf255f8886afd9f8b78007afaa6aa413" title="Draws the Range for 2D cut with inversion within x_range and y_range using view under...">CutRangeRep::</a>
<a name="l00175"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#abf255f8886afd9f8b78007afaa6aa413">00175</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#abf255f8886afd9f8b78007afaa6aa413" title="Draws the Range for 2D cut with inversion within x_range and y_range using view under...">drawInvertedRange2D</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; x_range, <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 name="l00176"></a>00176                       <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> &amp; tb,
<a name="l00177"></a>00177                       <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> &amp; view )
<a name="l00178"></a>00178 {
<a name="l00179"></a>00179   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinaryTransform.html" title="A transform that transforms coordinates from one 2D coordinate system to another...">BinaryTransform</a> &amp; t 
<a name="l00180"></a>00180     = dynamic_cast &lt; <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinaryTransform.html" title="A transform that transforms coordinates from one 2D coordinate system to another...">BinaryTransform</a> &amp; &gt; ( tb );
<a name="l00181"></a>00181   
<a name="l00182"></a>00182   <span class="comment">// loeer left hand corner of plot</span>
<a name="l00183"></a>00183   <span class="keywordtype">double</span> xLow  = x_range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a> ();
<a name="l00184"></a>00184   <span class="keywordtype">double</span> yLow  = y_range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a> ();
<a name="l00185"></a>00185 
<a name="l00186"></a>00186   <span class="comment">// upper right hand corner of plot</span>
<a name="l00187"></a>00187   <span class="keywordtype">double</span> xHigh = x_range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a> ();
<a name="l00188"></a>00188   <span class="keywordtype">double</span> yHigh = y_range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a> ();
<a name="l00189"></a>00189 
<a name="l00190"></a>00190   <span class="comment">// will be empty box in center</span>
<a name="l00191"></a>00191   <span class="keywordtype">double</span> x1 = xLow;
<a name="l00192"></a>00192   <span class="keywordtype">double</span> x2 = xHigh;
<a name="l00193"></a>00193   <span class="keywordtype">double</span> y1 = yLow;
<a name="l00194"></a>00194   <span class="keywordtype">double</span> y2 = yHigh;
<a name="l00195"></a>00195     
<a name="l00196"></a>00196   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>.size () &gt;= 1 ) <span class="comment">// i.e. this section applies to 1D and 2D cuts</span>
<a name="l00197"></a>00197     {
<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 = <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>[0].getRange ();
<a name="l00199"></a>00199       <span class="keywordtype">double</span> cut_low = 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       <span class="keywordtype">double</span> cut_high = 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       <span class="keywordflow">if</span> ( cut_low &gt; x1 ) x1 = cut_low;
<a name="l00202"></a>00202       <span class="keywordflow">if</span> ( cut_high &lt; x2 ) x2 = cut_high;
<a name="l00203"></a>00203     }
<a name="l00204"></a>00204   
<a name="l00205"></a>00205   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>.size() &gt;= 2 ) <span class="comment">// i.e. applies only to 2D cuts</span>
<a name="l00206"></a>00206     {
<a name="l00207"></a>00207       <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_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>[1].getRange ();
<a name="l00208"></a>00208       <span class="keywordtype">double</span> cut_low = range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>();
<a name="l00209"></a>00209       <span class="keywordtype">double</span> cut_high = range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>();
<a name="l00210"></a>00210       <span class="keywordflow">if</span> ( cut_low &gt; y1 ) y1 = cut_low;
<a name="l00211"></a>00211       <span class="keywordflow">if</span> ( cut_high &lt; y2 ) y2 = cut_high;
<a name="l00212"></a>00212     }
<a name="l00213"></a>00213   
<a name="l00214"></a>00214   t.<a class="code" href="classhippodraw_1_1BinaryTransform.html#a1b4dd77a3812e7bf43a74d52ad80ad0b" title="Transform the coordinates on the X and Y axes.">transform</a> ( x1, y1 );
<a name="l00215"></a>00215   t.<a class="code" href="classhippodraw_1_1BinaryTransform.html#a1b4dd77a3812e7bf43a74d52ad80ad0b" title="Transform the coordinates on the X and Y axes.">transform</a> ( x2, y2 );
<a name="l00216"></a>00216 
<a name="l00217"></a>00217   t.<a class="code" href="classhippodraw_1_1BinaryTransform.html#a1b4dd77a3812e7bf43a74d52ad80ad0b" title="Transform the coordinates on the X and Y axes.">transform</a> ( xLow, yLow );
<a name="l00218"></a>00218   t.<a class="code" href="classhippodraw_1_1BinaryTransform.html#a1b4dd77a3812e7bf43a74d52ad80ad0b" title="Transform the coordinates on the X and Y axes.">transform</a> ( xHigh, yHigh );
<a name="l00219"></a>00219   
<a name="l00220"></a>00220   <span class="keywordtype">int</span> red;
<a name="l00221"></a>00221   <span class="keywordtype">int</span> green;
<a name="l00222"></a>00222   <span class="keywordtype">int</span> blue;
<a name="l00223"></a>00223   
<a name="l00224"></a>00224   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RepBase.html#a1505417a702daeecc9fd33dbe6f9b763" title="A flag to indicate the representation is de-selected.">m_desel</a> == <span class="keyword">false</span> ) {
<a name="l00225"></a>00225     red   = <a class="code" href="classhippodraw_1_1RepBase.html#a84fab7a272aa627b0cdac824474d3a17" title="The color of the representation.">m_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a554f0bc3f055386ee8d8af3bed2270e0">getRed</a> ();
<a name="l00226"></a>00226     green = <a class="code" href="classhippodraw_1_1RepBase.html#a84fab7a272aa627b0cdac824474d3a17" title="The color of the representation.">m_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a2f7edccf0a09b1eb61bdca066be488ce">getGreen</a> ();
<a name="l00227"></a>00227     blue  = <a class="code" href="classhippodraw_1_1RepBase.html#a84fab7a272aa627b0cdac824474d3a17" title="The color of the representation.">m_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a6ef3a4782f8f919620728bc62e80f1e1">getBlue</a> ();
<a name="l00228"></a>00228   }
<a name="l00229"></a>00229   <span class="keywordflow">else</span> {
<a name="l00230"></a>00230     red = <a class="code" href="classhippodraw_1_1RepBase.html#a5f5b45135fa8859becbc24cf33442e75" title="The color of the representation when it is de-selected.">s_desel_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a554f0bc3f055386ee8d8af3bed2270e0">getRed</a> ();
<a name="l00231"></a>00231     green = <a class="code" href="classhippodraw_1_1RepBase.html#a5f5b45135fa8859becbc24cf33442e75" title="The color of the representation when it is de-selected.">s_desel_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a2f7edccf0a09b1eb61bdca066be488ce">getGreen</a> ();
<a name="l00232"></a>00232     blue = <a class="code" href="classhippodraw_1_1RepBase.html#a5f5b45135fa8859becbc24cf33442e75" title="The color of the representation when it is de-selected.">s_desel_color</a>.<a class="code" href="classhippodraw_1_1Color.html#a6ef3a4782f8f919620728bc62e80f1e1">getBlue</a> ();
<a name="l00233"></a>00233   }
<a name="l00234"></a>00234   
<a name="l00235"></a>00235   
<a name="l00236"></a>00236   <span class="comment">// left box</span>
<a name="l00237"></a>00237   view.<a class="code" href="classhippodraw_1_1ViewBase.html#a12d3047ddbef25f0fa23d44e14bfd2c5" title="Draws a colored square.">drawSquare</a>( xLow, yLow,    x1, yHigh, red, green, blue );
<a name="l00238"></a>00238 
<a name="l00239"></a>00239   <span class="comment">// right box</span>
<a name="l00240"></a>00240   view.<a class="code" href="classhippodraw_1_1ViewBase.html#a12d3047ddbef25f0fa23d44e14bfd2c5" title="Draws a colored square.">drawSquare</a>(   x2, yLow, xHigh, yHigh, red, green, blue );
<a name="l00241"></a>00241 
<a name="l00242"></a>00242   <span class="comment">// upper midle</span>
<a name="l00243"></a>00243   view.<a class="code" href="classhippodraw_1_1ViewBase.html#a12d3047ddbef25f0fa23d44e14bfd2c5" title="Draws a colored square.">drawSquare</a>(   x1,   y2,    x2, yHigh, red, green, blue );
<a name="l00244"></a>00244 
<a name="l00245"></a>00245   <span class="comment">// lower midle</span>
<a name="l00246"></a>00246   view.<a class="code" href="classhippodraw_1_1ViewBase.html#a12d3047ddbef25f0fa23d44e14bfd2c5" title="Draws a colored square.">drawSquare</a>(   x1, yLow,    x2,    y1, red, green, blue );
<a name="l00247"></a>00247 
<a name="l00248"></a>00248 }
<a name="l00249"></a>00249 
<a name="l00250"></a>00250 <span class="keyword">const</span> vector &lt; TupleCut &gt; &amp;
<a name="l00251"></a>00251 <a class="code" href="classhippodraw_1_1CutRangeRep.html#a8f2d85a629a080468a5a0d744efc6bd4" title="Returns the TupleCut objects used by the receiving object.">CutRangeRep::</a>
<a name="l00252"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#a8f2d85a629a080468a5a0d744efc6bd4">00252</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a8f2d85a629a080468a5a0d744efc6bd4" title="Returns the TupleCut objects used by the receiving object.">getCuts</a> ()<span class="keyword"> const</span>
<a name="l00253"></a>00253 <span class="keyword"></span>{
<a name="l00254"></a>00254   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>;
<a name="l00255"></a>00255 }
<a name="l00256"></a>00256 
<a name="l00257"></a>00257 <span class="keywordtype">void</span>
<a name="l00258"></a>00258 <a class="code" href="classhippodraw_1_1CutRangeRep.html#a5cc30d14558ce47eedc67a6fead8fc38" title="Add a TupleCut object to the list of cuts.">CutRangeRep::</a>
<a name="l00259"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#a5cc30d14558ce47eedc67a6fead8fc38">00259</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a5cc30d14558ce47eedc67a6fead8fc38" title="Add a TupleCut object to the list of cuts.">addCut</a> ( <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 )
<a name="l00260"></a>00260 {
<a name="l00261"></a>00261   <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>.push_back ( cut );
<a name="l00262"></a>00262 }
<a name="l00263"></a>00263 
<a name="l00264"></a>00264 <span class="keywordtype">void</span>
<a name="l00265"></a>00265 <a class="code" href="classhippodraw_1_1CutRangeRep.html#a654cbf7e62bd00f0803420f58e1c05a5" title="Set the Range of the i-th cut.">CutRangeRep::</a>
<a name="l00266"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#a654cbf7e62bd00f0803420f58e1c05a5">00266</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a654cbf7e62bd00f0803420f58e1c05a5" title="Set the Range of the i-th cut.">setCutRangeAt</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; range, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i )
<a name="l00267"></a>00267 {
<a name="l00268"></a>00268   <span class="keywordflow">if</span> ( i &gt;= <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>.size () ) <a class="code" href="classhippodraw_1_1CutRangeRep.html#a7dee8ef01d7378e9d3d295dc250c04fd" title="Throws exception that index was out of range.">throwRangeException</a> ();
<a name="l00269"></a>00269 
<a name="l00270"></a>00270   <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>[i].setRange ( range );
<a name="l00271"></a>00271 }
<a name="l00272"></a>00272 
<a name="l00273"></a>00273 <span class="keywordtype">void</span>
<a name="l00274"></a>00274 <a class="code" href="classhippodraw_1_1CutRangeRep.html#ab05390e97c1bb825fd058c991ebf0275" title="Toggles the i-th cut to be inverted from its current state.">CutRangeRep::</a>
<a name="l00275"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#ab05390e97c1bb825fd058c991ebf0275">00275</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#ab05390e97c1bb825fd058c991ebf0275" title="Toggles the i-th cut to be inverted from its current state.">toggleInverted</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i )
<a name="l00276"></a>00276 {
<a name="l00277"></a>00277   <span class="keywordflow">if</span> ( i &gt;= <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>.size () ) <a class="code" href="classhippodraw_1_1CutRangeRep.html#a7dee8ef01d7378e9d3d295dc250c04fd" title="Throws exception that index was out of range.">throwRangeException</a> ();
<a name="l00278"></a>00278 
<a name="l00279"></a>00279   <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>[i].toggleInverted ();
<a name="l00280"></a>00280 }
<a name="l00281"></a>00281 
<a name="l00282"></a>00282 <span class="keywordtype">void</span>
<a name="l00283"></a>00283 <a class="code" href="classhippodraw_1_1CutRangeRep.html#a492f32e093d6e5d9354648dbd80c16e8" title="Sets the enabled state of the i-th cut.">CutRangeRep::</a>
<a name="l00284"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#a492f32e093d6e5d9354648dbd80c16e8">00284</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a492f32e093d6e5d9354648dbd80c16e8" title="Sets the enabled state of the i-th cut.">setEnabled</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i, <span class="keywordtype">bool</span> yes )
<a name="l00285"></a>00285 {
<a name="l00286"></a>00286   <span class="keywordflow">if</span> ( i &gt;= <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>.size () ) <a class="code" href="classhippodraw_1_1CutRangeRep.html#a7dee8ef01d7378e9d3d295dc250c04fd" title="Throws exception that index was out of range.">throwRangeException</a> ();
<a name="l00287"></a>00287 
<a name="l00288"></a>00288   <a class="code" href="classhippodraw_1_1CutRangeRep.html#a1c2feed36aaa9baed5108683a08333a9" title="A list of cut objects used to highlight region of the data representation.">m_cut_list</a>[i].setEnabled ( yes );
<a name="l00289"></a>00289 }
<a name="l00290"></a>00290 
<a name="l00291"></a>00291 <span class="keywordtype">void</span>
<a name="l00292"></a>00292 <a class="code" href="classhippodraw_1_1CutRangeRep.html#a7dee8ef01d7378e9d3d295dc250c04fd" title="Throws exception that index was out of range.">CutRangeRep::</a>
<a name="l00293"></a><a class="code" href="classhippodraw_1_1CutRangeRep.html#a7dee8ef01d7378e9d3d295dc250c04fd">00293</a> <a class="code" href="classhippodraw_1_1CutRangeRep.html#a7dee8ef01d7378e9d3d295dc250c04fd" title="Throws exception that index was out of range.">throwRangeException</a> ()
<a name="l00294"></a>00294 {
<a name="l00295"></a>00295   <span class="keywordtype">string</span> what ( <span class="stringliteral">&quot;CutRangeRep::setCutRange: index out of range.&quot;</span> );
<a name="l00296"></a>00296   <span class="keywordflow">throw</span> std::out_of_range ( what );
<a name="l00297"></a>00297 }
</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>