[Kst] extragear/graphics/kst/kst/datasources/healpix

Ted Kisner tskisner.public at gmail.com
Sun Oct 30 05:39:34 CET 2005


SVN commit 475658 by tskisner:

Disable all coordinates except RA/DEC for now

 M  +14 -8     healpix.cpp  


--- trunk/extragear/graphics/kst/kst/datasources/healpix/healpix.cpp #475657:475658
@@ -34,10 +34,15 @@
 
 #define DEFAULT_XDIM 800
 #define DEFAULT_YDIM 600
-#define HPUNIT_RAD 0
-#define HPUNIT_DEG 1
-#define HPUNIT_RADEC 2
-#define HPUNIT_LATLON 3
+//FIXME change to this order once we have a renderer
+//#define HPUNIT_RAD 0
+//#define HPUNIT_DEG 1
+//#define HPUNIT_RADEC 2
+//#define HPUNIT_LATLON 3
+#define HPUNIT_RAD 2
+#define HPUNIT_DEG 3
+#define HPUNIT_RADEC 0
+#define HPUNIT_LATLON 1
  
 HealpixSource::HealpixSource(KConfig *cfg, const QString& filename, const QString& type)
 : KstDataSource(cfg, filename, type) {
@@ -846,7 +851,7 @@
       break;
     case HPUNIT_LATLON: 
       phi *= 180.0/HEALPIX_PI;
-      if (phi > 180.0) {
+      if (phi >= 180.0) {
         phi -= 360.0;
       }
       break;
@@ -959,10 +964,11 @@
 
     virtual void load() {
       QStringList unitList;
-      unitList.append("(Radians)");
-      unitList.append("(Degrees)");
+      //FIXME add back in when we have a renderer
+      //unitList.append("(Radians)");
+      //unitList.append("(Degrees)");
       unitList.append("(RA/DEC)");
-      unitList.append("(Lat/Long)");
+      //unitList.append("(Lat/Long)");
       _cfg->setGroup("Healpix General");
       _hc->matThetaUnits->clear();
       _hc->matPhiUnits->clear();


More information about the Kst mailing list