AIR.cxx
Go to the documentation of this file.
1 
12 #include "AIR.h"
13 #include "UnaryTransform.h"
14 
15 using namespace hippodraw;
16 
17 
19  : PeriodicBinaryTransform ( z, true, true, false, true,
20  -180.0, +180.0,
21  - 90.0, + 90.0 )
22 {
23  m_name = "AIR";
24  const std::string projType("AIR");
25  double crpix[] = {0, 90}, crval[] = {0,90}, cdelt[] = {1,1};
26  initwcs (projType, crpix, crval, cdelt, 0, false);
27 }
28 
29 AIR::AIR ( const AIR & t )
31 {
32  const std::string projType("AIR");
33  double crpix[] = {0, 90}, crval[] = {0,90}, cdelt[] = {1,1};
34  initwcs (projType, crpix, crval, cdelt, 0, false);
35 }
36 
38 {
39 }
40 
41 #ifdef CLONE_DEFECT
42 TransformBase * AIR::clone () const
43 #else
44 AIR * AIR::clone () const
45 #endif
46 {
47  return new AIR ( *this );
48 }
49 
50 
51 
52 /* virtual */
53 double AIR::aspectRatio () const
54 {
55  return 1.0;
56 }
57 
58 
59 
void initwcs(const std::string &transformName, double *crpix, double *crval, double *cdelt, double crota2, bool galactic)
Initialize the WCS transform type.
AIR class interface.
A transform that transforms coordinates from one coordinate system to another.
Definition: TransformBase.h:35
UnaryTransform class interface.
virtual double aspectRatio() const
Returns the aspect ratio.
Definition: AIR.cxx:53
virtual AIR * clone() const
Creates a new Transform object by copying an existing one.
Definition: AIR.cxx:44
A Periodic transform that transforms coordinates from one 2D coordinate system to another...
A transform that performs the AIR projection.
Definition: AIR.h:24
std::string m_name
Name of the Transform.
Definition: TransformBase.h:42
virtual ~AIR()
The virtual destructor.
Definition: AIR.cxx:37
AIR(UnaryTransform *z)
The constructor.
Definition: AIR.cxx:18
A transform that transforms coordinates in one dimension from one coordinate system to another...

Generated for HippoDraw Class Library by doxygen