GlobalSinusoidal2.cxx
Go to the documentation of this file.
1 
12 #include "GlobalSinusoidal2.h"
13 #include "UnaryTransform.h"
14 
15 using namespace hippodraw;
16 
17 
19  : PeriodicBinaryTransform ( z, true, true, false, true,
20  0.0, +360.0,
21  - 90.0, + 90.0 )
22 {
23  m_name = "GlobalSinusoidal2";
24  const std::string projType("GLS");
25  double crpix[] = {180, 0}, crval[] = {180,0}, cdelt[] = {1,1};
26  initwcs (projType, crpix, crval, cdelt, 0, false);
27 }
28 
31 {
32  const std::string projType("GLS");
33  double crpix[] = {180, 0}, crval[] = {180,0}, cdelt[] = {1,1};
34  initwcs (projType, crpix, crval, cdelt, 0, false);
35 }
36 
38 {
39 }
40 
41 #ifdef CLONE_DEFECT
43 #else
45 #endif
46 {
47  return new GlobalSinusoidal2 ( *this );
48 }
49 
50 
51 
52 /* virtual */
54 {
55  return 2.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.
A transform that transforms coordinates from one coordinate system to another.
Definition: TransformBase.h:35
virtual GlobalSinusoidal2 * clone() const
Creates a new Transform object by copying an existing one.
UnaryTransform class interface.
Namespace for HippoDraw.
Definition: AxesType.cxx:21
A Periodic transform that transforms coordinates from one 2D coordinate system to another...
virtual ~GlobalSinusoidal2()
The virtual destructor.
A transform that performs the GlobalSinusoidal2 projection.
GlobalSinusoidal2(UnaryTransform *z)
The constructor.
std::string m_name
Name of the Transform.
Definition: TransformBase.h:42
A transform that transforms coordinates in one dimension from one coordinate system to another...
GlobalSinusoidal2 class interface.
virtual double aspectRatio() const
Returns the aspect ratio.

Generated for HippoDraw Class Library by doxygen