Sophie

Sophie

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

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_d1aed8900ec9d9a2c165e57f18bd6f10.html">axes</a>
  </div>
</div>
<div class="contents">
<h1>AxisModelBase.cxx</h1><a href="AxisModelBase_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 dll interface 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="AxisModelBase_8h.html" title="hippodraw::AxisModelBase class interface">AxisModelBase.h</a>&quot;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &quot;<a class="code" href="AxisTick_8h.html" title="AxisTick class interface.">AxisTick.h</a>&quot;</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;algorithm&gt;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="keyword">using</span> std::string;
<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><a class="code" href="classhippodraw_1_1AxisModelBase.html#a28985ee6555016a69c1eff0eef7af3f9">00029</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a28985ee6555016a69c1eff0eef7af3f9" title="The constructor sets the location of the ticks, labels, and scale.">AxisModelBase::AxisModelBase</a> ( <a class="code" href="AxisLoc_8h.html#a9b53735ee323795d625bf1a39a5c3407" title="The base class for the binner hierarchy.">AxisLoc</a> label, <a class="code" href="AxisLoc_8h.html#a9b53735ee323795d625bf1a39a5c3407" title="The base class for the binner hierarchy.">AxisLoc</a> scale )
<a name="l00030"></a>00030   : m_range( 0.0, 1.0 ),
<a name="l00031"></a>00031     m_start_range ( -1.0, 1.0 ),
<a name="l00032"></a>00032     m_is_dragging ( false ),
<a name="l00033"></a>00033     m_auto_range ( true ),
<a name="l00034"></a>00034     m_empty( true ),
<a name="l00035"></a>00035     m_scale_factor ( 1.0 ),
<a name="l00036"></a>00036     m_scaling_on ( false ),
<a name="l00037"></a>00037     m_first_tick( 0.0 ),
<a name="l00038"></a>00038     m_max_ticks( 20 ), 
<a name="l00039"></a>00039     m_num_minor_ticks( 0 ),
<a name="l00040"></a>00040     m_label_location( label ),
<a name="l00041"></a>00041     m_scale_location( scale ),
<a name="l00042"></a>00042     m_pmag( 0.0 ),
<a name="l00043"></a>00043     m_use_pmag( false ),
<a name="l00044"></a>00044     m_ticks( m_max_ticks ),
<a name="l00045"></a>00045     m_ticks_in_range(m_max_ticks),
<a name="l00046"></a>00046     m_auto_ticks ( true )
<a name="l00047"></a>00047 {
<a name="l00048"></a>00048 }
<a name="l00049"></a>00049 
<a name="l00050"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a30ad59eaedfce9e65add425406e9f0d3">00050</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a28985ee6555016a69c1eff0eef7af3f9" title="The constructor sets the location of the ticks, labels, and scale.">AxisModelBase::AxisModelBase</a>( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html" title="The AxisModelBase class maintains the Range and scaling of an axis.">AxisModelBase</a> &amp; axis_model )
<a name="l00051"></a>00051   : m_range( axis_model.m_range ),
<a name="l00052"></a>00052     m_start_range ( 0.0, 1.0 ),
<a name="l00053"></a>00053     m_is_dragging ( false ),
<a name="l00054"></a>00054     m_auto_range( axis_model.m_auto_range ),
<a name="l00055"></a>00055     m_empty( axis_model.m_empty ),
<a name="l00056"></a>00056     m_scale_factor( axis_model.m_scale_factor ),
<a name="l00057"></a>00057     m_scaling_on ( axis_model.m_scaling_on ),
<a name="l00058"></a>00058     m_first_tick( axis_model.m_first_tick ),
<a name="l00059"></a>00059     m_tick_step( axis_model.m_tick_step ),
<a name="l00060"></a>00060     m_max_ticks( 20 ),
<a name="l00061"></a>00061     m_num_minor_ticks( axis_model.m_num_minor_ticks ),
<a name="l00062"></a>00062     m_label_location( axis_model.m_label_location ),
<a name="l00063"></a>00063     m_scale_location( axis_model.m_scale_location ),
<a name="l00064"></a>00064     m_pmag( axis_model.m_pmag ), 
<a name="l00065"></a>00065     m_use_pmag( axis_model.m_use_pmag ),
<a name="l00066"></a>00066     m_ticks( axis_model.m_ticks ),
<a name="l00067"></a>00067     m_ticks_in_range( axis_model.m_ticks_in_range),
<a name="l00068"></a>00068     m_auto_ticks ( axis_model.m_auto_ticks )
<a name="l00069"></a>00069 {
<a name="l00070"></a>00070 }
<a name="l00071"></a>00071 
<a name="l00072"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#abf2b52ddbaad60052bd684bf7d79b7d9">00072</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#abf2b52ddbaad60052bd684bf7d79b7d9" title="The virtual destructor.">AxisModelBase::~AxisModelBase</a>()
<a name="l00073"></a>00073 {
<a name="l00074"></a>00074 }
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#ae8434910717057b1d2e5a92bba63a756">00076</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae8434910717057b1d2e5a92bba63a756" title="Sets the tick step.">AxisModelBase::setTickStep</a>( <span class="keyword">const</span> <span class="keywordtype">double</span> &amp; t_step ) 
<a name="l00077"></a>00077 {
<a name="l00078"></a>00078   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ab626437fd527189097384b3da3a0538b" title="The distance between two consecutive ticks.">m_tick_step</a> = t_step;
<a name="l00079"></a>00079 }
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a4421f43d8e6dbd79ef9e5f863b2da21c">00081</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a4421f43d8e6dbd79ef9e5f863b2da21c" title="Returns the tick step in the true coordinate system.">AxisModelBase::getTickStep</a>()<span class="keyword"> const</span>
<a name="l00082"></a>00082 <span class="keyword"></span>{
<a name="l00083"></a>00083   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ab626437fd527189097384b3da3a0538b" title="The distance between two consecutive ticks.">m_tick_step</a>;
<a name="l00084"></a>00084 }
<a name="l00085"></a>00085 
<a name="l00086"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a74b0210580d8668f96dabcc2d2260928">00086</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a74b0210580d8668f96dabcc2d2260928" title="Sets the value for first tick step.">AxisModelBase::setFirstTick</a>( <span class="keyword">const</span> <span class="keywordtype">double</span> &amp; first_tick ) 
<a name="l00087"></a>00087 {
<a name="l00088"></a>00088   <a class="code" href="classhippodraw_1_1AxisModelBase.html#af9ea5a4d4ff44d2db2a2a283cdec7313" title="The position of the first tick.">m_first_tick</a> = first_tick;
<a name="l00089"></a>00089 }
<a name="l00090"></a>00090 
<a name="l00091"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#ad75d6349899399e6ca07cb1103d86480">00091</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ad75d6349899399e6ca07cb1103d86480" title="Returns the value for the first tick step.">AxisModelBase::getFirstTick</a>()<span class="keyword"> const</span>
<a name="l00092"></a>00092 <span class="keyword"></span>{
<a name="l00093"></a>00093   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#af9ea5a4d4ff44d2db2a2a283cdec7313" title="The position of the first tick.">m_first_tick</a>; 
<a name="l00094"></a>00094 }
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#aa9c4760aa8c522cbb7b7ae6dc826d27d">00096</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#aa9c4760aa8c522cbb7b7ae6dc826d27d" title="Returns the value for maximum number of ticks.">AxisModelBase::getMaxTicks</a>()<span class="keyword"> const</span>
<a name="l00097"></a>00097 <span class="keyword"></span>{
<a name="l00098"></a>00098   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ab057d4c74a57f017d16c9982605d31b6" title="The maximum number of ticks.">m_max_ticks</a>; 
<a name="l00099"></a>00099 }
<a name="l00100"></a>00100 
<a name="l00101"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#af933579f4160e62b19ce2fba5f530c91">00101</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#af933579f4160e62b19ce2fba5f530c91" title="Sets the magnitude of the range.">AxisModelBase::setRMag</a>( <span class="keyword">const</span> <span class="keywordtype">double</span> &amp; rmag ) 
<a name="l00102"></a>00102 {
<a name="l00103"></a>00103   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae7680aa776c5016804a0040c796fac85" title="The value of the power of ten of the range to be used to determine how many decimal...">m_rmag</a> = rmag;
<a name="l00104"></a>00104 }
<a name="l00105"></a>00105 
<a name="l00106"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a91b53d98dc36d6f69d1670d4a2c9c6ab">00106</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a91b53d98dc36d6f69d1670d4a2c9c6ab" title="Sets the magnitude of the range.">AxisModelBase::getRMag</a>()<span class="keyword"> const</span>
<a name="l00107"></a>00107 <span class="keyword"></span>{
<a name="l00108"></a>00108   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae7680aa776c5016804a0040c796fac85" title="The value of the power of ten of the range to be used to determine how many decimal...">m_rmag</a>;
<a name="l00109"></a>00109 }
<a name="l00110"></a>00110 
<a name="l00111"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a447254d994d524156b490c0f78dc5c5a">00111</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a447254d994d524156b490c0f78dc5c5a" title="Sets the magnitude of the power of ten for the tick labels.">AxisModelBase::setPMag</a>( <span class="keyword">const</span> <span class="keywordtype">double</span> &amp; pmag ) 
<a name="l00112"></a>00112 {
<a name="l00113"></a>00113   <a class="code" href="classhippodraw_1_1AxisModelBase.html#acfa34473af5b07e3f305dc1603dba9a5" title="The value of the power of ten to be used to multiply the tick labels.">m_pmag</a> = pmag;
<a name="l00114"></a>00114 }
<a name="l00115"></a>00115 
<a name="l00116"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#aa5f0390d0531f504b59bbb13de685328">00116</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#aa5f0390d0531f504b59bbb13de685328" title="Returns the magnitude of the power of ten for the tick labels.">AxisModelBase::getPMag</a>()<span class="keyword"> const</span>
<a name="l00117"></a>00117 <span class="keyword"></span>{
<a name="l00118"></a>00118   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#acfa34473af5b07e3f305dc1603dba9a5" title="The value of the power of ten to be used to multiply the tick labels.">m_pmag</a>;
<a name="l00119"></a>00119 }
<a name="l00120"></a>00120 
<a name="l00121"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a2162425b32653426fe8637e351769968">00121</a> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a2162425b32653426fe8637e351769968" title="The following functions are used by the AxisRepBase * object.">AxisModelBase::needPMag</a>()<span class="keyword"> const</span>
<a name="l00122"></a>00122 <span class="keyword"></span>{
<a name="l00123"></a>00123   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a8274a754380fa31a3fc07466fd6a3240" title="A flag to indicate that one will using scientific notation.">m_use_pmag</a>;
<a name="l00124"></a>00124 }
<a name="l00125"></a>00125 
<a name="l00126"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#ad4bbfdc145a8049e4e52db34d968fd78">00126</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ad4bbfdc145a8049e4e52db34d968fd78" title="Use to set the value of the member variable m_use_pmag.">AxisModelBase::setUsePMag</a>( <span class="keyword">const</span> <span class="keywordtype">bool</span> &amp; use_p_mag )
<a name="l00127"></a>00127 {
<a name="l00128"></a>00128   <a class="code" href="classhippodraw_1_1AxisModelBase.html#a8274a754380fa31a3fc07466fd6a3240" title="A flag to indicate that one will using scientific notation.">m_use_pmag</a> = use_p_mag;
<a name="l00129"></a>00129 }
<a name="l00130"></a>00130 
<a name="l00131"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#aa5cfb1d5e022633d10836bab146bbe98">00131</a> <a class="code" href="AxisLoc_8h.html#a9b53735ee323795d625bf1a39a5c3407" title="The base class for the binner hierarchy.">AxisLoc</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#aa5cfb1d5e022633d10836bab146bbe98">AxisModelBase::getLabelLocation</a>()<span class="keyword"> const</span>
<a name="l00132"></a>00132 <span class="keyword"></span>{
<a name="l00133"></a>00133   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a63725e723f2df04456745072f0335667">m_label_location</a>;
<a name="l00134"></a>00134 }
<a name="l00135"></a>00135 
<a name="l00136"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#aa7867c0d2da11f0cae02456590e0de48">00136</a> <a class="code" href="AxisLoc_8h.html#a9b53735ee323795d625bf1a39a5c3407" title="The base class for the binner hierarchy.">AxisLoc</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#aa7867c0d2da11f0cae02456590e0de48">AxisModelBase::getScaleLocation</a>()<span class="keyword"> const</span>
<a name="l00137"></a>00137 <span class="keyword"></span>{
<a name="l00138"></a>00138   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a7002c76d5e84373f0277d090d70b9f48">m_scale_location</a>;
<a name="l00139"></a>00139 }
<a name="l00140"></a>00140 
<a name="l00141"></a>00141 <span class="keywordtype">void</span>
<a name="l00142"></a>00142 <a class="code" href="classhippodraw_1_1AxisModelBase.html#ab145e6b23772eb4b1fb04bcf63e4840c" title="Sets flag to determine if tick positions should be automatically generated or not...">AxisModelBase::</a>
<a name="l00143"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#ab145e6b23772eb4b1fb04bcf63e4840c">00143</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ab145e6b23772eb4b1fb04bcf63e4840c" title="Sets flag to determine if tick positions should be automatically generated or not...">setAutoTicks</a> ( <span class="keywordtype">bool</span> yes )
<a name="l00144"></a>00144 {
<a name="l00145"></a>00145   <a class="code" href="classhippodraw_1_1AxisModelBase.html#a303d84508d9e723a83419e9afeafb9ed" title="A flag set to true if ticks are being automatically generated.">m_auto_ticks</a> = yes;
<a name="l00146"></a>00146   <span class="keywordflow">if</span> (!<a class="code" href="classhippodraw_1_1AxisModelBase.html#a303d84508d9e723a83419e9afeafb9ed" title="A flag set to true if ticks are being automatically generated.">m_auto_ticks</a>) <a class="code" href="classhippodraw_1_1AxisModelBase.html#af1e9cd6657cdbb2965b6836142adaffe" title="Adjust ticks in non_auto_tick mode.">adjustTicks</a>();
<a name="l00147"></a>00147 }
<a name="l00148"></a>00148 
<a name="l00149"></a>00149 <span class="keywordtype">bool</span>
<a name="l00150"></a>00150 <a class="code" href="classhippodraw_1_1AxisModelBase.html#a44c0caa51da0e7c37d59d1157c877079" title="Returns true if position of the ticks should be automatically generated.">AxisModelBase::</a>
<a name="l00151"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a44c0caa51da0e7c37d59d1157c877079">00151</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a44c0caa51da0e7c37d59d1157c877079" title="Returns true if position of the ticks should be automatically generated.">isAutoTicks</a> ( )<span class="keyword"> const</span>
<a name="l00152"></a>00152 <span class="keyword"></span>{
<a name="l00153"></a>00153   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a303d84508d9e723a83419e9afeafb9ed" title="A flag set to true if ticks are being automatically generated.">m_auto_ticks</a>;
<a name="l00154"></a>00154 }
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <span class="keywordtype">void</span>
<a name="l00157"></a>00157 <a class="code" href="classhippodraw_1_1AxisModelBase.html#add92d802cec150c5efa6a1be4bbfae88" title="Sets the ticks for plotting.">AxisModelBase::</a>
<a name="l00158"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#add92d802cec150c5efa6a1be4bbfae88">00158</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#add92d802cec150c5efa6a1be4bbfae88" title="Sets the ticks for plotting.">setTicks</a> ( <span class="keyword">const</span> std::vector &lt; AxisTick &gt; &amp; ticks)
<a name="l00159"></a>00159 {
<a name="l00160"></a>00160   <a class="code" href="classhippodraw_1_1AxisModelBase.html#af68199dfb6a5ec6528bb282997f131ef" title="The list of generated ticks.">m_ticks</a> = ticks;
<a name="l00161"></a>00161   <span class="keywordflow">if</span> (!<a class="code" href="classhippodraw_1_1AxisModelBase.html#a303d84508d9e723a83419e9afeafb9ed" title="A flag set to true if ticks are being automatically generated.">m_auto_ticks</a>) <a class="code" href="classhippodraw_1_1AxisModelBase.html#af1e9cd6657cdbb2965b6836142adaffe" title="Adjust ticks in non_auto_tick mode.">adjustTicks</a>();
<a name="l00162"></a>00162 }
<a name="l00163"></a>00163 
<a name="l00164"></a>00164 <span class="keyword">const</span> vector&lt;AxisTick&gt; &amp;
<a name="l00165"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#ad8181ef7ae5bba7ec82f538048fc5b72">00165</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ad8181ef7ae5bba7ec82f538048fc5b72" title="Returns a reference of generated ticks.">AxisModelBase::getTicks</a>()<span class="keyword"> const</span>
<a name="l00166"></a>00166 <span class="keyword"></span>{
<a name="l00167"></a>00167   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1AxisModelBase.html#a303d84508d9e723a83419e9afeafb9ed" title="A flag set to true if ticks are being automatically generated.">m_auto_ticks</a> ) <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#af68199dfb6a5ec6528bb282997f131ef" title="The list of generated ticks.">m_ticks</a>;
<a name="l00168"></a>00168   <span class="keywordflow">else</span> <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ab21aff042a54f5e0bdb5cdd9dc5b4ab9" title="Only work for non auto_ticks.">m_ticks_in_range</a>;
<a name="l00169"></a>00169   
<a name="l00170"></a>00170 }
<a name="l00171"></a>00171 
<a name="l00172"></a>00172 <span class="keywordtype">void</span> 
<a name="l00173"></a>00173 <a class="code" href="classhippodraw_1_1AxisModelBase.html#af1e9cd6657cdbb2965b6836142adaffe" title="Adjust ticks in non_auto_tick mode.">AxisModelBase::</a>
<a name="l00174"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#af1e9cd6657cdbb2965b6836142adaffe">00174</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#af1e9cd6657cdbb2965b6836142adaffe" title="Adjust ticks in non_auto_tick mode.">adjustTicks</a>()
<a name="l00175"></a>00175 {
<a name="l00176"></a>00176   <span class="comment">/* Need pre-processing to keep ticks in range. */</span>
<a name="l00177"></a>00177   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ab21aff042a54f5e0bdb5cdd9dc5b4ab9" title="Only work for non auto_ticks.">m_ticks_in_range</a>.clear();
<a name="l00178"></a>00178   
<a name="l00179"></a>00179   <span class="comment">/* Only ticks within the range are useful. */</span>
<a name="l00180"></a>00180   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacenum__util.html#a137f48a49d12a7dae8ba7c86db2a0c01">size</a> = <a class="code" href="classhippodraw_1_1AxisModelBase.html#af68199dfb6a5ec6528bb282997f131ef" title="The list of generated ticks.">m_ticks</a>.size();
<a name="l00181"></a>00181   <span class="keywordtype">double</span> range_high = <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>();
<a name="l00182"></a>00182   <span class="keywordtype">double</span> range_low = <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>();
<a name="l00183"></a>00183   <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i&lt;size; i++ ) {
<a name="l00184"></a>00184     <span class="keywordflow">if</span> (( <a class="code" href="classhippodraw_1_1AxisModelBase.html#af68199dfb6a5ec6528bb282997f131ef" title="The list of generated ticks.">m_ticks</a>[i].value()&lt; range_high ) &amp;&amp;
<a name="l00185"></a>00185         ( <a class="code" href="classhippodraw_1_1AxisModelBase.html#af68199dfb6a5ec6528bb282997f131ef" title="The list of generated ticks.">m_ticks</a>[i].value()&gt; range_low ))
<a name="l00186"></a>00186       <a class="code" href="classhippodraw_1_1AxisModelBase.html#ab21aff042a54f5e0bdb5cdd9dc5b4ab9" title="Only work for non auto_ticks.">m_ticks_in_range</a>.push_back(<a class="code" href="classhippodraw_1_1AxisModelBase.html#af68199dfb6a5ec6528bb282997f131ef" title="The list of generated ticks.">m_ticks</a>[i]);
<a name="l00187"></a>00187     }
<a name="l00188"></a>00188 }
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 
<a name="l00191"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#addffd7d4904f8f6261dae4e2cb51b734">00191</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#addffd7d4904f8f6261dae4e2cb51b734" title="Sets the Range to the low and high values.">AxisModelBase::setRange</a> ( <span class="keywordtype">double</span> low, <span class="keywordtype">double</span> high, <span class="keywordtype">double</span> pos )
<a name="l00192"></a>00192 {
<a name="l00193"></a>00193   <span class="keywordflow">if</span> ( low &gt; high ) std::swap ( low, high );
<a name="l00194"></a>00194   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>.<a class="code" href="classhippodraw_1_1Range.html#addffd7d4904f8f6261dae4e2cb51b734" title="Changes the current Range.">setRange</a> ( low, high, pos );
<a name="l00195"></a>00195 
<a name="l00196"></a>00196   <span class="keywordflow">if</span> (!<a class="code" href="classhippodraw_1_1AxisModelBase.html#a303d84508d9e723a83419e9afeafb9ed" title="A flag set to true if ticks are being automatically generated.">m_auto_ticks</a>) <a class="code" href="classhippodraw_1_1AxisModelBase.html#af1e9cd6657cdbb2965b6836142adaffe" title="Adjust ticks in non_auto_tick mode.">adjustTicks</a>();
<a name="l00197"></a>00197 }
<a name="l00198"></a>00198 
<a name="l00199"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a317318394b9fbe80f4082dd90200af10">00199</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#addffd7d4904f8f6261dae4e2cb51b734" title="Sets the Range to the low and high values.">AxisModelBase::setRange</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">bool</span> scaled )
<a name="l00200"></a>00200 {
<a name="l00201"></a>00201   <span class="comment">/*  Comment out this for now to enable very small range ( range &lt; 1e-16 );</span>
<a name="l00202"></a>00202 <span class="comment"></span>
<a name="l00203"></a>00203 <span class="comment">  if ( range.length () &lt; DBL_EPSILON ) {</span>
<a name="l00204"></a>00204 <span class="comment">    return;</span>
<a name="l00205"></a>00205 <span class="comment">  }</span>
<a name="l00206"></a>00206 <span class="comment"></span>
<a name="l00207"></a>00207 <span class="comment">  */</span>
<a name="l00208"></a>00208   <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> myrange = range;
<a name="l00209"></a>00209   <span class="keywordflow">if</span>( scaled ){
<a name="l00210"></a>00210     <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> newrange( range.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() / <a class="code" href="classhippodraw_1_1AxisModelBase.html#a3fba3a52c08a77ff1127828800f5c8a3" title="The scale factor.">m_scale_factor</a>,
<a name="l00211"></a>00211                    range.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() / <a class="code" href="classhippodraw_1_1AxisModelBase.html#a3fba3a52c08a77ff1127828800f5c8a3" title="The scale factor.">m_scale_factor</a>,
<a name="l00212"></a>00212                    range.<a class="code" href="classhippodraw_1_1Range.html#a4b02f1648e2efd2c179f8398b350285b" title="Returns the first positive element in range.">pos</a>() );
<a name="l00213"></a>00213     myrange = newrange;
<a name="l00214"></a>00214   }
<a name="l00215"></a>00215   
<a name="l00216"></a>00216   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a> = myrange;
<a name="l00217"></a>00217 
<a name="l00218"></a>00218   <span class="comment">// I could just call adjustLogValues() without a check, since linear</span>
<a name="l00219"></a>00219   <span class="comment">// does nothing in that function.  However, this assures that the</span>
<a name="l00220"></a>00220   <span class="comment">// graph actually has content, which may or may not be important in</span>
<a name="l00221"></a>00221   <span class="comment">// adjustLogValues(), so I&#39;m playing it on the safe side.</span>
<a name="l00222"></a>00222   <span class="comment">// Note that this causes problems in binned axes, because this has</span>
<a name="l00223"></a>00223   <span class="comment">// already bypassed the binner&#39;s dialogue. Therefore, this is only a</span>
<a name="l00224"></a>00224   <span class="comment">// secondary backup, as adjustLogValues() would have already been</span>
<a name="l00225"></a>00225   <span class="comment">// called for binned axes through the projector.</span>
<a name="l00226"></a>00226   <span class="keywordflow">if</span>( <a class="code" href="classhippodraw_1_1AxisModelBase.html#a4d864ee8e8581e14a866141d6d47976d" title="Returns a boolean describing the type of the scale of the axis.">isLog</a>() ) <a class="code" href="classhippodraw_1_1AxisModelBase.html#aca5cb084f097382dfd51d2e925fa73b4" title="Adjust the range for nice logging.">adjustLogValues</a>();
<a name="l00227"></a>00227 
<a name="l00228"></a>00228   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ac21f18624d637a3e48f64730fb79c479" title="A flag to indicate whether the range is empty.">m_empty</a> = <span class="keyword">false</span>;
<a name="l00229"></a>00229 
<a name="l00230"></a>00230   <span class="keywordflow">if</span> (!<a class="code" href="classhippodraw_1_1AxisModelBase.html#a303d84508d9e723a83419e9afeafb9ed" title="A flag set to true if ticks are being automatically generated.">m_auto_ticks</a>) <a class="code" href="classhippodraw_1_1AxisModelBase.html#af1e9cd6657cdbb2965b6836142adaffe" title="Adjust ticks in non_auto_tick mode.">adjustTicks</a>();
<a name="l00231"></a>00231 
<a name="l00232"></a>00232 }
<a name="l00233"></a>00233 
<a name="l00234"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a175253bfecf26b89ced34342b0f2a4b2">00234</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a175253bfecf26b89ced34342b0f2a4b2" title="Sets the Range to overlap of the two ranges.">AxisModelBase::setIntersectRange</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; r1, <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; r2 )
<a name="l00235"></a>00235 {
<a name="l00236"></a>00236   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a> = r1;
<a name="l00237"></a>00237   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>.<a class="code" href="classhippodraw_1_1Range.html#ad682f5ca049b6fc2149e152d6ec29444" title="Forms the intersect with the range in the argument.">setIntersect</a> ( r2 );
<a name="l00238"></a>00238 }
<a name="l00239"></a>00239 
<a name="l00240"></a>00240 <span class="keywordtype">void</span>
<a name="l00241"></a>00241 <a class="code" href="classhippodraw_1_1AxisModelBase.html#a325c76e616aa02b4fe13d27e7333d33c" title="The function which changes the pos member of m_range.">AxisModelBase::</a>
<a name="l00242"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a325c76e616aa02b4fe13d27e7333d33c">00242</a> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a325c76e616aa02b4fe13d27e7333d33c" title="The function which changes the pos member of m_range.">setRangePos</a> ( <span class="keywordtype">double</span> pos )
<a name="l00243"></a>00243 {
<a name="l00244"></a>00244   assert( pos &gt; 0.0 );
<a name="l00245"></a>00245   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>.<a class="code" href="classhippodraw_1_1Range.html#aa68d6e844913778c3aeb6b509dbef8f2" title="Sets the first positive element in range.">setPos</a>( pos );
<a name="l00246"></a>00246 }
<a name="l00247"></a>00247 
<a name="l00248"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a2d2004870ea30d13741c56a8106404fe">00248</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a2d2004870ea30d13741c56a8106404fe" title="Sets the range to be the union of the existing range and range.">AxisModelBase::setUnionRange</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; range )
<a name="l00249"></a>00249 {
<a name="l00250"></a>00250   <span class="keywordflow">if</span>( <a class="code" href="classhippodraw_1_1AxisModelBase.html#ac21f18624d637a3e48f64730fb79c479" title="A flag to indicate whether the range is empty.">m_empty</a> ) {
<a name="l00251"></a>00251     <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a> = range;
<a name="l00252"></a>00252     <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>.<a class="code" href="classhippodraw_1_1Range.html#ac50078a13b75f1d0b50fc233d2874fbc" title="Sets the range to empty.">setEmpty</a> ( <span class="keyword">false</span> );
<a name="l00253"></a>00253     <a class="code" href="classhippodraw_1_1AxisModelBase.html#ac21f18624d637a3e48f64730fb79c479" title="A flag to indicate whether the range is empty.">m_empty</a> = <span class="keyword">false</span>;
<a name="l00254"></a>00254   }
<a name="l00255"></a>00255   <span class="keywordflow">else</span> {
<a name="l00256"></a>00256     <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>.<a class="code" href="classhippodraw_1_1Range.html#ab05916911b0d4c4c64403cef68d336b4" title="Forms the union with the range range.">setUnion</a>( range );
<a name="l00257"></a>00257   }
<a name="l00258"></a>00258 }
<a name="l00259"></a>00259 
<a name="l00260"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#ac95684b9162e286c96faf0f6cefe7ea0">00260</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ac95684b9162e286c96faf0f6cefe7ea0" title="Sets the range to empty.">AxisModelBase::setEmpty</a>()
<a name="l00261"></a>00261 {
<a name="l00262"></a>00262   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ac21f18624d637a3e48f64730fb79c479" title="A flag to indicate whether the range is empty.">m_empty</a> = <span class="keyword">true</span>;
<a name="l00263"></a>00263 }
<a name="l00264"></a>00264 
<a name="l00265"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a47adba99d1bb0dd9eb9800f931feb672">00265</a> <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; <a class="code" href="classhippodraw_1_1AxisModelBase.html#a47adba99d1bb0dd9eb9800f931feb672" title="Returns the range represented by this AxisModel.">AxisModelBase::getRange</a>(<span class="keywordtype">bool</span> scaled)<span class="keyword"> const</span>
<a name="l00266"></a>00266 <span class="keyword"></span>{
<a name="l00267"></a>00267 
<a name="l00268"></a>00268   <span class="keywordflow">if</span>(!scaled)
<a name="l00269"></a>00269     <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>;
<a name="l00270"></a>00270   
<a name="l00271"></a>00271   <span class="keywordtype">double</span> low = <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() * <a class="code" href="classhippodraw_1_1AxisModelBase.html#a3fba3a52c08a77ff1127828800f5c8a3" title="The scale factor.">m_scale_factor</a>;
<a name="l00272"></a>00272   <span class="keywordtype">double</span> high = <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() * <a class="code" href="classhippodraw_1_1AxisModelBase.html#a3fba3a52c08a77ff1127828800f5c8a3" title="The scale factor.">m_scale_factor</a>;
<a name="l00273"></a>00273 
<a name="l00274"></a>00274   <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> range ( low, high );
<a name="l00275"></a>00275   <a class="code" href="classhippodraw_1_1AxisModelBase.html#aa9ec6d4ba5ecee1e31a078b9991331ac" title="The scaled range.">m_scaled_range</a> = range;
<a name="l00276"></a>00276 
<a name="l00277"></a>00277   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#aa9ec6d4ba5ecee1e31a078b9991331ac" title="The scaled range.">m_scaled_range</a>;
<a name="l00278"></a>00278 }
<a name="l00279"></a>00279 
<a name="l00280"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a7114611a60723148eed3039fb515811b">00280</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a7114611a60723148eed3039fb515811b" title="Sets the auto-ranging flag to flag.">AxisModelBase::setAutoRanging</a> ( <span class="keywordtype">bool</span> flag )
<a name="l00281"></a>00281 {
<a name="l00282"></a>00282   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae8ea644c800387bff5feac79622f23e8" title="The auto-range flag.">m_auto_range</a> = flag;
<a name="l00283"></a>00283 }
<a name="l00284"></a>00284 
<a name="l00285"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#aa847ee8252513adc74e4c569e518655b">00285</a> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#aa847ee8252513adc74e4c569e518655b" title="Returns true if auto-ranging is enabled; otherwise, returns false.">AxisModelBase::isAutoRanging</a> ()<span class="keyword"> const</span>
<a name="l00286"></a>00286 <span class="keyword"></span>{
<a name="l00287"></a>00287   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae8ea644c800387bff5feac79622f23e8" title="The auto-range flag.">m_auto_range</a>;
<a name="l00288"></a>00288 }
<a name="l00289"></a>00289 
<a name="l00290"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a00ce59d5fcb4560671c5f316c8f6410e">00290</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a00ce59d5fcb4560671c5f316c8f6410e" title="Sets the value of the scale factor.">AxisModelBase::setScaleFactor</a> ( <span class="keywordtype">double</span> sf )
<a name="l00291"></a>00291 {
<a name="l00292"></a>00292   <a class="code" href="classhippodraw_1_1AxisModelBase.html#a3fba3a52c08a77ff1127828800f5c8a3" title="The scale factor.">m_scale_factor</a> = sf;
<a name="l00293"></a>00293   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae8295592c00f9738569a48c1d6b26dda" title="If true, the axis is being scaled.">m_scaling_on</a> = <span class="keyword">true</span>;
<a name="l00294"></a>00294 }
<a name="l00295"></a>00295 
<a name="l00296"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#afbde1a57da2ad6bd8e170d77e36e64bb">00296</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#afbde1a57da2ad6bd8e170d77e36e64bb" title="Returns the scale factor.">AxisModelBase::getScaleFactor</a> ()<span class="keyword"> const</span>
<a name="l00297"></a>00297 <span class="keyword"></span>{
<a name="l00298"></a>00298   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae8295592c00f9738569a48c1d6b26dda" title="If true, the axis is being scaled.">m_scaling_on</a> == <span class="keyword">false</span> ) <span class="keywordflow">return</span> 1.0;
<a name="l00299"></a>00299   <span class="comment">// else</span>
<a name="l00300"></a>00300   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a3fba3a52c08a77ff1127828800f5c8a3" title="The scale factor.">m_scale_factor</a>;
<a name="l00301"></a>00301 }
<a name="l00302"></a>00302 
<a name="l00303"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a09f32a1df42457c3e8b5a4bd464cef9d">00303</a> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a09f32a1df42457c3e8b5a4bd464cef9d" title="Returns true if the axis is being scaled.">AxisModelBase:: isScaling</a> ( )<span class="keyword"> const</span>
<a name="l00304"></a>00304 <span class="keyword"></span>{
<a name="l00305"></a>00305   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae8295592c00f9738569a48c1d6b26dda" title="If true, the axis is being scaled.">m_scaling_on</a>;
<a name="l00306"></a>00306 }
<a name="l00307"></a>00307 
<a name="l00308"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#a2b1f687584cdc39f053843fc43b72f11">00308</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#a2b1f687584cdc39f053843fc43b72f11" title="Sets axis scaling on if on is true.">AxisModelBase:: setScaling</a> ( <span class="keywordtype">bool</span> on )
<a name="l00309"></a>00309 {
<a name="l00310"></a>00310   <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae8295592c00f9738569a48c1d6b26dda" title="If true, the axis is being scaled.">m_scaling_on</a> = on;
<a name="l00311"></a>00311   <span class="keywordflow">if</span> ( on == <span class="keyword">false</span> ) <a class="code" href="classhippodraw_1_1AxisModelBase.html#a3fba3a52c08a77ff1127828800f5c8a3" title="The scale factor.">m_scale_factor</a> = 1.0;
<a name="l00312"></a>00312 }
<a name="l00313"></a>00313 
<a name="l00314"></a><a class="code" href="classhippodraw_1_1AxisModelBase.html#ab09ff3762ac8d888dbdf6162f92d4daa">00314</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisModelBase.html#ab09ff3762ac8d888dbdf6162f92d4daa" title="Sets the member m_start_dragging to the current range if dragging is starting.">AxisModelBase::startDragging</a> ( <span class="keywordtype">bool</span> dragging )
<a name="l00315"></a>00315 {
<a name="l00316"></a>00316   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1AxisModelBase.html#a173752a0fe20bd396d2f3436e983c383" title="The current dragging state.">m_is_dragging</a> == <span class="keyword">false</span>  ) {
<a name="l00317"></a>00317     <a class="code" href="classhippodraw_1_1AxisModelBase.html#a6b2cf38e8271f05740ec08fc20ed6c4f" title="The starting range before start of dragging events.">m_start_range</a> = <a class="code" href="classhippodraw_1_1AxisModelBase.html#ae71dd536700e6f5636df8c8728c1383d" title="The current range of the axis.">m_range</a>;
<a name="l00318"></a>00318   }
<a name="l00319"></a>00319   <a class="code" href="classhippodraw_1_1AxisModelBase.html#a173752a0fe20bd396d2f3436e983c383" title="The current dragging state.">m_is_dragging</a> = dragging;
<a name="l00320"></a>00320 }
<a name="l00321"></a>00321 
<a name="l00322"></a>00322 } <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>