lp:~stellarium/stellarium/gz_viewportOffset
This adds functionality to shift center of the viewport. This can be helpful in a situation where you need cylindrical projection, but with the horizon in the lower half of the screen to show more sky.
This adds new config values projection/
The vertical offset can be changed in the projection setting GUI. (Is there a useful scenario for X shift?)
Select¢er (SPACE) of objects move the objects into screen center. Centering on coordinates put those into the offset screen center, intentionally, to e.g. allow setting a straight horizon.
Are there unwanted side effects? Comments welcome. Else I think it is ready to merge.
- Get this branch:
- bzr branch lp:~stellarium/stellarium/gz_viewportOffset
Branch merges
- Alexander Wolf: Approve
- gzotti: Needs Resubmitting
-
Diff: 651 lines (+263/-60)11 files modifiedsrc/core/StelCore.cpp (+5/-1)
src/core/StelMovementMgr.cpp (+119/-39)
src/core/StelMovementMgr.hpp (+15/-7)
src/core/StelProjector.cpp (+5/-1)
src/core/StelProjector.hpp (+2/-0)
src/gui/ConfigurationDialog.cpp (+2/-0)
src/gui/ViewDialog.cpp (+16/-5)
src/gui/ViewDialog.hpp (+1/-0)
src/gui/viewDialog.ui (+63/-7)
src/scripting/StelMainScriptAPI.cpp (+34/-0)
src/scripting/StelMainScriptAPI.hpp (+1/-0)
Related bugs
Bug #1299063: more sky, less landscape (horizon elevation) | Wishlist | Fix Released |
Related blueprints
Branch information
Recent revisions
- 7737. By gzotti
-
Smoothed zooming (keep centered object in center for offset view mode), and repaired offset adjusting for all view frame (mount) modes
- 7733. By gzotti
-
All projections seem OK with an off-center viewport. Configure via GUI is fine, values safed/retrieved to config.ini. Selection/
auto-center is of course strange now, with object lock point not in screen center. - 7732. By gzotti
-
Added viewport center offset. Useful e.g. to shift horizon down to show more of the sky.
This adds config values projection/viewport_ center_ offset_ x, projection/ viewport_ center_ offset_ y, relative to screen size.
The GUI allows only vertical shift (I don't see horizontal shift useful)
The shift range limits are not worked out yet, some projections misbehave (crash). - 7730. By Alexander Wolf
-
Added a new behaviour for drawing of orbit for selected planet - drawing of the orbits of 'hierarchical group' (parent and all their childrens) of the selected celestial body (disabled by default). Behaviour can be switched through viewing/
flag_isolated_ orbits = false option.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:stellarium