source: Sophya/trunk/SophyaLib/SkyMap/skymapinit.cc@ 4081

Last change on this file since 4081 was 4066, checked in by ansari, 13 years ago

Ajout gestion de niveau d'impression globale pour les cartes du module SkyMap ds pixelmap.h et prise en compte du niveau pour les prints ds Resize des SphericalMaps (fait en janv 2012 ?), Reza 27/04/2012

File size: 3.7 KB
Line 
1// Classe d'initialisation du module Outils++
2#include "sopnamsp.h"
3#include "machdefs.h"
4#include "skymapinit.h"
5
6#include <unistd.h>
7#include "spherethetaphi.h"
8#include "fiospherehealpix.h"
9#include "fiospherethetaphi.h"
10#include "fiolocalmap.h"
11#include "fiosphereecp.h"
12
13/*!
14 \defgroup SkyMap SkyMap module
15 This module contains classes for handling partial and full sky (spherical) maps
16*/
17
18/*!
19 \class SOPHYA::SkyMapInitiator
20 \ingroup SkyMap
21 Class handling initialization for module SkyMap
22*/
23
24int SkyMapInitiator::FgInit = 0;
25
26// Module version number - 1.6, Jul 06
27// V=1.61 , Fev 2007: Ajout RenewObjId() pour SphereHealPix,ThetaPhi,ECP,LocalMap
28// V=1.62 , Aou 2007: correction ds LocalMap::PixToSphereC()
29// V=1.7 , Aou 2010
30// V=1.72 , Avr 2012
31#define MOD_VERS 1.72
32
33SkyMapInitiator::SkyMapInitiator()
34 : SophyaInitiator()
35{
36 FgInit++;
37 if (FgInit > 1) return;
38
39// Enregistrement des classes PPersist du module SkyMap
40
41 // ---------- Les SphereThetaPhi ---------
42
43 PPRegister(FIO_SphereCoordSys);
44 DObjRegister(FIO_SphereCoordSys, SphereCoordSys);
45
46 PPRegister(FIO_SphereThetaPhi<int_4>);
47 DObjRegister(FIO_SphereThetaPhi<int_4>, SphereThetaPhi<int_4>);
48
49 PPRegister(FIO_SphereThetaPhi<r_4>);
50 DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>);
51
52 PPRegister(FIO_SphereThetaPhi<r_8>);
53 DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>);
54
55 PPRegister(FIO_SphereThetaPhi< complex<r_4> >);
56 DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >);
57
58 PPRegister(FIO_SphereThetaPhi< complex<r_8> >);
59 DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >);
60
61
62 // ---------- Les SphereHEALPix ---------
63
64 PPRegister(FIO_SphereHEALPix<uint_2>);
65 DObjRegister(FIO_SphereHEALPix<uint_2>, SphereHEALPix<uint_2>);
66
67 PPRegister(FIO_SphereHEALPix<int_4>);
68 DObjRegister(FIO_SphereHEALPix<int_4>, SphereHEALPix<int_4>);
69
70 PPRegister(FIO_SphereHEALPix<r_4>);
71 DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>);
72
73 PPRegister(FIO_SphereHEALPix<r_8>);
74 DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>);
75
76 PPRegister(FIO_SphereHEALPix< complex<r_4> >);
77 DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >);
78
79 PPRegister(FIO_SphereHEALPix< complex<r_8> >);
80 DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >);
81
82 // ------------ Les LocalMap ---------
83 PPRegister(FIO_LocalMap<int_4>);
84 DObjRegister(FIO_LocalMap<int_4>, LocalMap<int_4>);
85
86 PPRegister(FIO_LocalMap<r_4>);
87 DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
88
89 PPRegister(FIO_LocalMap<r_8>);
90 DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
91
92 PPRegister(FIO_LocalMap< complex<r_4> >);
93 DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
94
95 PPRegister(FIO_LocalMap< complex<r_8> >);
96 DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
97
98 // ---------- Les SphereECP ---------
99
100 PPRegister(FIO_SphereECP<int_4>);
101 DObjRegister(FIO_SphereECP<int_4>, SphereECP<int_4>);
102
103 PPRegister(FIO_SphereECP<r_4>);
104 DObjRegister(FIO_SphereECP<r_4>, SphereECP<r_4>);
105
106 PPRegister(FIO_SphereECP<r_8>);
107 DObjRegister(FIO_SphereECP<r_8>, SphereECP<r_8>);
108
109 PPRegister(FIO_SphereECP< complex<r_4> >);
110 DObjRegister(FIO_SphereECP< complex<r_4> >, SphereECP< complex<r_4> >);
111
112 PPRegister(FIO_SphereECP< complex<r_8> >);
113 DObjRegister(FIO_SphereECP< complex<r_8> >, SphereECP< complex<r_8> >);
114
115 SophyaInitiator::RegisterModule("SkyMap", MOD_VERS); // Module name and version number registration
116}
117
118SkyMapInitiator::~SkyMapInitiator()
119{
120 FgInit--;
121}
122
123
124// On met un objet initiator en statique, pour les loaders qui savent
125// appeler le constructeur des objets statiques Reza 08/98
126static SkyMapInitiator s_sskymapinit_;
127
128
Note: See TracBrowser for help on using the repository browser.