Merge lp:~georg-zotti/stellarium/stellarium-limitmag into lp:stellarium

Proposed by gzotti
Status: Merged
Merged at revision: 5867
Proposed branch: lp:~georg-zotti/stellarium/stellarium-limitmag
Merge into: lp:stellarium
Diff against target: 1302 lines (+580/-353)
15 files modified
data/default_config.ini (+4/-0)
skycultures/western/star_names.fab (+1/-1)
src/core/StelSkyDrawer.cpp (+8/-0)
src/core/StelSkyDrawer.hpp (+28/-1)
src/core/modules/Nebula.cpp (+51/-20)
src/core/modules/Nebula.hpp (+13/-7)
src/core/modules/NebulaMgr.cpp (+7/-2)
src/core/modules/NebulaMgr.hpp (+4/-1)
src/core/modules/Planet.cpp (+3/-3)
src/core/modules/ZoneArray.cpp (+15/-4)
src/core/modules/ZoneArray.hpp (+3/-3)
src/gui/ConfigurationDialog.cpp (+4/-0)
src/gui/ViewDialog.cpp (+13/-0)
src/gui/viewDialog.ui (+425/-310)
textures/CMakeLists.txt (+1/-1)
To merge this branch: bzr merge lp:~georg-zotti/stellarium/stellarium-limitmag
Reviewer Review Type Date Requested Status
Alexander Wolf Approve
Review via email: mp+151367@code.launchpad.net

Description of the change

New user-defineable limits for stellar and Deep-Sky object brightness, so that no dim objects are displayed on zoom-in. Useful for naked-eye or binocular observers or historical questions.
Values settable on View options GUI.
Also includes some new symbols for deep-sky objects to better discern the object types.

