<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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_d1aed8900ec9d9a2c165e57f18bd6f10.html">axes</a> </div> </div> <div class="contents"> <h1>AxisTick.cxx</h1><a href="AxisTick_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* HippoPlot AxisTick class implementation</span> <a name="l00002"></a>00002 <span class="comment"> *</span> <a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2000 The Board of Trustees of The Leland Stanford</span> <a name="l00004"></a>00004 <span class="comment"> * Junior University. All Rights Reserved.</span> <a name="l00005"></a>00005 <span class="comment"> *</span> <a name="l00006"></a>00006 <span class="comment"> * $Id: AxisTick.cxx,v 1.9 2005/10/30 00:10:09 pfkeb Exp $</span> <a name="l00007"></a>00007 <span class="comment"> */</span> <a name="l00008"></a>00008 <a name="l00009"></a>00009 <span class="comment">// for dll interface warning</span> <a name="l00010"></a>00010 <span class="preprocessor">#ifdef _MSC_VER</span> <a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#include "msdevstudio/MSconfig.h"</span> <a name="l00012"></a>00012 <span class="preprocessor">#endif</span> <a name="l00013"></a>00013 <span class="preprocessor"></span> <a name="l00014"></a>00014 <span class="preprocessor">#include "<a class="code" href="AxisTick_8h.html" title="AxisTick class interface.">AxisTick.h</a>"</span> <a name="l00015"></a>00015 <a name="l00016"></a>00016 <span class="keyword">using</span> std::string; <a name="l00017"></a>00017 <a name="l00018"></a>00018 <span class="keyword">namespace </span>hippodraw { <a name="l00019"></a>00019 <a name="l00020"></a><a class="code" href="classhippodraw_1_1AxisTick.html#a6f63989fd662b681b5949d17db64d4da">00020</a> <a class="code" href="classhippodraw_1_1AxisTick.html#a6f63989fd662b681b5949d17db64d4da" title="The default constructor.">AxisTick::AxisTick</a> ( ) : <a name="l00021"></a>00021 m_v ( 0 ), <a name="l00022"></a>00022 m_c ( <span class="stringliteral">""</span> ) <a name="l00023"></a>00023 { <a name="l00024"></a>00024 } <a name="l00025"></a>00025 <a name="l00026"></a><a class="code" href="classhippodraw_1_1AxisTick.html#a7c6bc24007c000bf39281ea18bd84950">00026</a> <a class="code" href="classhippodraw_1_1AxisTick.html#a6f63989fd662b681b5949d17db64d4da" title="The default constructor.">AxisTick::AxisTick</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1AxisTick.html" title="A class to maintain tick coordinates and string values.">AxisTick</a> & at ) : <a name="l00027"></a>00027 m_v ( at.m_v ), <a name="l00028"></a>00028 m_c ( at.m_c ) <a name="l00029"></a>00029 { <a name="l00030"></a>00030 } <a name="l00031"></a>00031 <a name="l00032"></a><a class="code" href="classhippodraw_1_1AxisTick.html#a464a24d10a5d62ed85864cc5be28ec63">00032</a> <a class="code" href="classhippodraw_1_1AxisTick.html#a6f63989fd662b681b5949d17db64d4da" title="The default constructor.">AxisTick::AxisTick</a> ( <span class="keywordtype">double</span> v, <span class="keyword">const</span> std::string & s ) : <a name="l00033"></a>00033 m_v ( v ), <a name="l00034"></a>00034 m_c ( s ) <a name="l00035"></a>00035 { <a name="l00036"></a>00036 } <a name="l00037"></a>00037 <a name="l00038"></a>00038 <span class="keywordtype">double</span> <a name="l00039"></a><a class="code" href="classhippodraw_1_1AxisTick.html#a324b14b7506c6e4f47912161956974ed">00039</a> <a class="code" href="classhippodraw_1_1AxisTick.html#a324b14b7506c6e4f47912161956974ed" title="Returns the value of the coordinate.">AxisTick::value</a> ( )<span class="keyword"> const</span> <a name="l00040"></a>00040 <span class="keyword"></span>{ <a name="l00041"></a>00041 <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisTick.html#a6322dc94f9b442feaf909050195e0f41" title="The value at the coordinate.">m_v</a>; <a name="l00042"></a>00042 } <a name="l00043"></a>00043 <a name="l00044"></a>00044 <span class="keywordtype">void</span> <a name="l00045"></a><a class="code" href="classhippodraw_1_1AxisTick.html#ae42d8c47d148ef1d37978b9ba1b217d9">00045</a> <a class="code" href="classhippodraw_1_1AxisTick.html#ae42d8c47d148ef1d37978b9ba1b217d9" title="Sets the value of the coordinate.">AxisTick::setValue</a> ( <span class="keywordtype">double</span> v ) <a name="l00046"></a>00046 { <a name="l00047"></a>00047 <a class="code" href="classhippodraw_1_1AxisTick.html#a6322dc94f9b442feaf909050195e0f41" title="The value at the coordinate.">m_v</a> = v; <a name="l00048"></a>00048 } <a name="l00049"></a>00049 <a name="l00050"></a>00050 <span class="keyword">const</span> <span class="keywordtype">string</span> & <a name="l00051"></a><a class="code" href="classhippodraw_1_1AxisTick.html#a6791ee12e107f4e9e331f06f7777cb76">00051</a> <a class="code" href="classhippodraw_1_1AxisTick.html#a6791ee12e107f4e9e331f06f7777cb76" title="Returns the content at the coordinate.">AxisTick::content</a> ( )<span class="keyword"> const</span> <a name="l00052"></a>00052 <span class="keyword"></span>{ <a name="l00053"></a>00053 <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisTick.html#a02c0bd341108a929f0ec8100f495eb81" title="The content at the coordinate.">m_c</a>; <a name="l00054"></a>00054 } <a name="l00055"></a>00055 <a name="l00056"></a>00056 <span class="keywordtype">void</span> <a name="l00057"></a><a class="code" href="classhippodraw_1_1AxisTick.html#a76cb7e5a13c0b24a75be8b3d2fc79ffb">00057</a> <a class="code" href="classhippodraw_1_1AxisTick.html#a76cb7e5a13c0b24a75be8b3d2fc79ffb" title="Sets the content at the coordinate.">AxisTick::setContent</a> ( <span class="keyword">const</span> std::string & s ) <a name="l00058"></a>00058 { <a name="l00059"></a>00059 <a class="code" href="classhippodraw_1_1AxisTick.html#a02c0bd341108a929f0ec8100f495eb81" title="The content at the coordinate.">m_c</a> = s; <a name="l00060"></a>00060 } <a name="l00061"></a>00061 <a name="l00062"></a>00062 } <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>