Sophie

Sophie

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

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>ARC.cxx</h1><a href="ARC_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="ARC_8h.html" title="ARC class interface.">ARC.h</a>&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="UnaryTransform_8h.html" title="UnaryTransform class interface.">UnaryTransform.h</a>&quot;</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="keyword">using namespace </span>hippodraw;
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 
<a name="l00018"></a><a class="code" href="classhippodraw_1_1ARC.html#a305ef200acbc6e3547b3bbb58a2a00d3">00018</a> ARC::ARC ( <a class="code" href="classhippodraw_1_1UnaryTransform.html" title="A transform that transforms coordinates in one dimension from one coordinate system...">UnaryTransform</a> * z )
<a name="l00019"></a>00019   : <a class="code" href="classhippodraw_1_1PeriodicBinaryTransform.html" title="A Periodic transform that transforms coordinates from one 2D coordinate system to...">PeriodicBinaryTransform</a> ( z, true, true, false, true,
<a name="l00020"></a>00020                               -180.0, +180.0,
<a name="l00021"></a>00021                               - 90.0, + 90.0 )
<a name="l00022"></a>00022 {
<a name="l00023"></a>00023   <a class="code" href="classhippodraw_1_1TransformBase.html#adb41893ba19e889e56c559f25fc1a68a" title="Name of the Transform.">m_name</a> = <span class="stringliteral">&quot;ARC&quot;</span>;
<a name="l00024"></a>00024   <span class="keyword">const</span> std::string projType(<span class="stringliteral">&quot;ARC&quot;</span>);
<a name="l00025"></a>00025   <span class="keywordtype">double</span> crpix[] = {0, 0}, crval[] = {0,90}, cdelt[] = {1,1};
<a name="l00026"></a>00026   <a class="code" href="classhippodraw_1_1PeriodicBinaryTransform.html#a64cf6cfddf44da7cb3daac301dbc02f9" title="Initialize the WCS transform type.">initwcs</a> (projType, crpix, crval, cdelt, 0, <span class="keyword">false</span>);
<a name="l00027"></a>00027 }
<a name="l00028"></a>00028 
<a name="l00029"></a><a class="code" href="classhippodraw_1_1ARC.html#a132f55d716aa8824866a01782a0cef7c">00029</a> <a class="code" href="classhippodraw_1_1ARC.html#a305ef200acbc6e3547b3bbb58a2a00d3" title="The constructor.">ARC::ARC</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1ARC.html" title="A transform that performs the ARC projection.">ARC</a> &amp; t )
<a name="l00030"></a>00030   :  <a class="code" href="classhippodraw_1_1PeriodicBinaryTransform.html" title="A Periodic transform that transforms coordinates from one 2D coordinate system to...">PeriodicBinaryTransform</a> ( t )
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032   <span class="keyword">const</span> std::string projType(<span class="stringliteral">&quot;ARC&quot;</span>);
<a name="l00033"></a>00033   <span class="keywordtype">double</span> crpix[] = {0, 0}, crval[] = {0,90}, cdelt[] = {1,1};
<a name="l00034"></a>00034   <a class="code" href="classhippodraw_1_1PeriodicBinaryTransform.html#a64cf6cfddf44da7cb3daac301dbc02f9" title="Initialize the WCS transform type.">initwcs</a> (projType, crpix, crval, cdelt, 0, <span class="keyword">false</span>);
<a name="l00035"></a>00035 }
<a name="l00036"></a>00036 
<a name="l00037"></a><a class="code" href="classhippodraw_1_1ARC.html#a2fd590e8efb38a664de106f164ddf58f">00037</a> <a class="code" href="classhippodraw_1_1ARC.html#a2fd590e8efb38a664de106f164ddf58f" title="The virtual destructor.">ARC::~ARC</a> ()
<a name="l00038"></a>00038 {
<a name="l00039"></a>00039 }
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="preprocessor">#ifdef CLONE_DEFECT</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> * <a class="code" href="classhippodraw_1_1ARC.html#a9e02f8063735c46dc38d0d7c3bb4d9ac" title="Creates a new Transform object by copying an existing one.">ARC::clone</a> () const
<a name="l00043"></a>00043 <span class="preprocessor">#else</span>
<a name="l00044"></a><a class="code" href="classhippodraw_1_1ARC.html#a9e02f8063735c46dc38d0d7c3bb4d9ac">00044</a> <span class="preprocessor"></span><a class="code" href="classhippodraw_1_1ARC.html" title="A transform that performs the ARC projection.">ARC</a>    * <a class="code" href="classhippodraw_1_1ARC.html#a9e02f8063735c46dc38d0d7c3bb4d9ac" title="Creates a new Transform object by copying an existing one.">ARC::clone</a> () const
<a name="l00045"></a>00045 <span class="preprocessor">#endif</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>{
<a name="l00047"></a>00047   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1ARC.html" title="A transform that performs the ARC projection.">ARC</a> ( *<span class="keyword">this</span> );
<a name="l00048"></a>00048 }
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="comment">/* virtual */</span>
<a name="l00053"></a><a class="code" href="classhippodraw_1_1ARC.html#a299aa8f5d7a9f67aaf79055093c635c9">00053</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1ARC.html#a299aa8f5d7a9f67aaf79055093c635c9" title="Returns the aspect ratio.">ARC::aspectRatio</a> ()<span class="keyword"> const</span>
<a name="l00054"></a>00054 <span class="keyword"></span>{
<a name="l00055"></a>00055   <span class="keywordflow">return</span> 1.0;
<a name="l00056"></a>00056 }
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 
</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>