Sophie

Sophie

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

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_f31ced79fa1bf97bbae7cff793d8fdf1.html">fits</a>
  </div>
</div>
<div class="contents">
<h1>FitsFile.h</h1><a href="FitsFile_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode:c++ -*- */</span>
<a name="l00002"></a>00002 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef _FitsFile_h</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define _FitsFile_h</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="FitsFileBase_8h.html" title="hippodraw::FitsFileBase interface">FitsFileBase.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef _MSC_VER</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#include &lt;inttypes.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#endif</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="keyword">namespace </span>hippodraw {
<a name="l00026"></a>00026 
<a name="l00039"></a><a class="code" href="classhippodraw_1_1FitsFile.html">00039</a> <span class="keyword">class </span><a class="code" href="classhippodraw_1_1FitsFile.html" title="Wrapper class to CFITSIO.">FitsFile</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1FitsFileBase.html" title="A base class for the concrete classes that wrap the cfitsio library.">FitsFileBase</a> {
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="keyword">private</span>:
<a name="l00042"></a>00042 
<a name="l00046"></a>00046   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a352148cbfab7917c0c269dc4ecd1c2f7" title="Fills the vector v from a table column.">fillFromTableColumn</a> ( std::vector &lt; double &gt; &amp; v, 
<a name="l00047"></a>00047                             <span class="keywordtype">int</span> <a class="code" href="namespacehippodraw_1_1DataPoint2DTuple.html#ae78e6e11a40e6dba1bae097358f97d15" title="The column indices for 2 dimension data point tuple.">column</a> );
<a name="l00048"></a>00048   
<a name="l00053"></a>00053   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a786d481db05fbbf51622060e25ba6dfc" title="Fills the vector vec from an image HDU.">fillFromImage</a> ( std::vector &lt; double &gt; &amp; <a class="codeRef" doxygen="Minuit.tag:http://seal.web.cern.ch/seal/MathLibs/Minuit/html/" href="http://seal.web.cern.ch/seal/MathLibs/Minuit/html/classvec.html">vec</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> axis );
<a name="l00054"></a>00054 
<a name="l00058"></a>00058   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a20d6c304f6ee8a74ac399037feb6db8f" title="Clears and fills the vector with the column labels of binary or ASCII table.">fillColumnNamesFromTable</a> ( std::vector &lt; std::string &gt; &amp; labels );
<a name="l00059"></a>00059 
<a name="l00062"></a>00062   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a7ac9de0c699a9c87df7ee35606078152" title="Clears and fills the vector with the column labels of a image.">fillColumnNamesFromImage</a> ( std::vector &lt; std::string &gt; &amp; labels );
<a name="l00063"></a>00063 
<a name="l00079"></a>00079   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a952e2d2261656fc496777e16912337fb" title="Read elements from an ASCII or binary table column (in the CDU) and fill STL vector&amp;lt;int&amp;gt;...">fillIntVectorFromColumn</a> ( std::vector &lt; int &gt; &amp; vec, <span class="keywordtype">int</span> column );
<a name="l00080"></a>00080 
<a name="l00081"></a>00081  <span class="keyword">public</span>:
<a name="l00082"></a>00082 
<a name="l00084"></a>00084   <a class="code" href="classhippodraw_1_1FitsFile.html#a5f5de83a9183d19a19be8a98a35db170" title="Public construction taking a filename as argument.">FitsFile</a> ( <span class="keyword">const</span> std::string &amp; filename , <span class="keywordtype">bool</span> <a class="code" href="namespacehippodraw_1_1Numeric.html#a339393d88f1319ad9ae63afad77ec304" title="Given the vector it writes it to std stream.">write</a> = <span class="keyword">false</span> );
<a name="l00085"></a>00085 
<a name="l00089"></a>00089   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a106a4fe1d1254143ca8acfad9d90ea23" title="Clears and fills the vector with the HDU names.">fillHDUNames</a> ( std::vector &lt; std::string &gt; &amp; names );
<a name="l00090"></a>00090 
<a name="l00094"></a>00094   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1FitsFile.html#afc54a1da0a703ad834634e38002cd7b0" title="Clears and fills the vector with the column labels of the current HDU table.">fillColumnNames</a> ( std::vector &lt; std::string &gt; &amp; labels );
<a name="l00095"></a>00095 
<a name="l00113"></a>00113   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a17b131b757e3540fbe3cd2a61ba3ca94" title="Read elements from an ASCII or binary table column (in the CDU) and fill the vector...">fillDoubleVectorFromColumn</a> ( std::vector &lt; double &gt; &amp;vec,
<a name="l00114"></a>00114                                    <span class="keywordtype">int</span> column );
<a name="l00115"></a>00115 
<a name="l00120"></a>00120   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1FitsFile.html#af1b4314998e48919a461f779f7608de3" title="Clears and fills the vector vec with the size of each dimension of an image.">fillAxisSizes</a> ( std::vector &lt; long &gt; &amp; vec ) <span class="keyword">const</span>;
<a name="l00121"></a>00121 
<a name="l00127"></a>00127   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a43d04e98396c75374162531e5f14065a" title="Fills the vector with the shape of the column.">fillShape</a> ( std::vector &lt; intptr_t &gt; &amp; <a class="code" href="namespacenum__util.html#a8570d9b34e8e9d714823c1b1986764f7">shape</a>, <span class="keywordtype">int</span> column );
<a name="l00128"></a>00128 
<a name="l00132"></a>00132   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a86a0d45b3169ca9c06d5bb0c359ecffb" title="Clears and fills the vector with the delta values of an image.">fillImageDeltas</a> ( std::vector &lt; double &gt; &amp; deltas ) <span class="keyword">const</span>;
<a name="l00133"></a>00133 
<a name="l00137"></a>00137   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a8ebf43586ceea7791630f4ca1dbdc432" title="Clears and fills the vector with the reference pixel&amp;#39;s indexes.">fillRefPixelIndices</a> ( std::vector &lt; int &gt; &amp; indices ) <span class="keyword">const</span>;
<a name="l00138"></a>00138 
<a name="l00142"></a>00142   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a5a5862c0df1c0290af9fb24a4a28439d" title="Clears and fills the vector with the reference pixel&amp;#39;s values.">fillRefPixelValues</a> ( std::vector &lt; double &gt; &amp; values ) <span class="keyword">const</span>;
<a name="l00143"></a>00143 
<a name="l00147"></a>00147   <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a3ecbe00e1419aab8771052b080fe2c45" title="Returns true if coordinate system of the axis is should undergo Hammer-Aitoff transformation...">isHammerAitoff</a> () <span class="keyword">const</span>;
<a name="l00148"></a>00148 
<a name="l00149"></a>00149   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a96b37b4edb90bb374357a4e357ffd2ea">writeHDU</a> ( <span class="keywordtype">long</span> rows, <span class="keywordtype">int</span> columns, 
<a name="l00150"></a>00150                   <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; names,
<a name="l00151"></a>00151                   <span class="keyword">const</span> std::vector &lt; std::vector &lt; int &gt; &gt; &amp; shapes,
<a name="l00152"></a>00152                   <span class="keyword">const</span> std::string &amp; extname );
<a name="l00153"></a>00153 
<a name="l00154"></a>00154   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#afb56c024bd0720f1d5a7a1c725a047d1">writeImageHDU</a> ( <span class="keywordtype">long</span> x, <span class="keywordtype">long</span> y );
<a name="l00155"></a>00155 
<a name="l00158"></a>00158   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#acf27e827fc30fcbf1141ccfdc3c74717" title="Writes the vector to FITS table.">writeColumn</a> ( <span class="keywordtype">int</span> c, <span class="keyword">const</span> std::vector &lt; double &gt; &amp; <a class="code" href="namespacenum__util.html#a0c664ca7e08d03a2b3275f4f35efa933">data</a> );
<a name="l00159"></a>00159 
<a name="l00160"></a>00160   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a9387030f53af304c15f4d57a38148345">writePix</a> ( <span class="keywordtype">long</span> x, <span class="keywordtype">long</span> y,
<a name="l00161"></a>00161                   <span class="keyword">const</span> std::vector &lt;double &gt; &amp; data );
<a name="l00162"></a>00162 
<a name="l00163"></a>00163   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#a26172babd803fefd59436a62039f1a06">writeCloseFile</a> ();
<a name="l00164"></a>00164 
<a name="l00165"></a>00165   <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1FitsFile.html#af324cf8e9791896afbdff12683ae69f1">pixCenter</a> () <span class="keyword">const</span>;
<a name="l00166"></a>00166 
<a name="l00167"></a>00167   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FitsFile.html#ae517f0dc78993e393ae1040cc0cd4083">writeRefPixelValues</a> ( <span class="keywordtype">double</span> value1, <span class="keywordtype">double</span> value2 );
<a name="l00168"></a>00168 
<a name="l00169"></a>00169 };
<a name="l00170"></a>00170 
<a name="l00171"></a>00171 } <span class="comment">// namespace hippodraw</span>
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 <span class="preprocessor">#endif // _FitsFile_h</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>