Merge lp:~stellarium/stellarium/meridian-of-opposition into lp:stellarium
- meridian-of-opposition
- Merge into trunk
Status: | Merged |
---|---|
Merged at revision: | 7432 |
Proposed branch: | lp:~stellarium/stellarium/meridian-of-opposition |
Merge into: | lp:stellarium |
Diff against target: |
423 lines (+120/-22) 10 files modified
data/default_config.ini.cmake (+2/-0) plugins/Oculars/src/Oculars.cpp (+4/-0) plugins/Oculars/src/Oculars.hpp (+1/-0) plugins/TextUserInterface/src/TextUserInterface.cpp (+8/-1) src/core/modules/GridLinesMgr.cpp (+50/-1) src/core/modules/GridLinesMgr.hpp (+33/-8) src/gui/ConfigurationDialog.cpp (+1/-0) src/gui/ViewDialog.cpp (+1/-0) src/gui/viewDialog.ui (+17/-12) src/scripting/StelMainScriptAPI.cpp (+3/-0) |
To merge this branch: | bzr merge lp:~stellarium/stellarium/meridian-of-opposition |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
gzotti | Approve | ||
Review via email: mp+250664@code.launchpad.net |
Commit message
Description of the change
This patch introduce the new line on celestial sphere - meridian of opposition. It's a line in the ecliptic coordinates system, who passes through both celestial pole and the Sun (and, of course, through opposition point). This line is useful for planning observation of minor planets and comets. Plus it can be use for get the time of opposition of the big planets and the Moon.
gzotti (georg-zotti) wrote : | # |
Alexander Wolf (alexwolf) wrote : | # |
I tried search an official term but no success. Official term for point crossing ecliptic and this meridian is opposition point.
gzotti (georg-zotti) wrote : | # |
Yes, the intersecting point is the opposition point. If you mark a longitudinal arc in ecliptical coordinates, let's call this longitude, not meridian. So I propose "opposition longitude" or "oppositional longitude".
OK, building complete. I am afraid this should be split into two semi-circles:
opposition longitude
conjunction longitude (the sun is here!)
Else this is a nice, very welcome addition!
Alexander Wolf (alexwolf) wrote : | # |
The term "opposition longitude" is acceptable here.
But I think splitting for usage of two names for one line is not possible here.
gzotti (georg-zotti) wrote : | # |
Yes, technically you should use two half-circles. Else we will have a misleading "opposition longitude" circle with the sun in it.
Alexander Wolf (alexwolf) wrote : | # |
Maybe just "ecliptic longitude"? I guess implementation two half-circles with names is not easy.
gzotti (georg-zotti) wrote : | # |
No, ecl. longitude is the general term, like right ascension.
You may have to use StelPainter:
Alexander Wolf (alexwolf) wrote : | # |
Problem not in the line, problem with placing of strings with naming of the line.
gzotti (georg-zotti) wrote : | # |
Ah yes, this is somewhat complicated. Look into my ArchaeoLines plugin to see some more usage examples. (This was "borrowed" itself from the gridlines.)
- 7423. By Alexander Wolf
-
refactored code
Alexander Wolf (alexwolf) wrote : | # |
I've refactored the code and I think he has compromise in the implementation now.
gzotti (georg-zotti) wrote : | # |
Well, it's renamed. (Will translate to "OK-Länge" or "KO-Länge" in German :-) I still would prefer two separate half-circles, but it's likely OK for now. Other voices?
Preview Diff
1 | === modified file 'data/default_config.ini.cmake' |
2 | --- data/default_config.ini.cmake 2015-02-11 22:54:07 +0000 |
3 | +++ data/default_config.ini.cmake 2015-02-24 16:54:09 +0000 |
4 | @@ -130,6 +130,7 @@ |
5 | ecliptic_color = 0.6,0.2,0.2 |
6 | ecliptic_J2000_color = 0.3,0.3,0.1 |
7 | meridian_color = 0.2,0.6,0.2 |
8 | +longitude_color = 0.2,0.4,0.4 |
9 | horizon_color = 0.2,0.6,0.2 |
10 | const_lines_color = 0.1,0.1,0.3 |
11 | const_names_color = 0.2,0.4,0.7 |
12 | @@ -203,6 +204,7 @@ |
13 | flag_equator_line = false |
14 | flag_ecliptic_line = false |
15 | flag_meridian_line = false |
16 | +flag_longitude_line = false |
17 | flag_horizon_line = false |
18 | flag_cardinal_points = true |
19 | flag_gravity_labels = false |
20 | |
21 | === modified file 'plugins/Oculars/src/Oculars.cpp' |
22 | --- plugins/Oculars/src/Oculars.cpp 2015-02-18 22:10:28 +0000 |
23 | +++ plugins/Oculars/src/Oculars.cpp 2015-02-24 16:54:09 +0000 |
24 | @@ -110,6 +110,7 @@ |
25 | flagEclipticLine(false), |
26 | flagEclipticJ2000Grid(false), |
27 | flagMeridianLine(false), |
28 | + flagLongitudeLine(false), |
29 | flagHorizonLine(false), |
30 | flagGalacticEquatorLine(false), |
31 | flagAdaptation(false), |
32 | @@ -1782,6 +1783,7 @@ |
33 | gridManager->setFlagEclipticLine(flagEclipticLine); |
34 | gridManager->setFlagEclipticJ2000Grid(flagEclipticJ2000Grid); |
35 | gridManager->setFlagMeridianLine(flagMeridianLine); |
36 | + gridManager->setFlagLongitudeLine(flagLongitudeLine); |
37 | gridManager->setFlagHorizonLine(flagHorizonLine); |
38 | gridManager->setFlagGalacticEquatorLine(flagGalacticEquatorLine); |
39 | skyManager->setFlagLuminanceAdaptation(flagAdaptation); |
40 | @@ -1825,6 +1827,7 @@ |
41 | flagEclipticLine = gridManager->getFlagEclipticLine(); |
42 | flagEclipticJ2000Grid = gridManager->getFlagEclipticJ2000Grid(); |
43 | flagMeridianLine = gridManager->getFlagMeridianLine(); |
44 | + flagLongitudeLine = gridManager->getFlagLongitudeLine(); |
45 | flagHorizonLine = gridManager->getFlagHorizonLine(); |
46 | flagGalacticEquatorLine = gridManager->getFlagGalacticEquatorLine(); |
47 | |
48 | @@ -1865,6 +1868,7 @@ |
49 | gridManager->setFlagEclipticLine(false); |
50 | gridManager->setFlagEclipticJ2000Grid(false); |
51 | gridManager->setFlagMeridianLine(false); |
52 | + gridManager->setFlagLongitudeLine(false); |
53 | gridManager->setFlagHorizonLine(false); |
54 | gridManager->setFlagGalacticEquatorLine(false); |
55 | skyManager->setFlagLuminanceAdaptation(false); |
56 | |
57 | === modified file 'plugins/Oculars/src/Oculars.hpp' |
58 | --- plugins/Oculars/src/Oculars.hpp 2015-02-18 22:21:55 +0000 |
59 | +++ plugins/Oculars/src/Oculars.hpp 2015-02-24 16:54:09 +0000 |
60 | @@ -219,6 +219,7 @@ |
61 | bool flagEclipticLine; //!< Flag to track if EclipticLine was displayed at activation. |
62 | bool flagEclipticJ2000Grid; //!< Flag to track if EclipticJ2000Grid was displayed at activation. |
63 | bool flagMeridianLine; //!< Flag to track if MeridianLine was displayed at activation. |
64 | + bool flagLongitudeLine; //!< Flag to track if LongitudeLine was displayed at activation. |
65 | bool flagHorizonLine; //!< Flag to track if HorizonLine was displayed at activation. |
66 | bool flagGalacticEquatorLine; //!< Flag to track if GalacticEquatorLine was displayed at activation. |
67 | bool flagAdaptation; //!< Flag to track if adaptationCheckbox was enabled at activation. |
68 | |
69 | === modified file 'plugins/TextUserInterface/src/TextUserInterface.cpp' |
70 | --- plugins/TextUserInterface/src/TextUserInterface.cpp 2015-02-15 12:40:12 +0000 |
71 | +++ plugins/TextUserInterface/src/TextUserInterface.cpp 2015-02-24 16:54:09 +0000 |
72 | @@ -373,6 +373,11 @@ |
73 | SLOT(setColorGalacticEquatorLine(Vec3f)), |
74 | gridLinesMgr->getColorGalacticEquatorLine(), |
75 | m5, m5_19); |
76 | + TuiNode* m5_21 = new TuiNodeColor(N_("Opposition/conjunction longitude line"), |
77 | + gridLinesMgr, |
78 | + SLOT(setColorLongitudeLine(Vec3f)), |
79 | + gridLinesMgr->getColorLongitudeLine(), |
80 | + m5, m5_20); |
81 | |
82 | m5_1->setNextNode(m5_2); |
83 | m5_2->setNextNode(m5_3); |
84 | @@ -393,7 +398,8 @@ |
85 | m5_17->setNextNode(m5_18); |
86 | m5_18->setNextNode(m5_19); |
87 | m5_19->setNextNode(m5_20); |
88 | - m5_20->setNextNode(m5_1); |
89 | + m5_20->setNextNode(m5_21); |
90 | + m5_21->setNextNode(m5_1); |
91 | m5_1->loopToTheLast(); |
92 | m5->setChildNode(m5_1); |
93 | |
94 | @@ -810,6 +816,7 @@ |
95 | conf->setValue("color/planet_orbits_color", colToConf(ssmgr->getOrbitsColor())); |
96 | conf->setValue("color/object_trails_color", colToConf(ssmgr->getTrailsColor())); |
97 | conf->setValue("color/meridian_color", colToConf(glmgr->getColorMeridianLine())); |
98 | + conf->setValue("color/longitude_color", colToConf(glmgr->getColorLongitudeLine())); |
99 | conf->setValue("color/azimuthal_color", colToConf(glmgr->getColorAzimuthalGrid())); |
100 | conf->setValue("color/equator_color", colToConf(glmgr->getColorEquatorGrid())); |
101 | conf->setValue("color/equatorial_J2000_color", colToConf(glmgr->getColorEquatorJ2000Grid())); |
102 | |
103 | === modified file 'src/core/modules/GridLinesMgr.cpp' |
104 | --- src/core/modules/GridLinesMgr.cpp 2015-02-18 22:10:28 +0000 |
105 | +++ src/core/modules/GridLinesMgr.cpp 2015-02-24 16:54:09 +0000 |
106 | @@ -70,7 +70,8 @@ |
107 | ECLIPTIC, |
108 | MERIDIAN, |
109 | HORIZON, |
110 | - GALACTICEQUATOR |
111 | + GALACTICEQUATOR, |
112 | + LONGITUDE |
113 | }; |
114 | // Create and precompute positions of a SkyGrid |
115 | SkyLine(SKY_LINE_TYPE _line_type = EQUATOR); |
116 | @@ -601,6 +602,11 @@ |
117 | frameType = StelCore::FrameGalactic; |
118 | label = q_("Galactic Equator"); |
119 | break; |
120 | + case LONGITUDE: |
121 | + frameType = StelCore::FrameObservercentricEcliptic; |
122 | + // TRANSLATORS: Full term is "opposition/conjunction longitude" |
123 | + label = q_("O./C. longitude"); |
124 | + break; |
125 | } |
126 | } |
127 | |
128 | @@ -636,6 +642,16 @@ |
129 | meridianSphericalCap.n.set(0,1,0); |
130 | } |
131 | |
132 | + if (line_type==LONGITUDE) |
133 | + { |
134 | + Vec3d coord; |
135 | + double lambda, beta; |
136 | + StelUtils::rectToSphe(&lambda, &beta, core->getCurrentPlanet()->getHeliocentricEclipticPos()); |
137 | + StelUtils::spheToRect(lambda + M_PI/2., 0., coord); |
138 | + meridianSphericalCap.n.set(coord[0],coord[1],coord[2]); |
139 | + fpt.set(0,0,1); |
140 | + } |
141 | + |
142 | Vec3d p1, p2; |
143 | if (!SphericalCap::intersectionPoints(viewPortSphericalCap, meridianSphericalCap, p1, p2)) |
144 | { |
145 | @@ -686,6 +702,7 @@ |
146 | meridianLine = new SkyLine(SkyLine::MERIDIAN); |
147 | horizonLine = new SkyLine(SkyLine::HORIZON); |
148 | galacticEquatorLine = new SkyLine(SkyLine::GALACTICEQUATOR); |
149 | + longitudeLine = new SkyLine(SkyLine::LONGITUDE); |
150 | } |
151 | |
152 | GridLinesMgr::~GridLinesMgr() |
153 | @@ -700,6 +717,7 @@ |
154 | delete meridianLine; |
155 | delete horizonLine; |
156 | delete galacticEquatorLine; |
157 | + delete longitudeLine; |
158 | } |
159 | |
160 | /************************************************************************* |
161 | @@ -727,6 +745,7 @@ |
162 | setFlagMeridianLine(conf->value("viewing/flag_meridian_line").toBool()); |
163 | setFlagHorizonLine(conf->value("viewing/flag_horizon_line").toBool()); |
164 | setFlagGalacticEquatorLine(conf->value("viewing/flag_galactic_equator_line").toBool()); |
165 | + setFlagLongitudeLine(conf->value("viewing/flag_longitude_line").toBool()); |
166 | |
167 | StelApp& app = StelApp::getInstance(); |
168 | connect(&app, SIGNAL(colorSchemeChanged(const QString&)), this, SLOT(setStelStyle(const QString&))); |
169 | @@ -743,6 +762,7 @@ |
170 | addAction("actionShow_Ecliptic_J2000_Grid", displayGroup, N_("Ecliptic J2000 grid"), "eclipticJ2000GridDisplayed"); |
171 | addAction("actionShow_Galactic_Grid", displayGroup, N_("Galactic grid"), "galacticGridDisplayed"); |
172 | addAction("actionShow_Galactic_Equator_Line", displayGroup, N_("Galactic equator"), "galacticEquatorLineDisplayed"); |
173 | + addAction("actionShow_Longitude_Line", displayGroup, N_("Opposition/conjunction longitude line"), "longitudeLineDisplayed"); |
174 | } |
175 | |
176 | void GridLinesMgr::update(double deltaTime) |
177 | @@ -758,6 +778,7 @@ |
178 | meridianLine->update(deltaTime); |
179 | horizonLine->update(deltaTime); |
180 | galacticEquatorLine->update(deltaTime); |
181 | + longitudeLine->update(deltaTime); |
182 | } |
183 | |
184 | void GridLinesMgr::draw(StelCore* core) |
185 | @@ -772,6 +793,7 @@ |
186 | meridianLine->draw(core); |
187 | horizonLine->draw(core); |
188 | galacticEquatorLine->draw(core); |
189 | + longitudeLine->draw(core); |
190 | } |
191 | |
192 | void GridLinesMgr::setStelStyle(const QString& section) |
193 | @@ -790,6 +812,7 @@ |
194 | setColorMeridianLine(StelUtils::strToVec3f(conf->value(section+"/meridian_color", defaultColor).toString())); |
195 | setColorHorizonLine(StelUtils::strToVec3f(conf->value(section+"/horizon_color", defaultColor).toString())); |
196 | setColorGalacticEquatorLine(StelUtils::strToVec3f(conf->value(section+"/galactic_equator_color", defaultColor).toString())); |
197 | + setColorLongitudeLine(StelUtils::strToVec3f(conf->value(section+"/longitude_color", defaultColor).toString())); |
198 | } |
199 | |
200 | void GridLinesMgr::updateLineLabels() |
201 | @@ -799,6 +822,7 @@ |
202 | meridianLine->updateLabel(); |
203 | horizonLine->updateLabel(); |
204 | galacticEquatorLine->updateLabel(); |
205 | + longitudeLine->updateLabel(); |
206 | } |
207 | |
208 | //! Set flag for displaying Azimuthal Grid |
209 | @@ -1002,6 +1026,31 @@ |
210 | } |
211 | } |
212 | |
213 | +//! Set flag for displaying opposition/conjunction longitude line |
214 | +void GridLinesMgr::setFlagLongitudeLine(const bool displayed) |
215 | +{ |
216 | + if(displayed != longitudeLine->isDisplayed()) { |
217 | + longitudeLine->setDisplayed(displayed); |
218 | + emit longitudeLineDisplayedChanged(displayed); |
219 | + } |
220 | +} |
221 | +//! Get flag for displaying opposition/conjunction longitude line |
222 | +bool GridLinesMgr::getFlagLongitudeLine(void) const |
223 | +{ |
224 | + return longitudeLine->isDisplayed(); |
225 | +} |
226 | +Vec3f GridLinesMgr::getColorLongitudeLine(void) const |
227 | +{ |
228 | + return longitudeLine->getColor(); |
229 | +} |
230 | +void GridLinesMgr::setColorLongitudeLine(const Vec3f& newColor) |
231 | +{ |
232 | + if(newColor != longitudeLine->getColor()) { |
233 | + longitudeLine->setColor(newColor); |
234 | + emit longitudeLineColorChanged(newColor); |
235 | + } |
236 | +} |
237 | + |
238 | //! Set flag for displaying Horizon Line |
239 | void GridLinesMgr::setFlagHorizonLine(const bool displayed) |
240 | { |
241 | |
242 | === modified file 'src/core/modules/GridLinesMgr.hpp' |
243 | --- src/core/modules/GridLinesMgr.hpp 2014-09-10 14:41:40 +0000 |
244 | +++ src/core/modules/GridLinesMgr.hpp 2015-02-24 16:54:09 +0000 |
245 | @@ -92,6 +92,14 @@ |
246 | READ getColorMeridianLine |
247 | WRITE setColorMeridianLine |
248 | NOTIFY meridianLineColorChanged) |
249 | + Q_PROPERTY(bool longitudeLineDisplayed |
250 | + READ getFlagLongitudeLine |
251 | + WRITE setFlagLongitudeLine |
252 | + NOTIFY longitudeLineDisplayedChanged) |
253 | + Q_PROPERTY(Vec3f longitudeLineColor |
254 | + READ getColorLongitudeLine |
255 | + WRITE setColorLongitudeLine |
256 | + NOTIFY longitudeLineColorChanged) |
257 | Q_PROPERTY(bool horizonLineDisplayed |
258 | READ getFlagHorizonLine |
259 | WRITE setFlagHorizonLine |
260 | @@ -252,6 +260,20 @@ |
261 | //! @endcode |
262 | void setColorMeridianLine(const Vec3f& newColor); |
263 | |
264 | + //! Setter for displaying opposition/conjunction longitude line. |
265 | + void setFlagLongitudeLine(const bool displayed); |
266 | + //! Accessor for displaying opposition/conjunction longitude line. |
267 | + bool getFlagLongitudeLine(void) const; |
268 | + //! Get the current color of the opposition/conjunction longitude line. |
269 | + Vec3f getColorLongitudeLine(void) const; |
270 | + //! Set the color of the opposition/conjunction longitude line. |
271 | + //! @param newColor The color of opposition/conjunction longitude line |
272 | + //! @code |
273 | + //! // example of usage in scripts |
274 | + //! GridLinesMgr.setColorLongitudeLine(Vec3f(1.0,0.0,0.0)); |
275 | + //! @endcode |
276 | + void setColorLongitudeLine(const Vec3f& newColor); |
277 | + |
278 | //! Setter for displaying Horizon Line. |
279 | void setFlagHorizonLine(const bool displayed); |
280 | //! Accessor for displaying Horizon Line. |
281 | @@ -302,6 +324,8 @@ |
282 | void eclipticLineColorChanged(const Vec3f & newColor) const; |
283 | void meridianLineDisplayedChanged(const bool displayed) const; |
284 | void meridianLineColorChanged(const Vec3f & newColor) const; |
285 | + void longitudeLineDisplayedChanged(const bool displayed) const; |
286 | + void longitudeLineColorChanged(const Vec3f & newColor) const; |
287 | void horizonLineDisplayedChanged(const bool displayed) const; |
288 | void horizonLineColorChanged(const Vec3f & newColor) const; |
289 | void galacticEquatorLineDisplayedChanged(const bool displayed) const; |
290 | @@ -317,14 +341,15 @@ |
291 | void updateLineLabels(); |
292 | |
293 | private: |
294 | - SkyGrid * equGrid; // Equatorial grid |
295 | - SkyGrid * equJ2000Grid; // Equatorial J2000 grid |
296 | - SkyGrid * galacticGrid; // Galactic grid |
297 | - SkyGrid * eclJ2000Grid; // Ecliptic J2000 grid |
298 | - SkyGrid * aziGrid; // Azimuthal grid |
299 | - SkyLine * equatorLine; // Celestial Equator line |
300 | - SkyLine * eclipticLine; // Ecliptic line |
301 | - SkyLine * meridianLine; // Meridian line |
302 | + SkyGrid * equGrid; // Equatorial grid |
303 | + SkyGrid * equJ2000Grid; // Equatorial J2000 grid |
304 | + SkyGrid * galacticGrid; // Galactic grid |
305 | + SkyGrid * eclJ2000Grid; // Ecliptic J2000 grid |
306 | + SkyGrid * aziGrid; // Azimuthal grid |
307 | + SkyLine * equatorLine; // Celestial Equator line |
308 | + SkyLine * eclipticLine; // Ecliptic line |
309 | + SkyLine * meridianLine; // Meridian line |
310 | + SkyLine * longitudeLine; // Opposition/conjunction longitude line |
311 | SkyLine * horizonLine; // Horizon line |
312 | SkyLine * galacticEquatorLine; // line depicting the Galactic equator as defined by the IAU definition of Galactic coordinates (System II, 1958) |
313 | }; |
314 | |
315 | === modified file 'src/gui/ConfigurationDialog.cpp' |
316 | --- src/gui/ConfigurationDialog.cpp 2015-02-23 09:12:19 +0000 |
317 | +++ src/gui/ConfigurationDialog.cpp 2015-02-24 16:54:09 +0000 |
318 | @@ -568,6 +568,7 @@ |
319 | conf->setValue("viewing/flag_ecliptic_line", glmgr->getFlagEclipticLine()); |
320 | conf->setValue("viewing/flag_ecliptic_J2000_grid", glmgr->getFlagEclipticJ2000Grid()); |
321 | conf->setValue("viewing/flag_meridian_line", glmgr->getFlagMeridianLine()); |
322 | + conf->setValue("viewing/flag_longitude_line", glmgr->getFlagLongitudeLine()); |
323 | conf->setValue("viewing/flag_horizon_line", glmgr->getFlagHorizonLine()); |
324 | conf->setValue("viewing/flag_equatorial_J2000_grid", glmgr->getFlagEquatorJ2000Grid()); |
325 | conf->setValue("viewing/flag_galactic_grid", glmgr->getFlagGalacticGrid()); |
326 | |
327 | === modified file 'src/gui/ViewDialog.cpp' |
328 | --- src/gui/ViewDialog.cpp 2015-01-05 13:26:56 +0000 |
329 | +++ src/gui/ViewDialog.cpp 2015-02-24 16:54:09 +0000 |
330 | @@ -269,6 +269,7 @@ |
331 | connectCheckBox(ui->showEquatorLineCheckBox, "actionShow_Equator_Line"); |
332 | connectCheckBox(ui->showEclipticLineCheckBox, "actionShow_Ecliptic_Line"); |
333 | connectCheckBox(ui->showMeridianLineCheckBox, "actionShow_Meridian_Line"); |
334 | + connectCheckBox(ui->showLongitudeLineCheckBox, "actionShow_Longitude_Line"); |
335 | connectCheckBox(ui->showHorizonLineCheckBox, "actionShow_Horizon_Line"); |
336 | connectCheckBox(ui->showEquatorialGridCheckBox, "actionShow_Equatorial_Grid"); |
337 | connectCheckBox(ui->showGalacticGridCheckBox, "actionShow_Galactic_Grid"); |
338 | |
339 | === modified file 'src/gui/viewDialog.ui' |
340 | --- src/gui/viewDialog.ui 2015-01-04 17:48:41 +0000 |
341 | +++ src/gui/viewDialog.ui 2015-02-24 16:54:09 +0000 |
342 | @@ -1466,6 +1466,13 @@ |
343 | </property> |
344 | </widget> |
345 | </item> |
346 | + <item> |
347 | + <widget class="QCheckBox" name="showCardinalPointsCheckBox"> |
348 | + <property name="text"> |
349 | + <string>Cardinal points</string> |
350 | + </property> |
351 | + </widget> |
352 | + </item> |
353 | </layout> |
354 | </item> |
355 | <item> |
356 | @@ -1520,21 +1527,20 @@ |
357 | </property> |
358 | </widget> |
359 | </item> |
360 | + <item> |
361 | + <widget class="QCheckBox" name="showLongitudeLineCheckBox"> |
362 | + <property name="toolTip"> |
363 | + <string>Opposition/conjunction longitude line - the line of ecliptic longitude which passes through the both ecliptic poles, the Sun and opposition point.</string> |
364 | + </property> |
365 | + <property name="text"> |
366 | + <string>O./C. longitude</string> |
367 | + </property> |
368 | + </widget> |
369 | + </item> |
370 | </layout> |
371 | </item> |
372 | </layout> |
373 | </item> |
374 | - <item> |
375 | - <layout class="QVBoxLayout" name="verticalLayout_16"> |
376 | - <item> |
377 | - <widget class="QCheckBox" name="showCardinalPointsCheckBox"> |
378 | - <property name="text"> |
379 | - <string>Cardinal points</string> |
380 | - </property> |
381 | - </widget> |
382 | - </item> |
383 | - </layout> |
384 | - </item> |
385 | </layout> |
386 | </widget> |
387 | </item> |
388 | @@ -2128,7 +2134,6 @@ |
389 | <tabstop>showEclipticGridJ2000CheckBox</tabstop> |
390 | <tabstop>showAzimuthalGridCheckBox</tabstop> |
391 | <tabstop>showGalacticGridCheckBox</tabstop> |
392 | - <tabstop>showCardinalPointsCheckBox</tabstop> |
393 | <tabstop>showEquatorLineCheckBox</tabstop> |
394 | <tabstop>showMeridianLineCheckBox</tabstop> |
395 | <tabstop>showEclipticLineCheckBox</tabstop> |
396 | |
397 | === modified file 'src/scripting/StelMainScriptAPI.cpp' |
398 | --- src/scripting/StelMainScriptAPI.cpp 2015-01-25 17:35:08 +0000 |
399 | +++ src/scripting/StelMainScriptAPI.cpp 2015-02-24 16:54:09 +0000 |
400 | @@ -967,6 +967,7 @@ |
401 | glmgr->setFlagEquatorLine(false); |
402 | glmgr->setFlagEclipticLine(false); |
403 | glmgr->setFlagMeridianLine(false); |
404 | + glmgr->setFlagLongitudeLine(false); |
405 | glmgr->setFlagHorizonLine(false); |
406 | glmgr->setFlagGalacticEquatorLine(false); |
407 | glmgr->setFlagEquatorJ2000Grid(false); |
408 | @@ -1000,6 +1001,7 @@ |
409 | glmgr->setFlagEquatorLine(false); |
410 | glmgr->setFlagEclipticLine(false); |
411 | glmgr->setFlagMeridianLine(false); |
412 | + glmgr->setFlagLongitudeLine(false); |
413 | glmgr->setFlagHorizonLine(false); |
414 | glmgr->setFlagGalacticEquatorLine(false); |
415 | glmgr->setFlagEquatorJ2000Grid(false); |
416 | @@ -1033,6 +1035,7 @@ |
417 | glmgr->setFlagEquatorLine(false); |
418 | glmgr->setFlagEclipticLine(false); |
419 | glmgr->setFlagMeridianLine(false); |
420 | + glmgr->setFlagLongitudeLine(false); |
421 | glmgr->setFlagHorizonLine(false); |
422 | glmgr->setFlagGalacticEquatorLine(false); |
423 | glmgr->setFlagEquatorJ2000Grid(false); |
Just downloading...
While I am waiting, a first comment:
It sounds interesting, but but I don't like the name, it's misleading I think. "Meridian" is IMHO always linked to earth's poles. A great circle through ecliptic poles opposite the sun ... I have no name for this, just "opposition longitude"? Or is there an IAU standard for this name?