ZodiacalLight.cpp   ZodiacalLight.cpp 
skipping to change at line 37 skipping to change at line 37
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
#include "LandscapeMgr.hpp" #include "LandscapeMgr.hpp"
#include "StelProjector.hpp" #include "StelProjector.hpp"
#include "StelToneReproducer.hpp" #include "StelToneReproducer.hpp"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelTextureMgr.hpp" #include "StelTextureMgr.hpp"
#include "StelCore.hpp" #include "StelCore.hpp"
#include "StelSkyDrawer.hpp" #include "StelSkyDrawer.hpp"
#include "StelPainter.hpp" #include "StelPainter.hpp"
#include "StelTranslator.hpp"
#include <QDebug> #include <QDebug>
#include <QSettings> #include <QSettings>
// Class which manages the displaying of the Zodiacal Light // Class which manages the displaying of the Zodiacal Light
ZodiacalLight::ZodiacalLight() ZodiacalLight::ZodiacalLight()
: color(1.f, 1.f, 1.f) : color(1.f, 1.f, 1.f)
, intensity(1.) , intensity(1.)
, lastJD(-1.0E6) , lastJD(-1.0E6)
, vertexArray() , vertexArray()
skipping to change at line 78 skipping to change at line 79
tex = StelApp::getInstance().getTextureManager().createTexture(StelF ileMgr::getInstallationDir()+"/textures/zodiacallight_2004.png"); tex = StelApp::getInstance().getTextureManager().createTexture(StelF ileMgr::getInstallationDir()+"/textures/zodiacallight_2004.png");
setFlagShow(conf->value("astro/flag_zodiacal_light", true).toBool()) ; setFlagShow(conf->value("astro/flag_zodiacal_light", true).toBool()) ;
setIntensity(conf->value("astro/zodiacal_light_intensity",1.f).toFlo at()); setIntensity(conf->value("astro/zodiacal_light_intensity",1.f).toFlo at());
vertexArray = new StelVertexArray(StelPainter::computeSphereNoLight( 1.f,1.f,60,30,1, true)); // 6x6 degree quads vertexArray = new StelVertexArray(StelPainter::computeSphereNoLight( 1.f,1.f,60,30,1, true)); // 6x6 degree quads
vertexArray->colors.resize(vertexArray->vertex.length()); vertexArray->colors.resize(vertexArray->vertex.length());
vertexArray->colors.fill(Vec3f(1.0, 0.3, 0.9)); vertexArray->colors.fill(Vec3f(1.0, 0.3, 0.9));
eclipticalVertices=vertexArray->vertex; eclipticalVertices=vertexArray->vertex;
// This vector is used to keep original vertices, these will be modi fied in update(). // This vector is used to keep original vertices, these will be modi fied in update().
QString displayGroup = N_("Display Options");
addAction("actionShow_ZodiacalLight", displayGroup, N_("Zodiacal Lig
ht"), "flagZodiacalLightDisplayed", "Ctrl+Shift+Z");
} }
void ZodiacalLight::update(double deltaTime) void ZodiacalLight::update(double deltaTime)
{ {
fader->update((int)(deltaTime*1000)); fader->update((int)(deltaTime*1000));
if (!getFlagShow() || (getIntensity()<0.01) ) if (!getFlagShow() || (getIntensity()<0.01) )
return; return;
StelCore* core=StelApp::getInstance().getCore(); StelCore* core=StelApp::getInstance().getCore();
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 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/