Nova.cpp   Nova.cpp 
skipping to change at line 19 skipping to change at line 19
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "config.h"
#include "Nova.hpp" #include "Nova.hpp"
#include "StelObject.hpp" #include "StelObject.hpp"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelCore.hpp" #include "StelCore.hpp"
#include "StelUtils.hpp" #include "StelUtils.hpp"
#include "StelTranslator.hpp" #include "StelTranslator.hpp"
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
#include "StelSkyDrawer.hpp" #include "StelSkyDrawer.hpp"
#include "StarMgr.hpp" #include "StarMgr.hpp"
#include "StelLocaleMgr.hpp" #include "StelLocaleMgr.hpp"
skipping to change at line 173 skipping to change at line 171
Vec3f Nova::getInfoColor(void) const Vec3f Nova::getInfoColor(void) const
{ {
return Vec3f(1.0, 1.0, 1.0); return Vec3f(1.0, 1.0, 1.0);
} }
float Nova::getVMagnitude(const StelCore* core) const float Nova::getVMagnitude(const StelCore* core) const
{ {
// OK, start from minimal brightness // OK, start from minimal brightness
double vmag = minMagnitude; double vmag = minMagnitude;
double currentJD = core->getJDay(); double currentJD = core->getJDay();
double deltaJD = std::abs(peakJD-currentJD); double deltaJD = qAbs(peakJD-currentJD);
// Fill "default" values for mX // Fill "default" values for mX
int t2 = m2; int t2 = m2;
if (m2 < 0) if (m2 < 0)
{ {
// m2 is unset, check type of nova // m2 is unset, check type of nova
if (novaType.contains("NA", Qt::CaseSensitive)) if (novaType.contains("NA", Qt::CaseSensitive))
t2 = 10; // Ok, "fast" nova t2 = 10; // Ok, "fast" nova
if (novaType.contains("NB", Qt::CaseSensitive)) if (novaType.contains("NB", Qt::CaseSensitive))
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/