~georg-zotti/stellarium/landscape-addons

« back to all changes in this revision

Viewing changes to src/core/StelSkyDrawer.cpp

  • Committer: georg-zotti
  • Date: 2013-11-25 15:46:53 UTC
  • Revision ID: georg.zotti@univie.ac.at-20131125154653-ylhul5ym11j4bndn
refactored: better naming

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
 
84
84
        bool ok=true;
85
85
 
86
 
        setBortleScale(conf->value("stars/init_bortle_scale",2).toInt(&ok));
 
86
        setBortleScaleIndex(conf->value("stars/init_bortle_scale",2).toInt(&ok));
87
87
        if (!ok)
88
 
                setBortleScale(2);
 
88
                setBortleScaleIndex(2);
89
89
 
90
90
        setRelativeStarScale(conf->value("stars/relative_scale",1.0).toFloat(&ok));
91
91
        if (!ok)
627
627
 
628
628
// Set the parameters so that the stars disapear at about the limit given by the bortle scale
629
629
// See http://en.wikipedia.org/wiki/Bortle_Dark-Sky_Scale
630
 
void StelSkyDrawer::setBortleScale(int bIndex)
 
630
void StelSkyDrawer::setBortleScaleIndex(int bIndex)
631
631
{
632
632
        // Associate the Bortle index (1 to 9) to inScale value
633
633
        if (bIndex<1)