To post a comment you must log in.
Revision history for this message
Alexander Wolf (alexwolf) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/default_config.ini'
--- data/default_config.ini 2013-01-31 13:54:25 +0000
+++ data/default_config.ini 2013-03-02 19:13:21 +0000
@@ -262,6 +262,10 @@
262flag_telescope_name = false262flag_telescope_name = false
263labels_amount = 3.0263labels_amount = 3.0
264nebula_hints_amount = 3.0264nebula_hints_amount = 3.0
265flag_clamp_stellar_mag = false
266clamp_stellar_mag = 6.5
267flag_clamp_dso_mag = false
268clamp_dso_mag = 8.5
265269
266[init_location]270[init_location]
267location = Paris, France271location = Paris, France
268272
=== modified file 'skycultures/western/star_names.fab'
--- skycultures/western/star_names.fab 2011-11-01 16:01:17 +0000
+++ skycultures/western/star_names.fab 2013-03-02 19:13:21 +0000
@@ -139,7 +139,7 @@
139 71683|_("Rigil Kent")139 71683|_("Rigil Kent")
140 72105|_("Izar")140 72105|_("Izar")
141 72487|_("Merga")141 72487|_("Merga")
142 72607|_("Kocab")142 72607|_("Kochab")
143 72622|_("Zubenelgenubi")143 72622|_("Zubenelgenubi")
144 73555|_("Nekkar")144 73555|_("Nekkar")
145 74785|_("Zubeneschamali")145 74785|_("Zubeneschamali")
146146
=== modified file 'src/core/StelSkyDrawer.cpp'
--- src/core/StelSkyDrawer.cpp 2012-09-06 01:28:07 +0000
+++ src/core/StelSkyDrawer.cpp 2013-03-02 19:13:21 +0000
@@ -79,6 +79,11 @@
79 setMaxAdaptFov(conf->value("stars/mag_converter_max_fov",70.0).toFloat());79 setMaxAdaptFov(conf->value("stars/mag_converter_max_fov",70.0).toFloat());
80 setMinAdaptFov(conf->value("stars/mag_converter_min_fov",0.1).toFloat());80 setMinAdaptFov(conf->value("stars/mag_converter_min_fov",0.1).toFloat());
81 setFlagLuminanceAdaptation(conf->value("viewing/use_luminance_adaptation",true).toBool());81 setFlagLuminanceAdaptation(conf->value("viewing/use_luminance_adaptation",true).toBool());
82 setFlagClampStellarMagnitude((conf->value("astro/flag_clamp_stellar_mag", false).toBool()));
83 setClampStellarMagnitude(conf->value("astro/clamp_stellar_mag", 6.5).toFloat());
84 setFlagClampDSOMagnitude((conf->value("astro/flag_clamp_dso_mag", false).toBool()));
85 setClampDSOMagnitude(conf->value("astro/clamp_dso_mag", 8.5).toFloat());
86 // qDebug() << "drawer: clampStellarMag: " << clampStellarMagnitude << " , clampDSOmagnitude: " << clampDSOMagnitude;
8287
83 bool ok=true;88 bool ok=true;
8489
@@ -470,6 +475,9 @@
470 (StelProjectorP projector, const Vec3d& v, float illuminatedArea, 475 (StelProjectorP projector, const Vec3d& v, float illuminatedArea,
471 float mag, const Vec3f& color)476 float mag, const Vec3f& color)
472{477{
478 // GZ: Only draw if we did not clamp this object away.
479 if (flagClampStellarMagnitude && (mag > clampStellarMagnitude)) return;
480
473 const float pixPerRad = projector->getPixelPerRadAtCenter();481 const float pixPerRad = projector->getPixelPerRadAtCenter();
474 // Assume a disk shape482 // Assume a disk shape
475 float pixRadius = std::sqrt(illuminatedArea/(60.*60.)*M_PI/180.*M_PI/180.*(pixPerRad*pixPerRad))/M_PI;483 float pixRadius = std::sqrt(illuminatedArea/(60.*60.)*M_PI/180.*M_PI/180.*(pixPerRad*pixPerRad))/M_PI;
476484
=== modified file 'src/core/StelSkyDrawer.hpp'
--- src/core/StelSkyDrawer.hpp 2012-09-06 01:28:07 +0000
+++ src/core/StelSkyDrawer.hpp 2013-03-02 19:13:21 +0000
@@ -35,7 +35,7 @@
3535
36//! @class StelSkyDrawer36//! @class StelSkyDrawer
37//! Provide a set of methods used to draw sky objects taking into account37//! Provide a set of methods used to draw sky objects taking into account
38//! eyes adaptation, zoom level and instrument model38//! eyes adaptation, zoom level, instrument model and artificially set magnitude limits
39class StelSkyDrawer : public QObject39class StelSkyDrawer : public QObject
40{40{
41 Q_OBJECT41 Q_OBJECT
@@ -193,6 +193,24 @@
193 //! @return the limit V mag at which a point source will be displayed193 //! @return the limit V mag at which a point source will be displayed
194 float getLimitMagnitude() const {return limitMagnitude;}194 float getLimitMagnitude() const {return limitMagnitude;}
195195
196 //! set true to draw stars only downto clampStellarMagnitude
197 void setFlagClampStellarMagnitude(bool flagClamp) {flagClampStellarMagnitude = flagClamp;}
198 //! set true to draw deep-sky objects only downto clampDSOMagnitude
199 void setFlagClampDSOMagnitude(bool flagClamp) {flagClampDSOMagnitude = flagClamp;}
200 //! @return true if user wants to draw only upto clampStellarMagnitude
201 bool getFlagClampStellarMagnitude() const {return flagClampStellarMagnitude;}
202 //! @return true if user wants to draw only upto clampDSOMagnitude
203 bool getFlagClampDSOMagnitude() const {return flagClampDSOMagnitude;}
204
205 //! Get the artificially set limit for point sources, to limit drawing e.g. for naked-eye display
206 float getClampStellarMagnitude() const {return clampStellarMagnitude;}
207 //! Set the artificially set limit for point sources, to limit drawing e.g. for naked-eye display
208 void setClampStellarMagnitude(double clampMag) {clampStellarMagnitude=clampMag;}
209 //! Get the artificially set limit for deep-sky sources, to limit drawing e.g. for naked-eye display
210 float getClampDSOMagnitude() const {return clampDSOMagnitude;}
211 //! Set the artificially set limit for deep-sky sources, to limit drawing e.g. for naked-eye display
212 void setClampDSOMagnitude(double clampMag) {clampDSOMagnitude=clampMag;}
213
196 //! Get the luminance of the faintest visible object (e.g. RGB<0.05)214 //! Get the luminance of the faintest visible object (e.g. RGB<0.05)
197 //! It depends on the zoom level, on the eye adapation and on the point source rendering parameters215 //! It depends on the zoom level, on the eye adapation and on the point source rendering parameters
198 //! @return the limit V luminance at which an object will be visible216 //! @return the limit V luminance at which an object will be visible
@@ -300,6 +318,10 @@
300 //! This is used to avoid twinkling/simulate extinction/refraction.318 //! This is used to avoid twinkling/simulate extinction/refraction.
301 bool flagHasAtmosphere;319 bool flagHasAtmosphere;
302320
321 //! if true, only draw stars downto clampStellarMagnitude
322 bool flagClampStellarMagnitude;
323 //! if true, only draw Deep-sky objects downto clampDSOMagnitude
324 bool flagClampDSOMagnitude;
303325
304 float starRelativeScale;326 float starRelativeScale;
305 float starAbsoluteScaleF;327 float starAbsoluteScaleF;
@@ -312,6 +334,11 @@
312 //! Current magnitude luminance334 //! Current magnitude luminance
313 float limitLuminance;335 float limitLuminance;
314336
337 //! Magnitude limit, e.g. to display naked-eye stars only
338 float clampStellarMagnitude;
339 //! Magnitude limit, e.g. to display naked-eye or binocular deep-sky objects only
340 float clampDSOMagnitude;
341
315 //! Little halo texture342 //! Little halo texture
316 class StelTextureNew* texHalo;343 class StelTextureNew* texHalo;
317344
318345
=== modified file 'src/core/modules/Nebula.cpp'
--- src/core/modules/Nebula.cpp 2012-08-12 14:34:36 +0000
+++ src/core/modules/Nebula.cpp 2013-03-02 19:13:21 +0000
@@ -44,9 +44,12 @@
44 if(!initialized){return;}44 if(!initialized){return;}
4545
46 delete texCircle; 46 delete texCircle;
47 delete texGalaxy;
47 delete texOpenCluster; 48 delete texOpenCluster;
48 delete texGlobularCluster;49 delete texGlobularCluster;
49 delete texPlanetaryNebula; 50 delete texPlanetaryNebula;
51 delete texDiffuseNebula;
52 delete texOpenClusterWithNebulosity;
50 53
51 initialized = false;54 initialized = false;
52}55}
@@ -55,10 +58,13 @@
55{58{
56 if(initialized){return;}59 if(initialized){return;}
5760
58 texCircle = renderer->createTexture("textures/neb.png"); // Load circle texture61 texCircle = renderer->createTexture("textures/neb.png"); // Load circle texture
59 texOpenCluster = renderer->createTexture("textures/ocl.png"); // Load open cluster marker texture62 texGalaxy = renderer->createTexture("textures/neb_gal.png"); // Load ellipse texture
60 texGlobularCluster = renderer->createTexture("textures/gcl.png"); // Load globular cluster marker texture63 texOpenCluster = renderer->createTexture("textures/neb_ocl.png"); // Load open cluster marker texture
61 texPlanetaryNebula = renderer->createTexture("textures/pnb.png"); // Load planetary nebula marker texture64 texGlobularCluster = renderer->createTexture("textures/neb_gcl.png"); // Load globular cluster marker texture
65 texPlanetaryNebula = renderer->createTexture("textures/neb_pnb.png"); // Load planetary nebula marker texture
66 texDiffuseNebula = renderer->createTexture("textures/neb_dif.png"); // Load diffuse nebula marker texture
67 texOpenClusterWithNebulosity = renderer->createTexture("textures/neb_ocln.png"); // Load Ocl/Nebula marker texture
6268
63 initialized = true;69 initialized = true;
64}70}
@@ -184,22 +190,37 @@
184 col = StelUtils::getNightColor(col);190 col = StelUtils::getNightColor(col);
185191
186 renderer->setGlobalColor(col[0], col[1], col[2], 1);192 renderer->setGlobalColor(col[0], col[1], col[2], 1);
187 if (nType == 1)193/*
188 {194 if (nType == NebGx) hintTextures.texGalaxy->bind();
189 hintTextures.texOpenCluster->bind();195 else if (nType == NebOc) hintTextures.texOpenCluster->bind();
190 }196 else if (nType == NebGc) hintTextures.texGlobularCluster->bind();
191 else if (nType == 2)197 else if (nType == NebN) hintTextures.texDiffuseNebula->bind();
192 {198 else if (nType == NebPn) hintTextures.texPlanetaryNebula->bind();
193 hintTextures.texGlobularCluster->bind();199 else if (nType == NebCn) hintTextures.texOpenClusterWithNebulosity->bind();
194 }200 else hintTextures.texCircle->bind();
195 else if (nType == 4)201*/
196 {202 switch (nType) {
197 hintTextures.texPlanetaryNebula->bind();203 case NebGx:
198 }204 hintTextures.texGalaxy->bind();
199 else205 break;
200 {206 case NebOc:
201 hintTextures.texCircle->bind();207 hintTextures.texOpenCluster->bind();
202 }208 break;
209 case NebGc:
210 hintTextures.texGlobularCluster->bind();
211 break;
212 case NebN:
213 hintTextures.texDiffuseNebula->bind();
214 break;
215 case NebPn:
216 hintTextures.texPlanetaryNebula->bind();
217 break;
218 case NebCn:
219 hintTextures.texOpenClusterWithNebulosity->bind();
220 break;
221 default:
222 hintTextures.texCircle->bind();
223}
203224
204 renderer->drawTexturedRect(XY[0] - 6, XY[1] - 6, 12, 12);225 renderer->drawTexturedRect(XY[0] - 6, XY[1] - 6, 12, 12);
205}226}
@@ -255,6 +276,13 @@
255 StelUtils::spheToRect(ra,dec,XYZ);276 StelUtils::spheToRect(ra,dec,XYZ);
256 Q_ASSERT(fabs(XYZ.lengthSquared()-1.)<0.000000001);277 Q_ASSERT(fabs(XYZ.lengthSquared()-1.)<0.000000001);
257 nType = (Nebula::NebulaType)type;278 nType = (Nebula::NebulaType)type;
279 // GZ: Trace the undefined entries...
280 //if (type >= 5) {
281 // qDebug()<< (isIc?"IC" : "NGC") << nb << " type " << type ;
282 //}
283 if (type == 5) {
284 qDebug()<< (isIc?"IC" : "NGC") << nb << " type " << type ;
285 }
258 pointRegion = SphericalRegionP(new SphericalPoint(getJ2000EquatorialPos(NULL)));286 pointRegion = SphericalRegionP(new SphericalPoint(getJ2000EquatorialPos(NULL)));
259}287}
260288
@@ -353,6 +381,9 @@
353 case NebPn:381 case NebPn:
354 wsType = q_("Planetary nebula");382 wsType = q_("Planetary nebula");
355 break;383 break;
384 case NebDn:
385 wsType = q_("Dark Nebula (?)"); // Find out if this is true!
386 break;
356 case NebCn:387 case NebCn:
357 wsType = q_("Cluster associated with nebulosity");388 wsType = q_("Cluster associated with nebulosity");
358 break;389 break;
359390
=== modified file 'src/core/modules/Nebula.hpp'
--- src/core/modules/Nebula.hpp 2012-08-10 11:43:14 +0000
+++ src/core/modules/Nebula.hpp 2013-03-02 19:13:21 +0000
@@ -74,14 +74,20 @@
74 //! Textures used to draw nebula hints.74 //! Textures used to draw nebula hints.
75 struct NebulaHintTextures75 struct NebulaHintTextures
76 {76 {
77 //! The symbolic circle texture.77 //! The symbolic circle texture. (default)
78 class StelTextureNew* texCircle; 78 class StelTextureNew* texCircle;
79 //! The open cluster marker texture.79 //! The symbolic galaxy texture. (Type 0)
80 class StelTextureNew* texGalaxy;
81 //! The open cluster marker texture. (Type 1)
80 class StelTextureNew* texOpenCluster;82 class StelTextureNew* texOpenCluster;
81 //! The globular cluster marker texture.83 //! The globular cluster marker texture. (Type 2)
82 class StelTextureNew* texGlobularCluster;84 class StelTextureNew* texGlobularCluster;
83 //! The planetary nebula marker texture.85 //! The diffuse nebula marker texture. (Type 3)
86 class StelTextureNew* texDiffuseNebula;
87 //! The planetary nebula marker texture. (type 4)
84 class StelTextureNew* texPlanetaryNebula;88 class StelTextureNew* texPlanetaryNebula;
89 //! The "Open cluster with Nebulosity" nebula marker texture. (Type 7)
90 class StelTextureNew* texOpenClusterWithNebulosity;
85 //! Are we initialized yet?91 //! Are we initialized yet?
86 bool initialized;92 bool initialized;
8793
@@ -101,10 +107,10 @@
101 NebGc=2, //!< Globular star cluster, usually in the Milky Way Galaxy107 NebGc=2, //!< Globular star cluster, usually in the Milky Way Galaxy
102 NebN=3, //!< Bright emission or reflection nebula108 NebN=3, //!< Bright emission or reflection nebula
103 NebPn=4, //!< Planetary nebula109 NebPn=4, //!< Planetary nebula
104 NebDn=5, //!< ??? 110 NebDn=5, //!< ??? Dark Nebula? Does not exist in current catalog
105 NebIg=6, //!< ??? 111 NebIg=6, //!< ??? Irregular Galaxy? Does not exist in current catalog
106 NebCn=7, //!< Cluster associated with nebulosity112 NebCn=7, //!< Cluster associated with nebulosity
107 NebUnknown=8 //!< Unknown type113 NebUnknown=8 //!< Unknown type, catalog errors, "Unidentified Southern Objects" etc.
108 };114 };
109115
110 //! Translate nebula name using the passed translator116 //! Translate nebula name using the passed translator
111117
=== modified file 'src/core/modules/NebulaMgr.cpp'
--- src/core/modules/NebulaMgr.cpp 2013-02-22 11:43:47 +0000
+++ src/core/modules/NebulaMgr.cpp 2013-03-02 19:13:21 +0000
@@ -129,6 +129,10 @@
129 void operator()(StelRegionObject* obj)129 void operator()(StelRegionObject* obj)
130 {130 {
131 Nebula* n = static_cast<Nebula*>(obj);131 Nebula* n = static_cast<Nebula*>(obj);
132 StelSkyDrawer *drawer = core->getSkyDrawer();
133 // filter out DSOs which are too dim to be seen (e.g. for bino observers)
134 if ((drawer->getFlagClampDSOMagnitude()) && (n->mag > drawer->getClampDSOMagnitude())) return;
135
132 if (n->angularSize>angularSizeLimit || (checkMaxMagHints && n->mag <= maxMagHints))136 if (n->angularSize>angularSizeLimit || (checkMaxMagHints && n->mag <= maxMagHints))
133 {137 {
134 float refmag_add=0; // value to adjust hints visibility threshold.138 float refmag_add=0; // value to adjust hints visibility threshold.
@@ -161,8 +165,8 @@
161 const SphericalRegionP& p = prj->getViewportConvexPolygon(margin, margin);165 const SphericalRegionP& p = prj->getViewportConvexPolygon(margin, margin);
162166
163 // Print all the nebulae of all the selected zones167 // Print all the nebulae of all the selected zones
164 float maxMagHints = skyDrawer->getLimitMagnitude()*1.2f-2.f+(hintsAmount*1.2f)-2.f;168 float maxMagHints = skyDrawer->getLimitMagnitude()*1.2f-2.f+(hintsAmount *1.2f)-2.f;
165 float maxMagLabels = skyDrawer->getLimitMagnitude()-2.f+(labelsAmount*1.2f)-2.f;169 float maxMagLabels = skyDrawer->getLimitMagnitude() -2.f+(labelsAmount*1.2f)-2.f;
166 170
167 renderer->setFont(nebulaFont);171 renderer->setFont(nebulaFont);
168 nebulaHintTextures.lazyInit(renderer);172 nebulaHintTextures.lazyInit(renderer);
@@ -176,6 +180,7 @@
176 }180 }
177}181}
178182
183// Draw the pointer around the object if selected
179void NebulaMgr::drawPointer(const StelCore* core, StelRenderer* renderer)184void NebulaMgr::drawPointer(const StelCore* core, StelRenderer* renderer)
180{185{
181 const StelProjectorP prj = core->getProjection(StelCore::FrameJ2000);186 const StelProjectorP prj = core->getProjection(StelCore::FrameJ2000);
182187
=== modified file 'src/core/modules/NebulaMgr.hpp'
--- src/core/modules/NebulaMgr.hpp 2013-02-22 11:43:47 +0000
+++ src/core/modules/NebulaMgr.hpp 2013-03-02 19:13:21 +0000
@@ -40,6 +40,8 @@
40//! @class NebulaMgr40//! @class NebulaMgr
41//! Manage a collection of nebulae. This class is used41//! Manage a collection of nebulae. This class is used
42//! to display the NGC catalog with information, and textures for some of them.42//! to display the NGC catalog with information, and textures for some of them.
43// GZ: This doc seems outdated/misleading - photo textures are not mamaged here but in StelSkyImageTile
44
43class NebulaMgr : public StelObjectModule45class NebulaMgr : public StelObjectModule
44{46{
45 Q_OBJECT47 Q_OBJECT
@@ -103,7 +105,7 @@
103 ///////////////////////////////////////////////////////////////////////////105 ///////////////////////////////////////////////////////////////////////////
104 // Properties setters and getters106 // Properties setters and getters
105public slots:107public slots:
106 //! Set the color used to draw the nebula circles.108 //! Set the color used to draw the nebula symbols (circles, boxes. etc).
107 void setCirclesColor(const Vec3f& c);109 void setCirclesColor(const Vec3f& c);
108 //! Get current value of the nebula circle color.110 //! Get current value of the nebula circle color.
109 const Vec3f& getCirclesColor(void) const;111 const Vec3f& getCirclesColor(void) const;
@@ -114,6 +116,7 @@
114 float getCircleScale(void) const;116 float getCircleScale(void) const;
115117
116 //! Set how long it takes for nebula hints to fade in and out when turned on and off.118 //! Set how long it takes for nebula hints to fade in and out when turned on and off.
119 //! @param duration given in seconds
117 void setHintsFadeDuration(float duration) {hintsFader.setDuration((int) (duration * 1000.f));}120 void setHintsFadeDuration(float duration) {hintsFader.setDuration((int) (duration * 1000.f));}
118121
119 //! Set flag for displaying Nebulae Hints.122 //! Set flag for displaying Nebulae Hints.
120123
=== modified file 'src/core/modules/Planet.cpp'
--- src/core/modules/Planet.cpp 2013-02-10 10:26:03 +0000
+++ src/core/modules/Planet.cpp 2013-03-02 19:13:21 +0000
@@ -1050,7 +1050,7 @@
1050 */1050 */
1051 // GZ: I prefer the values given by Meeus, Astronomical Algorithms (1992).1051 // GZ: I prefer the values given by Meeus, Astronomical Algorithms (1992).
1052 // There are two solutions:1052 // There are two solutions:
1053 // (1) G. Mller, based on visual observations 1877-91. [Expl.Suppl.1961]1053 // (1) G. Mueller, based on visual observations 1877-91. [Expl.Suppl.1961]
1054 // (2) Astronomical Almanac 1984 and later. These give V (instrumental) magnitudes.1054 // (2) Astronomical Almanac 1984 and later. These give V (instrumental) magnitudes.
1055 // The structure is almost identical, just the numbers are different!1055 // The structure is almost identical, just the numbers are different!
1056 // I activate (1) for now, because we want to simulate the eye's impression. (Esp. Venus!)1056 // I activate (1) for now, because we want to simulate the eye's impression. (Esp. Venus!)
@@ -1068,7 +1068,7 @@
1068 return -8.93 + d + extinctionMag;1068 return -8.93 + d + extinctionMag;
1069 if (englishName=="Saturn")1069 if (englishName=="Saturn")
1070 {1070 {
1071 // TODO re-add rings computation1071 // add rings computation
1072 // GZ: implemented from Meeus, Astr.Alg.19921072 // GZ: implemented from Meeus, Astr.Alg.1992
1073 const double jd=core->getJDay();1073 const double jd=core->getJDay();
1074 const double T=(jd-2451545.0)/36525.0;1074 const double T=(jd-2451545.0)/36525.0;
@@ -1100,7 +1100,7 @@
1100 return -9.40 + d + 0.005*phaseDeg + extinctionMag;1100 return -9.40 + d + 0.005*phaseDeg + extinctionMag;
1101 if (englishName=="Saturn")1101 if (englishName=="Saturn")
1102 {1102 {
1103 // TODO re-add rings computation1103 // add rings computation
1104 // GZ: implemented from Meeus, Astr.Alg.19921104 // GZ: implemented from Meeus, Astr.Alg.1992
1105 const double jd=core->getJDay();1105 const double jd=core->getJDay();
1106 const double T=(jd-2451545.0)/36525.0;1106 const double T=(jd-2451545.0)/36525.0;
11071107
=== modified file 'src/core/modules/ZoneArray.cpp'
--- src/core/modules/ZoneArray.cpp 2012-09-05 13:30:21 +0000
+++ src/core/modules/ZoneArray.cpp 2013-03-02 19:13:21 +0000
@@ -444,6 +444,8 @@
444 file->close();444 file->close();
445 }445 }
446 }446 }
447 // GZ: Some diagnostics to understand the undocumented vars around mag.
448 // qDebug() << "SpecialZoneArray: mag_min=" << mag_min << ", mag_steps=" << mag_steps << ", mag_range=" << mag_range ;
447 }449 }
448}450}
449451
@@ -485,22 +487,24 @@
485 static const double d2000 = 2451545.0;487 static const double d2000 = 2451545.0;
486 const double movementFactor = (M_PI/180)*(0.0001/3600) * ((core->getJDay()-d2000)/365.25) / star_position_scale;488 const double movementFactor = (M_PI/180)*(0.0001/3600) * ((core->getJDay()-d2000)/365.25) / star_position_scale;
487 const float* tmpRcmag; // will point to precomputed rC in table489 const float* tmpRcmag; // will point to precomputed rC in table
488 // GZ, added for extinction
489 Extinction extinction=core->getSkyDrawer()->getExtinction();490 Extinction extinction=core->getSkyDrawer()->getExtinction();
490 const bool withExtinction=(drawer->getFlagHasAtmosphere() && extinction.getExtinctionCoefficient()>=0.01f);491 const bool withExtinction=(drawer->getFlagHasAtmosphere() && extinction.getExtinctionCoefficient()>=0.01f);
491 const float k = (0.001f*mag_range)/mag_steps; // from StarMgr.cpp line 654492 const float k = (0.001f*mag_range)/mag_steps; // from StarMgr.cpp line 654
492493 // GZ: allow artificial cutoff:
494 const int clampStellarMagnitude_mmag = (int) floor(drawer->getClampStellarMagnitude() * 1000.0f);
495 // find s->mag, which is the step into the magnitudes which is just bright enough to be drawn.
496 int cutoffMagStep=(drawer->getFlagClampStellarMagnitude() ? (clampStellarMagnitude_mmag - mag_min)*mag_steps/mag_range : mag_steps);
493497
494 // go through all stars, which are sorted by magnitude (bright stars first)498 // go through all stars, which are sorted by magnitude (bright stars first)
495 for (const Star *s=z->getStars();s<end;++s)499 for (const Star *s=z->getStars();s<end;++s)
496 {500 {
501 if (s->mag > cutoffMagStep) break; // e.g. naked-eye stars only.
497 tmpRcmag = rcmag_table+2*s->mag;502 tmpRcmag = rcmag_table+2*s->mag;
498 if (*tmpRcmag<=0.f) break; // no size for this and following (even dimmer, unextincted) stars? --> early exit503 if (*tmpRcmag<=0.f) break; // no size for this and following (even dimmer, unextincted) stars? --> early exit
499 s->getJ2000Pos(z,movementFactor, vf);504 s->getJ2000Pos(z,movementFactor, vf);
500505
501 const Vec3d vd(vf[0], vf[1], vf[2]);506 const Vec3d vd(vf[0], vf[1], vf[2]);
502507
503 // GZ new:
504 if (withExtinction)508 if (withExtinction)
505 {509 {
506 //GZ: We must compute position first, then shift magnitude.510 //GZ: We must compute position first, then shift magnitude.
@@ -509,7 +513,14 @@
509 extinction.forward(&altAz, &extMagShift);513 extinction.forward(&altAz, &extMagShift);
510 const int extMagShiftStep = 514 const int extMagShiftStep =
511 qMin((int)floor(extMagShift / k), RCMAG_TABLE_SIZE-mag_steps); 515 qMin((int)floor(extMagShift / k), RCMAG_TABLE_SIZE-mag_steps);
512 tmpRcmag = rcmag_table + 2 * (s->mag+extMagShiftStep);516 if ((s->mag + extMagShiftStep) > cutoffMagStep) // i.e., if extincted it is dimmer than cutoff, so remove [draw with hopefully zero size].
517 {
518 tmpRcmag = rcmag_table + 2 * (RCMAG_TABLE_SIZE-1);
519 }
520 else
521 {
522 tmpRcmag = rcmag_table + 2 * (s->mag+extMagShiftStep);
523 }
513 }524 }
514525
515 Vec3f win;526 Vec3f win;
516527
=== modified file 'src/core/modules/ZoneArray.hpp'
--- src/core/modules/ZoneArray.hpp 2012-08-19 16:37:16 +0000
+++ src/core/modules/ZoneArray.hpp 2013-03-02 19:13:21 +0000
@@ -122,13 +122,13 @@
122 //! Level in StelGeodesicGrid.122 //! Level in StelGeodesicGrid.
123 const int level;123 const int level;
124124
125 //! Lower bound of magnitudes in this catalog.125 //! Lower bound of magnitudes in this catalog. Units: millimag. May be negative for brightest stars.
126 const int mag_min;126 const int mag_min;
127127
128 //! Range of magnitudes in this catalog.128 //! Range of magnitudes in this catalog. Units: millimags
129 const int mag_range;129 const int mag_range;
130130
131 //! Number of steps used to describe values in @em mag_range.131 //! Number of steps used to describe values in @em mag_range. Always positive. Individual stars have their mag entries from 0..mag_steps.
132 const int mag_steps;132 const int mag_steps;
133133
134 float star_position_scale;134 float star_position_scale;
135135
=== modified file 'src/gui/ConfigurationDialog.cpp'
--- src/gui/ConfigurationDialog.cpp 2013-02-25 00:27:09 +0000
+++ src/gui/ConfigurationDialog.cpp 2013-03-02 19:13:21 +0000
@@ -494,6 +494,10 @@
494 conf->setValue("stars/relative_scale", skyd->getRelativeStarScale());494 conf->setValue("stars/relative_scale", skyd->getRelativeStarScale());
495 conf->setValue("stars/flag_star_twinkle", skyd->getFlagTwinkle());495 conf->setValue("stars/flag_star_twinkle", skyd->getFlagTwinkle());
496 conf->setValue("stars/star_twinkle_amount", skyd->getTwinkleAmount());496 conf->setValue("stars/star_twinkle_amount", skyd->getTwinkleAmount());
497 conf->setValue("astro/flag_clamp_stellar_mag", skyd->getFlagClampStellarMagnitude());
498 conf->setValue("astro/clamp_stellar_mag", skyd->getClampStellarMagnitude());
499 conf->setValue("astro/flag_clamp_dso_mag", skyd->getFlagClampDSOMagnitude());
500 conf->setValue("astro/clamp_dso_mag", skyd->getClampDSOMagnitude());
497 conf->setValue("viewing/use_luminance_adaptation", skyd->getFlagLuminanceAdaptation());501 conf->setValue("viewing/use_luminance_adaptation", skyd->getFlagLuminanceAdaptation());
498 conf->setValue("astro/flag_planets", ssmgr->getFlagPlanets());502 conf->setValue("astro/flag_planets", ssmgr->getFlagPlanets());
499 conf->setValue("astro/flag_planets_hints", ssmgr->getFlagHints());503 conf->setValue("astro/flag_planets_hints", ssmgr->getFlagHints());
500504
=== modified file 'src/gui/ViewDialog.cpp'
--- src/gui/ViewDialog.cpp 2013-02-11 12:29:27 +0000
+++ src/gui/ViewDialog.cpp 2013-03-02 19:13:21 +0000
@@ -155,6 +155,19 @@
155 ui->adaptationCheckbox->setChecked(StelApp::getInstance().getCore()->getSkyDrawer()->getFlagLuminanceAdaptation());155 ui->adaptationCheckbox->setChecked(StelApp::getInstance().getCore()->getSkyDrawer()->getFlagLuminanceAdaptation());
156 connect(ui->adaptationCheckbox, SIGNAL(toggled(bool)), StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setFlagLuminanceAdaptation(bool)));156 connect(ui->adaptationCheckbox, SIGNAL(toggled(bool)), StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setFlagLuminanceAdaptation(bool)));
157157
158 // Limit Magnitudes
159 ui->starLimitMagnitudeCheckBox->setChecked(StelApp::getInstance().getCore()->getSkyDrawer()->getFlagClampStellarMagnitude());
160 connect(ui->starLimitMagnitudeCheckBox, SIGNAL(toggled(bool)), StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setFlagClampStellarMagnitude(bool)));
161
162 ui->starLimitMagnitudeDoubleSpinBox->setValue(StelApp::getInstance().getCore()->getSkyDrawer()->getClampStellarMagnitude());
163 connect(ui->starLimitMagnitudeDoubleSpinBox, SIGNAL(valueChanged(double)), StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setClampStellarMagnitude(double)));
164
165 ui->nebulaLimitMagnitudeCheckBox->setChecked(StelApp::getInstance().getCore()->getSkyDrawer()->getFlagClampDSOMagnitude());
166 connect(ui->nebulaLimitMagnitudeCheckBox, SIGNAL(toggled(bool)), StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setFlagClampDSOMagnitude(bool)));
167
168 ui->nebulaLimitMagnitudeDoubleSpinBox->setValue(StelApp::getInstance().getCore()->getSkyDrawer()->getClampDSOMagnitude());
169 connect(ui->nebulaLimitMagnitudeDoubleSpinBox, SIGNAL(valueChanged(double)), StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setClampDSOMagnitude(double)));
170
158 // Planets section171 // Planets section
159 SolarSystem* ssmgr = GETSTELMODULE(SolarSystem);172 SolarSystem* ssmgr = GETSTELMODULE(SolarSystem);
160 ui->showPlanetCheckBox->setChecked(ssmgr->getFlagPlanets());173 ui->showPlanetCheckBox->setChecked(ssmgr->getFlagPlanets());
161174
=== modified file 'src/gui/viewDialog.ui'
--- src/gui/viewDialog.ui 2013-02-01 14:42:55 +0000
+++ src/gui/viewDialog.ui 2013-03-02 19:13:21 +0000
@@ -6,8 +6,8 @@
6 <rect>6 <rect>
7 <x>0</x>7 <x>0</x>
8 <y>0</y>8 <y>0</y>
9 <width>488</width>9 <width>594</width>
10 <height>481</height>10 <height>513</height>
11 </rect>11 </rect>
12 </property>12 </property>
13 <property name="font">13 <property name="font">
@@ -325,7 +325,7 @@
325 </item>325 </item>
326 </widget>326 </widget>
327 </item>327 </item>
328 <item>328 <item alignment="Qt::AlignTop">
329 <widget class="QStackedWidget" name="stackedWidget">329 <widget class="QStackedWidget" name="stackedWidget">
330 <property name="currentIndex">330 <property name="currentIndex">
331 <number>0</number>331 <number>0</number>
@@ -338,7 +338,273 @@
338 <property name="spacing">338 <property name="spacing">
339 <number>0</number>339 <number>0</number>
340 </property>340 </property>
341 <item row="0" column="0">341 <item row="1" column="1" alignment="Qt::AlignTop">
342 <widget class="QGroupBox" name="labelsGroupBox">
343 <property name="sizePolicy">
344 <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
345 <horstretch>0</horstretch>
346 <verstretch>0</verstretch>
347 </sizepolicy>
348 </property>
349 <property name="minimumSize">
350 <size>
351 <width>0</width>
352 <height>150</height>
353 </size>
354 </property>
355 <property name="font">
356 <font>
357 <pointsize>10</pointsize>
358 <weight>50</weight>
359 <bold>false</bold>
360 </font>
361 </property>
362 <property name="title">
363 <string>Labels and Markers</string>
364 </property>
365 <property name="checkable">
366 <bool>false</bool>
367 </property>
368 <layout class="QGridLayout" name="gridLayoutx">
369 <property name="margin">
370 <number>0</number>
371 </property>
372 <item row="0" column="0">
373 <widget class="QCheckBox" name="starLabelCheckBox">
374 <property name="text">
375 <string>Stars</string>
376 </property>
377 </widget>
378 </item>
379 <item row="0" column="1">
380 <widget class="QSlider" name="starsLabelsHorizontalSlider">
381 <property name="sizePolicy">
382 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
383 <horstretch>0</horstretch>
384 <verstretch>0</verstretch>
385 </sizepolicy>
386 </property>
387 <property name="minimumSize">
388 <size>
389 <width>180</width>
390 <height>0</height>
391 </size>
392 </property>
393 <property name="value">
394 <number>33</number>
395 </property>
396 <property name="orientation">
397 <enum>Qt::Horizontal</enum>
398 </property>
399 </widget>
400 </item>
401 <item row="2" column="0">
402 <widget class="QCheckBox" name="planetLabelCheckBox">
403 <property name="text">
404 <string>Planets</string>
405 </property>
406 </widget>
407 </item>
408 <item row="2" column="1">
409 <widget class="QSlider" name="planetsLabelsHorizontalSlider">
410 <property name="sizePolicy">
411 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
412 <horstretch>0</horstretch>
413 <verstretch>0</verstretch>
414 </sizepolicy>
415 </property>
416 <property name="minimumSize">
417 <size>
418 <width>180</width>
419 <height>0</height>
420 </size>
421 </property>
422 <property name="value">
423 <number>33</number>
424 </property>
425 <property name="orientation">
426 <enum>Qt::Horizontal</enum>
427 </property>
428 </widget>
429 </item>
430 <item row="1" column="0">
431 <widget class="QCheckBox" name="nebulaLabelCheckBox">
432 <property name="text">
433 <string>Nebulas</string>
434 </property>
435 </widget>
436 </item>
437 <item row="1" column="1">
438 <widget class="QSlider" name="nebulasLabelsHorizontalSlider">
439 <property name="sizePolicy">
440 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
441 <horstretch>0</horstretch>
442 <verstretch>0</verstretch>
443 </sizepolicy>
444 </property>
445 <property name="minimumSize">
446 <size>
447 <width>180</width>
448 <height>0</height>
449 </size>
450 </property>
451 <property name="value">
452 <number>33</number>
453 </property>
454 <property name="orientation">
455 <enum>Qt::Horizontal</enum>
456 </property>
457 </widget>
458 </item>
459 </layout>
460 </widget>
461 </item>
462 <item row="0" column="1">
463 <widget class="QGroupBox" name="planetsGroupBox">
464 <property name="font">
465 <font>
466 <pointsize>10</pointsize>
467 <weight>50</weight>
468 <bold>false</bold>
469 </font>
470 </property>
471 <property name="title">
472 <string>Planets and satellites</string>
473 </property>
474 <property name="checkable">
475 <bool>false</bool>
476 </property>
477 <layout class="QVBoxLayout" name="verticalLayout_2">
478 <property name="margin">
479 <number>0</number>
480 </property>
481 <item>
482 <widget class="QCheckBox" name="showPlanetCheckBox">
483 <property name="text">
484 <string>Show planets</string>
485 </property>
486 <property name="checked">
487 <bool>true</bool>
488 </property>
489 </widget>
490 </item>
491 <item>
492 <widget class="QCheckBox" name="planetMarkerCheckBox">
493 <property name="text">
494 <string>Show planet markers</string>
495 </property>
496 </widget>
497 </item>
498 <item>
499 <widget class="QCheckBox" name="planetOrbitCheckBox">
500 <property name="sizePolicy">
501 <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
502 <horstretch>0</horstretch>
503 <verstretch>0</verstretch>
504 </sizepolicy>
505 </property>
506 <property name="text">
507 <string>Show planet orbits</string>
508 </property>
509 </widget>
510 </item>
511 <item>
512 <widget class="QCheckBox" name="planetLightSpeedCheckBox">
513 <property name="text">
514 <string>Simulate light speed</string>
515 </property>
516 </widget>
517 </item>
518 <item>
519 <widget class="QCheckBox" name="planetScaleMoonCheckBox">
520 <property name="text">
521 <string>Scale Moon</string>
522 </property>
523 </widget>
524 </item>
525 </layout>
526 </widget>
527 </item>
528 <item row="1" column="0">
529 <widget class="QGroupBox" name="atmosphereGroupBox">
530 <property name="font">
531 <font>
532 <pointsize>10</pointsize>
533 <weight>50</weight>
534 <bold>false</bold>
535 </font>
536 </property>
537 <property name="title">
538 <string>Atmosphere</string>
539 </property>
540 <layout class="QVBoxLayout" name="verticalLayout_3">
541 <property name="margin">
542 <number>0</number>
543 </property>
544 <item>
545 <widget class="QCheckBox" name="showAtmosphereCheckBox">
546 <property name="text">
547 <string>Show atmosphere</string>
548 </property>
549 </widget>
550 </item>
551 <item>
552 <layout class="QHBoxLayout" name="_2">
553 <item>
554 <widget class="QLabel" name="label_4">
555 <property name="text">
556 <string>Light pollution:</string>
557 </property>
558 </widget>
559 </item>
560 <item>
561 <widget class="QSpinBox" name="lightPollutionSpinBox">
562 <property name="alignment">
563 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
564 </property>
565 <property name="minimum">
566 <number>1</number>
567 </property>
568 <property name="maximum">
569 <number>9</number>
570 </property>
571 <property name="value">
572 <number>1</number>
573 </property>
574 </widget>
575 </item>
576 </layout>
577 </item>
578 <item>
579 <widget class="QPushButton" name="pushButtonAtmosphereDetails">
580 <property name="toolTip">
581 <string>pressure, temperature, extinction coefficient</string>
582 </property>
583 <property name="text">
584 <string>Refraction/Extinction settings...</string>
585 </property>
586 </widget>
587 </item>
588 <item>
589 <spacer name="verticalSpacer_2">
590 <property name="orientation">
591 <enum>Qt::Vertical</enum>
592 </property>
593 <property name="sizeType">
594 <enum>QSizePolicy::Expanding</enum>
595 </property>
596 <property name="sizeHint" stdset="0">
597 <size>
598 <width>20</width>
599 <height>0</height>
600 </size>
601 </property>
602 </spacer>
603 </item>
604 </layout>
605 </widget>
606 </item>
607 <item row="0" column="0" alignment="Qt::AlignTop">
342 <widget class="QGroupBox" name="starGroupBox">608 <widget class="QGroupBox" name="starGroupBox">
343 <property name="font">609 <property name="font">
344 <font>610 <font>
@@ -621,309 +887,7 @@
621 </layout>887 </layout>
622 </widget>888 </widget>
623 </item>889 </item>
624 <item row="0" column="1">890 <item row="3" column="0">
625 <widget class="QGroupBox" name="planetsGroupBox">
626 <property name="font">
627 <font>
628 <pointsize>10</pointsize>
629 <weight>50</weight>
630 <bold>false</bold>
631 </font>
632 </property>
633 <property name="title">
634 <string>Planets and satellites</string>
635 </property>
636 <property name="checkable">
637 <bool>false</bool>
638 </property>
639 <layout class="QVBoxLayout" name="verticalLayout_2">
640 <property name="margin">
641 <number>0</number>
642 </property>
643 <item>
644 <widget class="QCheckBox" name="showPlanetCheckBox">
645 <property name="text">
646 <string>Show planets</string>
647 </property>
648 <property name="checked">
649 <bool>true</bool>
650 </property>
651 </widget>
652 </item>
653 <item>
654 <widget class="QCheckBox" name="planetMarkerCheckBox">
655 <property name="text">
656 <string>Show planet markers</string>
657 </property>
658 </widget>
659 </item>
660 <item>
661 <widget class="QCheckBox" name="planetOrbitCheckBox">
662 <property name="sizePolicy">
663 <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
664 <horstretch>0</horstretch>
665 <verstretch>0</verstretch>
666 </sizepolicy>
667 </property>
668 <property name="text">
669 <string>Show planet orbits</string>
670 </property>
671 </widget>
672 </item>
673 <item>
674 <widget class="QCheckBox" name="planetLightSpeedCheckBox">
675 <property name="text">
676 <string>Simulate light speed</string>
677 </property>
678 </widget>
679 </item>
680 <item>
681 <widget class="QCheckBox" name="planetScaleMoonCheckBox">
682 <property name="text">
683 <string>Scale Moon</string>
684 </property>
685 </widget>
686 </item>
687 </layout>
688 </widget>
689 </item>
690 <item row="1" column="0">
691 <widget class="QGroupBox" name="atmosphereGroupBox">
692 <property name="font">
693 <font>
694 <pointsize>10</pointsize>
695 <weight>50</weight>
696 <bold>false</bold>
697 </font>
698 </property>
699 <property name="title">
700 <string>Atmosphere</string>
701 </property>
702 <layout class="QVBoxLayout" name="verticalLayout_3">
703 <property name="margin">
704 <number>0</number>
705 </property>
706 <item>
707 <widget class="QCheckBox" name="showAtmosphereCheckBox">
708 <property name="text">
709 <string>Show atmosphere</string>
710 </property>
711 </widget>
712 </item>
713 <item>
714 <layout class="QHBoxLayout" name="_2">
715 <item>
716 <widget class="QLabel" name="label_4">
717 <property name="text">
718 <string>Light pollution:</string>
719 </property>
720 </widget>
721 </item>
722 <item>
723 <widget class="QSpinBox" name="lightPollutionSpinBox">
724 <property name="alignment">
725 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
726 </property>
727 <property name="minimum">
728 <number>1</number>
729 </property>
730 <property name="maximum">
731 <number>9</number>
732 </property>
733 <property name="value">
734 <number>1</number>
735 </property>
736 </widget>
737 </item>
738 </layout>
739 </item>
740 <item>
741 <layout class="QHBoxLayout" name="horizontalLayout">
742 <item>
743 <widget class="QPushButton" name="pushButtonAtmosphereDetails">
744 <property name="toolTip">
745 <string>pressure, temperature, extinction coefficient</string>
746 </property>
747 <property name="text">
748 <string>Refraction/Extinction settings...</string>
749 </property>
750 </widget>
751 </item>
752 </layout>
753 </item>
754 <item>
755 <spacer name="verticalSpacer_2">
756 <property name="orientation">
757 <enum>Qt::Vertical</enum>
758 </property>
759 <property name="sizeType">
760 <enum>QSizePolicy::Expanding</enum>
761 </property>
762 <property name="sizeHint" stdset="0">
763 <size>
764 <width>20</width>
765 <height>0</height>
766 </size>
767 </property>
768 </spacer>
769 </item>
770 </layout>
771 </widget>
772 </item>
773 <item row="1" column="1">
774 <widget class="QGroupBox" name="labelsGroupBox">
775 <property name="sizePolicy">
776 <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
777 <horstretch>0</horstretch>
778 <verstretch>0</verstretch>
779 </sizepolicy>
780 </property>
781 <property name="minimumSize">
782 <size>
783 <width>0</width>
784 <height>150</height>
785 </size>
786 </property>
787 <property name="font">
788 <font>
789 <pointsize>10</pointsize>
790 <weight>50</weight>
791 <bold>false</bold>
792 </font>
793 </property>
794 <property name="title">
795 <string>Labels and Markers</string>
796 </property>
797 <property name="checkable">
798 <bool>false</bool>
799 </property>
800 <layout class="QGridLayout" name="gridLayoutx">
801 <property name="margin">
802 <number>0</number>
803 </property>
804 <item row="0" column="0">
805 <widget class="QCheckBox" name="starLabelCheckBox">
806 <property name="text">
807 <string>Stars</string>
808 </property>
809 </widget>
810 </item>
811 <item row="0" column="1">
812 <widget class="QSlider" name="starsLabelsHorizontalSlider">
813 <property name="sizePolicy">
814 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
815 <horstretch>0</horstretch>
816 <verstretch>0</verstretch>
817 </sizepolicy>
818 </property>
819 <property name="minimumSize">
820 <size>
821 <width>180</width>
822 <height>0</height>
823 </size>
824 </property>
825 <property name="value">
826 <number>33</number>
827 </property>
828 <property name="orientation">
829 <enum>Qt::Horizontal</enum>
830 </property>
831 </widget>
832 </item>
833 <item row="1" column="0">
834 <widget class="QCheckBox" name="nebulaLabelCheckBox">
835 <property name="text">
836 <string>Nebulas</string>
837 </property>
838 </widget>
839 </item>
840 <item row="1" column="1">
841 <widget class="QSlider" name="nebulasLabelsHorizontalSlider">
842 <property name="sizePolicy">
843 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
844 <horstretch>0</horstretch>
845 <verstretch>0</verstretch>
846 </sizepolicy>
847 </property>
848 <property name="minimumSize">
849 <size>
850 <width>180</width>
851 <height>0</height>
852 </size>
853 </property>
854 <property name="value">
855 <number>33</number>
856 </property>
857 <property name="orientation">
858 <enum>Qt::Horizontal</enum>
859 </property>
860 </widget>
861 </item>
862 <item row="2" column="0">
863 <widget class="QCheckBox" name="planetLabelCheckBox">
864 <property name="text">
865 <string>Planets</string>
866 </property>
867 </widget>
868 </item>
869 <item row="2" column="1">
870 <widget class="QSlider" name="planetsLabelsHorizontalSlider">
871 <property name="sizePolicy">
872 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
873 <horstretch>0</horstretch>
874 <verstretch>0</verstretch>
875 </sizepolicy>
876 </property>
877 <property name="minimumSize">
878 <size>
879 <width>180</width>
880 <height>0</height>
881 </size>
882 </property>
883 <property name="value">
884 <number>33</number>
885 </property>
886 <property name="orientation">
887 <enum>Qt::Horizontal</enum>
888 </property>
889 </widget>
890 </item>
891 <item row="3" column="1">
892 <spacer name="horizontalSpacer_4">
893 <property name="orientation">
894 <enum>Qt::Horizontal</enum>
895 </property>
896 <property name="sizeType">
897 <enum>QSizePolicy::Preferred</enum>
898 </property>
899 <property name="sizeHint" stdset="0">
900 <size>
901 <width>180</width>
902 <height>0</height>
903 </size>
904 </property>
905 </spacer>
906 </item>
907 <item row="3" column="0">
908 <spacer name="horizontalSpacer_5">
909 <property name="orientation">
910 <enum>Qt::Horizontal</enum>
911 </property>
912 <property name="sizeType">
913 <enum>QSizePolicy::Minimum</enum>
914 </property>
915 <property name="sizeHint" stdset="0">
916 <size>
917 <width>40</width>
918 <height>0</height>
919 </size>
920 </property>
921 </spacer>
922 </item>
923 </layout>
924 </widget>
925 </item>
926 <item row="2" column="0" colspan="2">
927 <widget class="QGroupBox" name="shootingStarsGroupBox">891 <widget class="QGroupBox" name="shootingStarsGroupBox">
928 <property name="sizePolicy">892 <property name="sizePolicy">
929 <sizepolicy hsizetype="Preferred" vsizetype="Preferred">893 <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
@@ -959,8 +923,11 @@
959 </property>923 </property>
960 <item>924 <item>
961 <widget class="QLabel" name="label_14">925 <widget class="QLabel" name="label_14">
926 <property name="toolTip">
927 <string>Hourly zenith rate</string>
928 </property>
962 <property name="text">929 <property name="text">
963 <string>Hourly zenith rate:</string>930 <string>ZHR:</string>
964 </property>931 </property>
965 <property name="textFormat">932 <property name="textFormat">
966 <enum>Qt::PlainText</enum>933 <enum>Qt::PlainText</enum>
@@ -982,7 +949,7 @@
982 <property name="margin">949 <property name="margin">
983 <number>0</number>950 <number>0</number>
984 </property>951 </property>
985 <item>952 <item alignment="Qt::AlignTop">
986 <widget class="QFrame" name="frame_8">953 <widget class="QFrame" name="frame_8">
987 <property name="frameShape">954 <property name="frameShape">
988 <enum>QFrame::StyledPanel</enum>955 <enum>QFrame::StyledPanel</enum>
@@ -1064,6 +1031,155 @@
1064 </layout>1031 </layout>
1065 </widget>1032 </widget>
1066 </item>1033 </item>
1034 <item row="3" column="1">
1035 <widget class="QGroupBox" name="limitsGroupBox">
1036 <property name="sizePolicy">
1037 <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
1038 <horstretch>0</horstretch>
1039 <verstretch>0</verstretch>
1040 </sizepolicy>
1041 </property>
1042 <property name="minimumSize">
1043 <size>
1044 <width>0</width>
1045 <height>0</height>
1046 </size>
1047 </property>
1048 <property name="font">
1049 <font>
1050 <pointsize>10</pointsize>
1051 <weight>50</weight>
1052 <bold>false</bold>
1053 </font>
1054 </property>
1055 <property name="toolTip">
1056 <string>Limit Magnitudes (for unaided/binocular observers)</string>
1057 </property>
1058 <property name="title">
1059 <string>Limit Magnitudes</string>
1060 </property>
1061 <property name="checkable">
1062 <bool>false</bool>
1063 </property>
1064 <layout class="QGridLayout" name="gridLayout_6">
1065 <property name="margin">
1066 <number>0</number>
1067 </property>
1068 <item row="1" column="0">
1069 <widget class="QCheckBox" name="starLimitMagnitudeCheckBox">
1070 <property name="toolTip">
1071 <string>Stars to magnitude</string>
1072 </property>
1073 <property name="text">
1074 <string>Stars</string>
1075 </property>
1076 </widget>
1077 </item>
1078 <item row="2" column="1">
1079 <widget class="QDoubleSpinBox" name="nebulaLimitMagnitudeDoubleSpinBox">
1080 <property name="sizePolicy">
1081 <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
1082 <horstretch>0</horstretch>
1083 <verstretch>0</verstretch>
1084 </sizepolicy>
1085 </property>
1086 <property name="minimumSize">
1087 <size>
1088 <width>0</width>
1089 <height>0</height>
1090 </size>
1091 </property>
1092 <property name="maximumSize">
1093 <size>
1094 <width>70</width>
1095 <height>16777215</height>
1096 </size>
1097 </property>
1098 <property name="frame">
1099 <bool>true</bool>
1100 </property>
1101 <property name="alignment">
1102 <set>Qt::AlignCenter</set>
1103 </property>
1104 <property name="buttonSymbols">
1105 <enum>QAbstractSpinBox::UpDownArrows</enum>
1106 </property>
1107 <property name="decimals">
1108 <number>2</number>
1109 </property>
1110 <property name="minimum">
1111 <double>3.000000000000000</double>
1112 </property>
1113 <property name="maximum">
1114 <double>21.000000000000000</double>
1115 </property>
1116 <property name="singleStep">
1117 <double>0.250000000000000</double>
1118 </property>
1119 <property name="value">
1120 <double>8.500000000000000</double>
1121 </property>
1122 </widget>
1123 </item>
1124 <item row="2" column="0">
1125 <widget class="QCheckBox" name="nebulaLimitMagnitudeCheckBox">
1126 <property name="toolTip">
1127 <string>Nebulas to magitude</string>
1128 </property>
1129 <property name="text">
1130 <string>Nebulas</string>
1131 </property>
1132 </widget>
1133 </item>
1134 <item row="1" column="1">
1135 <widget class="QDoubleSpinBox" name="starLimitMagnitudeDoubleSpinBox">
1136 <property name="sizePolicy">
1137 <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
1138 <horstretch>0</horstretch>
1139 <verstretch>0</verstretch>
1140 </sizepolicy>
1141 </property>
1142 <property name="minimumSize">
1143 <size>
1144 <width>0</width>
1145 <height>0</height>
1146 </size>
1147 </property>
1148 <property name="maximumSize">
1149 <size>
1150 <width>70</width>
1151 <height>16777215</height>
1152 </size>
1153 </property>
1154 <property name="frame">
1155 <bool>true</bool>
1156 </property>
1157 <property name="alignment">
1158 <set>Qt::AlignCenter</set>
1159 </property>
1160 <property name="buttonSymbols">
1161 <enum>QAbstractSpinBox::UpDownArrows</enum>
1162 </property>
1163 <property name="decimals">
1164 <number>2</number>
1165 </property>
1166 <property name="minimum">
1167 <double>0.000000000000000</double>
1168 </property>
1169 <property name="maximum">
1170 <double>21.000000000000000</double>
1171 </property>
1172 <property name="singleStep">
1173 <double>0.100000000000000</double>
1174 </property>
1175 <property name="value">
1176 <double>6.500000000000000</double>
1177 </property>
1178 </widget>
1179 </item>
1180 </layout>
1181 </widget>
1182 </item>
1067 </layout>1183 </layout>
1068 </widget>1184 </widget>
1069 <widget class="QWidget" name="page_2">1185 <widget class="QWidget" name="page_2">
@@ -1733,7 +1849,6 @@
1733 <tabstop>planetScaleMoonCheckBox</tabstop>1849 <tabstop>planetScaleMoonCheckBox</tabstop>
1734 <tabstop>showAtmosphereCheckBox</tabstop>1850 <tabstop>showAtmosphereCheckBox</tabstop>
1735 <tabstop>lightPollutionSpinBox</tabstop>1851 <tabstop>lightPollutionSpinBox</tabstop>
1736 <tabstop>pushButtonAtmosphereDetails</tabstop>
1737 <tabstop>starLabelCheckBox</tabstop>1852 <tabstop>starLabelCheckBox</tabstop>
1738 <tabstop>starsLabelsHorizontalSlider</tabstop>1853 <tabstop>starsLabelsHorizontalSlider</tabstop>
1739 <tabstop>nebulaLabelCheckBox</tabstop>1854 <tabstop>nebulaLabelCheckBox</tabstop>
17401855
=== modified file 'textures/CMakeLists.txt'
--- textures/CMakeLists.txt 2012-10-09 14:36:41 +0000
+++ textures/CMakeLists.txt 2013-03-02 19:13:21 +0000
@@ -1,6 +1,6 @@
1########### install files ###############1########### install files ###############
22
3INSTALL(FILES amalthea.png proteus.png triton.png pluto.png charon.png moon.png mercury.png venus.png earth_cmap.png earth-clouds.png earthmap.png mars.png jupiter.png saturn.png uranus.png neptune.png earth-shadow.png saturn_rings_radial.png uranus_rings.png neptune_rings.png lune.png phobos.png deimos.png io.png europa.png ganymede.png callisto.png mimas.png enceladus.png tethys.png dione.png rhea.png titan.png hyperion.png iapetus.png miranda.png ariel.png umbriel.png titania.png oberon.png fog.png milkyway.png fogridge.png ocl.png gcl.png pnb.png neb.png halo.png pointeur2.png pointeur4.png pointeur5.png star16x16.png sun.png nomap.png haloLune.png planet-indicator.png corona.png DESTINATION share/${PACKAGE}/textures)3INSTALL(FILES neb.png neb_dif.png neb_gal.png neb_gcl.png neb_ocl.png neb_ocln.png neb_pnb.png amalthea.png proteus.png triton.png pluto.png charon.png moon.png mercury.png venus.png earth_cmap.png earth-clouds.png earthmap.png mars.png jupiter.png saturn.png uranus.png neptune.png earth-shadow.png saturn_rings_radial.png uranus_rings.png neptune_rings.png lune.png phobos.png deimos.png io.png europa.png ganymede.png callisto.png mimas.png enceladus.png tethys.png dione.png rhea.png titan.png hyperion.png iapetus.png miranda.png ariel.png umbriel.png titania.png oberon.png fog.png milkyway.png fogridge.png halo.png pointeur2.png pointeur4.png pointeur5.png star16x16.png sun.png nomap.png haloLune.png planet-indicator.png corona.png DESTINATION share/${PACKAGE}/textures)
44
5ADD_CUSTOM_TARGET(splash ALL)5ADD_CUSTOM_TARGET(splash ALL)
6SET(_splashFile logo24bits.png)6SET(_splashFile logo24bits.png)
77
=== added file 'textures/neb_dif.png'
8Binary files textures/neb_dif.png 1970-01-01 00:00:00 +0000 and textures/neb_dif.png 2013-03-02 19:13:21 +0000 differ8Binary files textures/neb_dif.png 1970-01-01 00:00:00 +0000 and textures/neb_dif.png 2013-03-02 19:13:21 +0000 differ
=== added file 'textures/neb_gal.png'
9Binary files textures/neb_gal.png 1970-01-01 00:00:00 +0000 and textures/neb_gal.png 2013-03-02 19:13:21 +0000 differ9Binary files textures/neb_gal.png 1970-01-01 00:00:00 +0000 and textures/neb_gal.png 2013-03-02 19:13:21 +0000 differ
=== renamed file 'textures/gcl.png' => 'textures/neb_gcl.png'
=== renamed file 'textures/ocl.png' => 'textures/neb_ocl.png'
=== added file 'textures/neb_ocln.png'
10Binary files textures/neb_ocln.png 1970-01-01 00:00:00 +0000 and textures/neb_ocln.png 2013-03-02 19:13:21 +0000 differ10Binary files textures/neb_ocln.png 1970-01-01 00:00:00 +0000 and textures/neb_ocln.png 2013-03-02 19:13:21 +0000 differ
=== added file 'textures/neb_ocln.tif'
11Binary files textures/neb_ocln.tif 1970-01-01 00:00:00 +0000 and textures/neb_ocln.tif 2013-03-02 19:13:21 +0000 differ11Binary files textures/neb_ocln.tif 1970-01-01 00:00:00 +0000 and textures/neb_ocln.tif 2013-03-02 19:13:21 +0000 differ
=== renamed file 'textures/pnb.png' => 'textures/neb_pnb.png'