[Kst] extragear/graphics/kst/kst/datasources/healpix
Ted Kisner
tskisner.public at gmail.com
Tue Nov 1 23:10:11 CET 2005
SVN commit 476741 by tskisner:
Remove debug statements and do internal name change for vector components.
M +11 -16 healpix.cpp
--- trunk/extragear/graphics/kst/kst/datasources/healpix/healpix.cpp #476740:476741
@@ -79,10 +79,8 @@
_vecTheta = 0;
_vecPhi = 0;
_vecQU = false;
- kstdDebug() << "HEALPIX: Calling loadConfig from constructor" << endl;
loadConfig(cfg);
if (!e.isNull()) {
- kstdDebug() << "HEALPIX: Calling load from constructor" << endl;
load(e);
}
@@ -164,7 +162,6 @@
healpix_strarr_free(_names, HEALPIX_FITS_MAXCOL);
healpix_strarr_free(_units, HEALPIX_FITS_MAXCOL);
}
- kstdDebug() << "HEALPIX: constructor finished" << endl;
}
}
@@ -704,9 +701,9 @@
_phiMin = mapMinPhi;
_phiMax = mapMaxPhi;
}
- kstdDebug() << "HEALPIX autorange is Theta=[" << mapMinTheta << "..." << mapMaxTheta << "] Phi=[" << mapMinPhi << "..." << mapMaxPhi << "]" << endl;
+ //kstdDebug() << "HEALPIX autorange is Theta=[" << mapMinTheta << "..." << mapMaxTheta << "] Phi=[" << mapMinPhi << "..." << mapMaxPhi << "]" << endl;
}
- kstdDebug() << "HEALPIX using range Theta=[" << _thetaMin << "..." << _thetaMax << "] Phi=[" << _phiMin << "..." << _phiMax << "]" << endl;
+ //kstdDebug() << "HEALPIX using range Theta=[" << _thetaMin << "..." << _thetaMax << "] Phi=[" << _phiMin << "..." << _phiMax << "]" << endl;
// copy sphere data to matrix.
@@ -754,7 +751,7 @@
theta2External(_thetaUnits, tMax);
phi2External(_phiUnits, pMin);
phi2External(_phiUnits, pMax);
- kstdDebug() << "HEALPIX exported range Theta=[" << tMin << "..." << tMax << "] Phi=[" << pMin << "..." << pMax << "]" << endl;
+ //kstdDebug() << "HEALPIX exported range Theta=[" << tMin << "..." << tMax << "] Phi=[" << pMin << "..." << pMax << "]" << endl;
switch (_thetaUnits) {
case HPUNIT_RAD: case HPUNIT_DEG:
@@ -862,7 +859,7 @@
QDomElement e = n.toElement();
if (!e.isNull()) {
if (e.tagName() == "dim") {
- kstdDebug() << "HEALPIX: loading dim tag" << endl;
+ //kstdDebug() << "HEALPIX: loading dim tag" << endl;
if (e.hasAttribute("x")) {
_nX = e.attribute("x").toInt();
}
@@ -870,7 +867,7 @@
_nX = e.attribute("y").toInt();
}
} else if (e.tagName() == "theta") {
- kstdDebug() << "HEALPIX: loading theta tag" << endl;
+ //kstdDebug() << "HEALPIX: loading theta tag" << endl;
if (e.hasAttribute("auto")) {
_autoTheta = e.attribute("auto").toInt();
}
@@ -884,7 +881,7 @@
_thetaMax = e.attribute("max").toDouble();
}
} else if (e.tagName() == "phi") {
- kstdDebug() << "HEALPIX: loading phi tag" << endl;
+ //kstdDebug() << "HEALPIX: loading phi tag" << endl;
if (e.hasAttribute("auto")) {
_autoPhi = e.attribute("auto").toInt();
}
@@ -898,7 +895,7 @@
_phiMax = e.attribute("max").toDouble();
}
} else if (e.tagName() == "vector") {
- kstdDebug() << "HEALPIX: loading vector tag" << endl;
+ //kstdDebug() << "HEALPIX: loading vector tag" << endl;
if (e.hasAttribute("auto")) {
_autoMag = e.attribute("auto").toInt();
}
@@ -925,7 +922,6 @@
QString indent = " ";
QTextStream ts(&str, IO_WriteOnly);
save(ts, indent);
- kstdDebug() << str << endl;
return;
}
@@ -1149,8 +1145,8 @@
_hc->matPhiUnits->setCurrentItem(_cfg->readNumEntry("Phi Units", 2));
_hc->matPhiMin->setText(_cfg->readEntry("Phi Min", QString::null));
_hc->matPhiMax->setText(_cfg->readEntry("Phi Max", QString::null));
- _hc->vecTheta->setCurrentItem(_cfg->readNumEntry("Vector Comp1", 0));
- _hc->vecPhi->setCurrentItem(_cfg->readNumEntry("Vector Comp2", 0));
+ _hc->vecTheta->setCurrentItem(_cfg->readNumEntry("Vector Theta", 0));
+ _hc->vecPhi->setCurrentItem(_cfg->readNumEntry("Vector Phi", 0));
_hc->vecDegrade->setValue(_cfg->readNumEntry("Vector Degrade Factor", 1));
_hc->vecMagAuto->setChecked(_cfg->readBoolEntry("Vector Magnitude Autoscale", true));
_hc->vecMag->setText(_cfg->readEntry("Vector Max Magnitude", QString::null));
@@ -1174,8 +1170,8 @@
_hc->matPhiUnits->setCurrentItem(_cfg->readNumEntry("Phi Units", 0));
_hc->matPhiMin->setText(_cfg->readEntry("Phi Min", QString::null));
_hc->matPhiMax->setText(_cfg->readEntry("Phi Max", QString::null));
- _hc->vecTheta->setCurrentItem(_cfg->readNumEntry("Vector Comp1", 0));
- _hc->vecPhi->setCurrentItem(_cfg->readNumEntry("Vector Comp2", 0));
+ _hc->vecTheta->setCurrentItem(_cfg->readNumEntry("Vector Theta", 0));
+ _hc->vecPhi->setCurrentItem(_cfg->readNumEntry("Vector Phi", 0));
_hc->vecDegrade->setValue(_cfg->readNumEntry("Vector Degrade Factor", 1));
_hc->vecMagAuto->setChecked(_cfg->readBoolEntry("Vector Magnitude Autoscale", true));
_hc->vecMag->setText(_cfg->readEntry("Vector Max Magnitude", QString::null));
@@ -1230,7 +1226,6 @@
}
KstDataSource *load_healpix(KConfig *cfg, const QString& filename, const QString& type, const QDomElement& e) {
- kstdDebug() << "HEALPIX: Calling load_healpix " << filename << endl;
return new HealpixSource(cfg, filename, type, e);
}
More information about the Kst
mailing list