Skip to content

Commit

Permalink
Cosmetic fixes for DSO
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed May 19, 2018
1 parent dc44813 commit 443a1af
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions nebulae/default/names.dat
Original file line number Diff line number Diff line change
Expand Up @@ -1058,8 +1058,8 @@ ACO S373 _("Fornax Cluster") # NED, WP, BCH, WSO, WSG
ACO S737 _("Fornax Group") # SIMBAD
ACO S737 _("NGC 1399 Group") # WP, SIMBAD
ACO S636 _("Antlia Cluster") # NED, WP
18 _("Calabash Nebula")
18 _("Rotten Egg Nebula")
18 _("Calabash Nebula") # WP
18 _("Rotten Egg Nebula") # WP
19 _("Frosty Leo Nebula")
20 _("Gomez's Hamburger")
21 _("Cotton Candy Nebula")
Expand Down
26 changes: 13 additions & 13 deletions src/core/modules/Nebula.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ Vec3f Nebula::supernovaCandidateColor = Vec3f(0.1f,1.0f,0.1f);
Vec3f Nebula::supernovaRemnantCandidateColor = Vec3f(0.1f,1.0f,0.1f);
Vec3f Nebula::galaxyClusterColor = Vec3f(0.8f,0.8f,0.5f);
bool Nebula::flagUseTypeFilters = false;
Nebula::CatalogGroup Nebula::catalogFilters = Nebula::CatalogGroup(0);
Nebula::CatalogGroup Nebula::catalogFilters = Nebula::CatalogGroup(Q_NULLPTR);
Nebula::TypeGroup Nebula::typeFilters = Nebula::TypeGroup(Nebula::AllTypes);
bool Nebula::flagUseArcsecSurfaceBrightness = false;
bool Nebula::flagUseShortNotationSurfaceBrightness = true;
bool Nebula::flagUseOutlines = false;
bool Nebula::flagShowAdditionalNames = true;
bool Nebula::flagUseSizeLimits = false;
double Nebula::minSizeLimit = 1.0f;
double Nebula::maxSizeLimit = 600.0f;
double Nebula::minSizeLimit = 1.0;
double Nebula::maxSizeLimit = 600.0;

Nebula::Nebula()
: DSO_nb(0)
Expand Down Expand Up @@ -815,7 +815,7 @@ void Nebula::drawHints(StelPainter& sPainter, float maxMagHints) const
case NebBLA:
case NebRGx:
case NebGxCl:
if (finalSize > 35.0)
if (finalSize > 35.f)
Nebula::texGalaxyLarge->bind();
else
Nebula::texGalaxy->bind();
Expand All @@ -824,15 +824,15 @@ void Nebula::drawHints(StelPainter& sPainter, float maxMagHints) const
case NebSA:
case NebSC:
case NebCl:
if (finalSize > 75.0)
if (finalSize > 75.f)
Nebula::texOpenClusterXLarge->bind();
else if (finalSize > 35.0)
else if (finalSize > 35.f)
Nebula::texOpenClusterLarge->bind();
else
Nebula::texOpenCluster->bind();
break;
case NebGc:
if (finalSize > 35.0)
if (finalSize > 35.f)
Nebula::texGlobularClusterLarge->bind();
else
Nebula::texGlobularCluster->bind();
Expand All @@ -847,9 +847,9 @@ void Nebula::drawHints(StelPainter& sPainter, float maxMagHints) const
case NebEn:
case NebSNC:
case NebSNRC:
if (finalSize > 75.0)
if (finalSize > 75.f)
Nebula::texDiffuseNebulaXLarge->bind();
else if (finalSize > 35.0)
else if (finalSize > 35.f)
Nebula::texDiffuseNebulaLarge->bind();
else
Nebula::texDiffuseNebula->bind();
Expand All @@ -860,13 +860,13 @@ void Nebula::drawHints(StelPainter& sPainter, float maxMagHints) const
Nebula::texPlanetaryNebula->bind();
break;
case NebDn:
if (finalSize > 35.0)
if (finalSize > 35.f)
Nebula::texDarkNebulaLarge->bind();
else
Nebula::texDarkNebula->bind();
break;
case NebCn:
if (finalSize > 35.0)
if (finalSize > 35.f)
Nebula::texOpenClusterWithNebulosityLarge->bind();
else
Nebula::texOpenClusterWithNebulosity->bind();
Expand All @@ -876,7 +876,7 @@ void Nebula::drawHints(StelPainter& sPainter, float maxMagHints) const
//case NebSymbioticStar:
//case NebEmissionLineStar:
default:
if (finalSize > 35.0)
if (finalSize > 35.f)
Nebula::texCircleLarge->bind();
else
Nebula::texCircle->bind();
Expand All @@ -901,7 +901,7 @@ void Nebula::drawHints(StelPainter& sPainter, float maxMagHints) const
XYZrel[2]*=0.99;
Vec3d XYrel;
sPainter.getProjector()->project(XYZrel, XYrel);
float screenAngle=atan2(XYrel[1]-XY[1], XYrel[0]-XY[0]);
float screenAngle = atan2(XYrel[1]-XY[1], XYrel[0]-XY[0]);
sPainter.drawSprite2dMode(XY[0], XY[1], finalSize, screenAngle*180./M_PI + orientationAngle);
}
else // no galaxy
Expand Down

0 comments on commit 443a1af

Please sign in to comment.