<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_eff62de51072964fc77c85daa9c2b3ad.html">transforms</a> </div> </div> <div class="contents"> <h1>AIR.cxx</h1><a href="AIR_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 "<a class="code" href="AIR_8h.html" title="AIR class interface.">AIR.h</a>"</span> <a name="l00013"></a>00013 <span class="preprocessor">#include "<a class="code" href="UnaryTransform_8h.html" title="UnaryTransform class interface.">UnaryTransform.h</a>"</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_1AIR.html#a0a61a71944617beb8502cb9f420b5916">00018</a> AIR::AIR ( <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">"AIR"</span>; <a name="l00024"></a>00024 <span class="keyword">const</span> std::string projType(<span class="stringliteral">"AIR"</span>); <a name="l00025"></a>00025 <span class="keywordtype">double</span> crpix[] = {0, 90}, 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_1AIR.html#a91a69ea822829b07296d3e258ff457e9">00029</a> <a class="code" href="classhippodraw_1_1AIR.html#a0a61a71944617beb8502cb9f420b5916" title="The constructor.">AIR::AIR</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1AIR.html" title="A transform that performs the AIR projection.">AIR</a> & 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">"AIR"</span>); <a name="l00033"></a>00033 <span class="keywordtype">double</span> crpix[] = {0, 90}, 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_1AIR.html#a647c43ba8c06aacf72c620a725034857">00037</a> <a class="code" href="classhippodraw_1_1AIR.html#a647c43ba8c06aacf72c620a725034857" title="The virtual destructor.">AIR::~AIR</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_1AIR.html#afeeb818638fd31a8122b8447915360be" title="Creates a new Transform object by copying an existing one.">AIR::clone</a> () const <a name="l00043"></a>00043 <span class="preprocessor">#else</span> <a name="l00044"></a><a class="code" href="classhippodraw_1_1AIR.html#afeeb818638fd31a8122b8447915360be">00044</a> <span class="preprocessor"></span><a class="code" href="classhippodraw_1_1AIR.html" title="A transform that performs the AIR projection.">AIR</a> * <a class="code" href="classhippodraw_1_1AIR.html#afeeb818638fd31a8122b8447915360be" title="Creates a new Transform object by copying an existing one.">AIR::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_1AIR.html" title="A transform that performs the AIR projection.">AIR</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_1AIR.html#a299aa8f5d7a9f67aaf79055093c635c9">00053</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1AIR.html#a299aa8f5d7a9f67aaf79055093c635c9" title="Returns the aspect ratio.">AIR::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>