Sophie

Sophie

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

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_eff62de51072964fc77c85daa9c2b3ad.html">transforms</a>
  </div>
</div>
<div class="contents">
<h1>TransformBase.cxx</h1><a href="TransformBase_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * HippoPlot TransformBase class implementation</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (C)  2001, 2002  The Board of Trustees of The Leland Stanford</span>
<a name="l00006"></a>00006 <span class="comment"> * Junior University.  All Rights Reserved.</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * $Id: TransformBase.cxx,v 1.21 2005/10/30 00:10:18 pfkeb Exp $</span>
<a name="l00009"></a>00009 <span class="comment"> */</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="comment">// for dll interface warning</span>
<a name="l00012"></a>00012 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#include &quot;msdevstudio/MSconfig.h&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#endif</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &quot;<a class="code" href="TransformBase_8h.html" title="TransformBase class interface.">TransformBase.h</a>&quot;</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="preprocessor">#include &quot;<a class="code" href="Range_8h.html" title="hippodraw::Range class interface">axes/Range.h</a>&quot;</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="keyword">using</span> std::string;
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="keyword">namespace </span>hippodraw {
<a name="l00025"></a>00025 
<a name="l00031"></a><a class="code" href="classhippodraw_1_1TransformBase.html#ae2a30ae11c81088c89252e29a0a8e770">00031</a> <a class="code" href="classhippodraw_1_1TransformBase.html#ae2a30ae11c81088c89252e29a0a8e770" title="The default constructor.">TransformBase::TransformBase</a> ()
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033   <a class="code" href="classhippodraw_1_1TransformBase.html#adb41893ba19e889e56c559f25fc1a68a" title="Name of the Transform.">m_name</a> = <span class="stringliteral">&quot;nil&quot;</span>;
<a name="l00034"></a>00034 }
<a name="l00035"></a>00035 
<a name="l00036"></a><a class="code" href="classhippodraw_1_1TransformBase.html#ab03262d9d0af4d48f5ac20576892f498">00036</a> <a class="code" href="classhippodraw_1_1TransformBase.html#ae2a30ae11c81088c89252e29a0a8e770" title="The default constructor.">TransformBase::TransformBase</a> ( <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; t ) 
<a name="l00037"></a>00037   : m_name ( t.m_name )
<a name="l00038"></a>00038 {
<a name="l00039"></a>00039 }
<a name="l00040"></a>00040 
<a name="l00041"></a><a class="code" href="classhippodraw_1_1TransformBase.html#adf170786efa4fd545769fbe94aafa5db">00041</a> <a class="code" href="classhippodraw_1_1TransformBase.html#adf170786efa4fd545769fbe94aafa5db" title="The virtual destructor.">TransformBase::~TransformBase</a> ()
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043 }
<a name="l00044"></a>00044 
<a name="l00045"></a><a class="code" href="classhippodraw_1_1TransformBase.html#a11c23a386abb9eb8a42f0c2c2835d640">00045</a> <span class="keyword">const</span> <span class="keywordtype">string</span> &amp; <a class="code" href="classhippodraw_1_1TransformBase.html#a11c23a386abb9eb8a42f0c2c2835d640" title="Returns the name of the Transform.">TransformBase::name</a> ()<span class="keyword"> const</span>
<a name="l00046"></a>00046 <span class="keyword"></span>{
<a name="l00047"></a>00047   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1TransformBase.html#adb41893ba19e889e56c559f25fc1a68a" title="Name of the Transform.">m_name</a>;
<a name="l00048"></a>00048 }
<a name="l00049"></a>00049 
<a name="l00050"></a><a class="code" href="classhippodraw_1_1TransformBase.html#a299aa8f5d7a9f67aaf79055093c635c9">00050</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1TransformBase.html#a299aa8f5d7a9f67aaf79055093c635c9" title="Get the aspect ratio.">TransformBase::aspectRatio</a>()<span class="keyword"> const</span>
<a name="l00051"></a>00051 <span class="keyword"></span>{
<a name="l00052"></a>00052   <span class="keywordflow">return</span> 0.0;
<a name="l00053"></a>00053 }
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 } <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>