diff options
author | Georg Zotti <Georg.Zotti@univie.ac.at> | 2023-10-15 11:36:29 +0200 |
---|---|---|
committer | Georg Zotti <Georg.Zotti@univie.ac.at> | 2023-10-15 11:36:29 +0200 |
commit | 70958540675d412c9ed105dbd2f0c207a2391aae (patch) | |
tree | 594e0e4d7a31a6ff9b55ce4e30c648a3590444dd | |
parent | b0054b8b61cf49ffe4abf6e7e467ad8a92d815c0 (diff) |
Inhibit planet hint&labelsGZ_star_trails
Inhibit star labels
Inhibit Gridlines and Nebula hints/labels
Reactivate Landscape
-rw-r--r-- | src/core/StelApp.cpp | 4 | ||||
-rw-r--r-- | src/core/modules/Planet.cpp | 9 | ||||
-rw-r--r-- | src/core/modules/ZoneArray.cpp | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/src/core/StelApp.cpp b/src/core/StelApp.cpp index c5b683a2b1..efc7fe96dd 100644 --- a/src/core/StelApp.cpp +++ b/src/core/StelApp.cpp @@ -985,7 +985,7 @@ void StelApp::highGraphicsModeDraw() else for (auto* module : modules) { - if (! QStringList({"MilkyWay", "ZodiacalLight", "LandscapeMgr", "GridlinesMgr"}).contains(module->objectName())) + if (! QStringList({"MilkyWay", "ZodiacalLight", "GridLinesMgr", "NebulaMgr"}).contains(module->objectName())) module->draw(core); } @@ -1066,7 +1066,7 @@ void StelApp::draw() else for (auto* module : modules) { - if (! QStringList({"MilkyWay", "ZodiacalLight", "LandscapeMgr", "GridlinesMgr"}).contains(module->objectName())) + if (! QStringList({"MilkyWay", "ZodiacalLight", "GridLinesMgr", "NebulaMgr"}).contains(module->objectName())) module->draw(core); } } diff --git a/src/core/modules/Planet.cpp b/src/core/modules/Planet.cpp index d227535f5d..fbd75b31e4 100644 --- a/src/core/modules/Planet.cpp +++ b/src/core/modules/Planet.cpp @@ -3082,11 +3082,12 @@ void Planet::draw(StelCore* core, float maxMagLabels, const QFont& planetNameFon // by putting here, only draw orbit if Planet is visible for clarity drawOrbit(core); // TODO - fade in here also... - if (flagLabels && ang_dist>0.25f && maxMagLabels>getVMagnitudeWithExtinction(core)) + if (flagLabels && ang_dist>0.25f && maxMagLabels>getVMagnitudeWithExtinction(core) && core->getFlagClearSky()) labelsFader=true; else labelsFader=false; - drawHints(core, planetNameFont); + if (core->getFlagClearSky()) + drawHints(core, planetNameFont); draw3dModel(core,transfo,static_cast<float>(screenRd)); } @@ -3624,7 +3625,7 @@ void Planet::draw3dModel(StelCore* core, StelProjector::ModelViewTranformP trans } // Draw the halo if it enabled in the ssystem.ini file (+ special case for backward compatible for the Sun) - if (isSun && drawSunHalo && core->getSkyDrawer()->getFlagEarlySunHalo()) + if (isSun && drawSunHalo && core->getSkyDrawer()->getFlagEarlySunHalo() && core->getFlagClearSky()) { // Prepare openGL lighting parameters according to luminance float surfArcMin2 = static_cast<float>(getSpheroidAngularRadius(core))*60.f; @@ -3761,7 +3762,7 @@ void Planet::draw3dModel(StelCore* core, StelProjector::ModelViewTranformP trans #endif } - bool allowDrawHalo = !isSun || !core->getSkyDrawer()->getFlagEarlySunHalo(); // We had drawn the sun already before the sphere. + bool allowDrawHalo = core->getFlagClearSky() && ( !isSun || !core->getSkyDrawer()->getFlagEarlySunHalo()); // We had drawn the sun already before the sphere. if (!isSun && !isMoon && currentLocationIsEarth) { // Let's hide halo when inner planet between Sun and observer (or moon between planet and observer). diff --git a/src/core/modules/ZoneArray.cpp b/src/core/modules/ZoneArray.cpp index 862c80bd7f..acd22f7e35 100644 --- a/src/core/modules/ZoneArray.cpp +++ b/src/core/modules/ZoneArray.cpp @@ -490,7 +490,7 @@ void SpecialZoneArray<Star>::draw(StelPainter* sPainter, int index, bool isInsid twinkleFactor=qMin(1.0f, 1.0f-0.9f*altAz[2]); // suppress twinkling in higher altitudes. Keep 0.1 twinkle amount in zenith. } - if (drawer->drawPointSource(sPainter, vf.toVec3d(), *tmpRcmag, s->getBVIndex(), !isInsideViewport, twinkleFactor) && s->hasName() && extinctedMagIndex < maxMagStarName && s->hasComponentID()<=1) + if (drawer->drawPointSource(sPainter, vf.toVec3d(), *tmpRcmag, s->getBVIndex(), !isInsideViewport, twinkleFactor) && core->getFlagClearSky() && s->hasName() && extinctedMagIndex < maxMagStarName && s->hasComponentID()<=1) { const float offset = tmpRcmag->radius*0.7f; const Vec3f colorr = StelSkyDrawer::indexToColor(s->getBVIndex())*0.75f; |