GWcsCAR.hpp
2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/***************************************************************************
* GWcsCAR.hpp - Cartesian projection class *
* ----------------------------------------------------------------------- *
* copyright (C) 2010 by Jurgen Knodlseder *
* ----------------------------------------------------------------------- *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/**
* @file GWcsCAR.hpp
* @brief GWcsCAR class definition.
* @author J. Knodlseder
*/
#ifndef GWCSCAR_HPP
#define GWCSCAR_HPP
/* __ Includes ___________________________________________________________ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GWcs.hpp"
#include "GSkyDir.hpp"
#include "GSkyPixel.hpp"
/***********************************************************************//**
* @class GWcsCAR
*
* @brief GWcsCAR class interface defintion
***************************************************************************/
class GWcsCAR : public GWcs {
// I/O friends
friend std::ostream& operator<< (std::ostream& os, const GWcsCAR& wcs);
public:
// Constructors and destructors
GWcsCAR(void);
GWcsCAR(const std::string& coords,
const double& crval1, const double& crval2,
const double& crpix1, const double& crpix2,
const double& cdelt1, const double& cdelt2,
const GMatrix& cd, const GVector& pv2);
explicit GWcsCAR(const GFitsHDU* hdu);
GWcsCAR(const GWcsCAR& wcs);
virtual ~GWcsCAR(void);
// Operators
GWcsCAR& operator= (const GWcsCAR& wcs);
// Implemented pure virtual methods
void read(const GFitsHDU* hdu);
void write(GFitsHDU* hdu) const;
// Overloaded base class methods
double omega(const GSkyPixel& pix) const;
private:
// Private methods
void init_members(void);
void copy_members(const GWcsCAR& wcs);
void free_members(void);
GWcsCAR* clone(void) const;
void std2nat(GVector *coord) const;
void nat2std(GVector *coord) const;
// Private data area
};
#endif /* GWCSCAR_HPP */