Sophie

Sophie

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

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_dd37c879693a21e1d65a2840272c12ab.html">graphics</a>
  </div>
</div>
<div class="contents">
<h1>Point.cxx</h1><a href="Point_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 Point  class implementation</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C)  2000, 2001  The Board of Trustees of The Leland Stanford</span>
<a name="l00005"></a>00005 <span class="comment"> * Junior University.  All Rights Reserved.</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * $Id: Point.cxx,v 1.18 2005/10/30 00:10:12 pfkeb Exp $</span>
<a name="l00008"></a>00008 <span class="comment"> */</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="Point_8h.html" title="Point class interface.">Point.h</a>&quot;</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="keyword">namespace </span>hippodraw {
<a name="l00013"></a>00013 
<a name="l00014"></a><a class="code" href="classhippodraw_1_1Point.html#aecd2a13cc8c6397ccbe28953d4bc8111">00014</a> <a class="code" href="classhippodraw_1_1Point.html#aecd2a13cc8c6397ccbe28953d4bc8111">Point::Point</a>( <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z )
<a name="l00015"></a>00015   : m_x(x), m_y(y), m_z(z)
<a name="l00016"></a>00016 {
<a name="l00017"></a>00017 }
<a name="l00018"></a>00018 
<a name="l00019"></a><a class="code" href="classhippodraw_1_1Point.html#aae20a5a02597edd1813cf2d76b679926">00019</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1Point.html#aae20a5a02597edd1813cf2d76b679926">Point::setPoint</a>( <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y ) {
<a name="l00020"></a>00020   <a class="code" href="classhippodraw_1_1Point.html#a731554e49bda0967051ada79c3950f84">m_x</a> = x;
<a name="l00021"></a>00021   <a class="code" href="classhippodraw_1_1Point.html#ade6c85874951f5bae1918341c786e240">m_y</a> = y;
<a name="l00022"></a>00022 }
<a name="l00023"></a>00023 
<a name="l00024"></a><a class="code" href="classhippodraw_1_1Point.html#a9807c9a18995b800d0edc865a399d741">00024</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1Point.html#aae20a5a02597edd1813cf2d76b679926">Point::setPoint</a>( <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z ) {
<a name="l00025"></a>00025   <a class="code" href="classhippodraw_1_1Point.html#a731554e49bda0967051ada79c3950f84">m_x</a> = x;
<a name="l00026"></a>00026   <a class="code" href="classhippodraw_1_1Point.html#ade6c85874951f5bae1918341c786e240">m_y</a> = y;
<a name="l00027"></a>00027   <a class="code" href="classhippodraw_1_1Point.html#acaba22e6c9f9d0dd663899ed3588e843">m_z</a> = z;
<a name="l00028"></a>00028 }
<a name="l00029"></a>00029 
<a name="l00030"></a><a class="code" href="classhippodraw_1_1Point.html#a0a54aee40f16bb73d33931f333f208be">00030</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1Point.html#a0a54aee40f16bb73d33931f333f208be" title="Moves the point by specified amount.">Point::moveBy</a> ( <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y )
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032   <a class="code" href="classhippodraw_1_1Point.html#a731554e49bda0967051ada79c3950f84">m_x</a> += x;
<a name="l00033"></a>00033   <a class="code" href="classhippodraw_1_1Point.html#ade6c85874951f5bae1918341c786e240">m_y</a> += y;
<a name="l00034"></a>00034 }
<a name="l00035"></a>00035 
<a name="l00036"></a><a class="code" href="classhippodraw_1_1Point.html#a5c7441d63ee9d9d76d552f188cc7a14c">00036</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1Point.html#a5c7441d63ee9d9d76d552f188cc7a14c" title="Sets the Z component of the Rectangle.">Point::setZ</a> ( <span class="keywordtype">double</span> z )
<a name="l00037"></a>00037 {
<a name="l00038"></a>00038   <a class="code" href="classhippodraw_1_1Point.html#acaba22e6c9f9d0dd663899ed3588e843">m_z</a> = z;
<a name="l00039"></a>00039 }
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 } <span class="comment">// namespace hippodraw</span>
<a name="l00042"></a>00042 
</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>