Bug 95037 - xplanet plugin for display of planets
Summary: xplanet plugin for display of planets
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kstars
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-13 00:11 UTC by Mikolaj Machowski
Modified: 2009-01-15 19:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Add Xplanet support (71.56 KB, patch)
2008-12-19 14:17 UTC, Jérôme SONRIER
Details
Icon of the new page in configure panel (3.51 KB, image/png)
2008-12-19 14:19 UTC, Jérôme SONRIER
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikolaj Machowski 2004-12-13 00:11:39 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

Xplanet (http://xplanet.sf.net) is really nice application for generating views of planets in Solar system. From command line it allows for creating various projections of all planets (rectangular, orthographic, azimuthal, hemisphere, etc.). It would be great thing to make possible to call xplanet from context menu on some object. 

During start kstars could check if xplanet is available, check version (pre 1.0 and post 1.0 has different syntax for command line), if available add item in context menus and maybe some dialogs option to call xplanet.
To make things simplier only post 1.0 should be supported (it also gives more possibilities).

Call would be very simple:
xplanet -earthside -body <planet_name> -geometry 480x480 -date <current_kstars_date>

Stars in the background are by default randomly generated but can also be generated from data - here provided by KStars - even with labels.

Images are distributed separately but are easily available from NASA archives (and no restrictions on use!)

Post 1.0 version allows to use custom configure file with many, many options like use of marker files which can show places of interest but this would be more complicated. Even simple support for xplanet would be really good addition to KStars.
Comment 1 kstars 2005-01-06 07:25:57 UTC
Great idea!  Adding it to the todo list.
Comment 2 Mikolaj Machowski 2008-02-15 20:50:48 UTC
With KDE4 it could be better to adjust Marble for that use.
Comment 3 Mikolaj Machowski 2008-12-07 01:58:49 UTC
In KDE4 Marble should be used instead of xplanet.
Comment 4 Jérôme SONRIER 2008-12-19 14:17:15 UTC
Created attachment 29442 [details]
Add Xplanet support

Hello,

This patch adds Xplanet support. When we right click on a solar system 
object, the popup menu proposes to run Xplanet to generate a view of 
the object. I have add a page in configuration panel where we can 
adjust some options of xplanet.

Here is what the patch makes :
- add a submenu in popup menu for solar system objects to run xplanet 
(kspopupmenu.cpp).
- add two slots in SkyMap (kstars.h, kstars.cpp)
- add a page in configuration panel (kstars.h, kstarsactions.cpp, 
opsxplanet.h, opsxplanet.cpp, opsxplanet.ui)
- modify kstars.kcfg to handle xplanet options
- modify CMakeLists.txt

This patch must be applied in the kdeedu directory.

About marble, I have decided to not use it for the moment because it need some improvments before doing the same work as xplanet.
Comment 5 Jérôme SONRIER 2008-12-19 14:19:52 UTC
Created attachment 29443 [details]
Icon of the new page in configure panel
Comment 6 Jérôme SONRIER 2009-01-15 19:08:46 UTC
SVN commit 911593 by jsonrier:

Adding support for XPlanet program.
Now, Kstars can use XPlanet to display a planet.

CCBUG: 95037
CCMAIL: kstars-devel@kde.org



 M  +4 -0      CMakeLists.txt  
 M  +3 -0      config-kstars.h.cmake  
 M  +13 -3     kstars/CMakeLists.txt  
 M  +12 -0     kstars/kspopupmenu.cpp  
 M  +7 -0      kstars/kstars.h  
 M  +203 -0    kstars/kstars.kcfg  
 M  +9 -0      kstars/kstarsactions.cpp  
 M  +132 -0    kstars/skymap.cpp  
 M  +18 -0     kstars/skymap.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=911593
Comment 7 Akarsh Simha 2009-01-15 19:13:25 UTC
Jérôme has added XPlanet support for the time being till Marble gets the required capabilities.

Closing this wishlist. Thanks Jérôme!
Comment 8 Jérôme SONRIER 2009-01-15 19:15:11 UTC
SVN commit 911595 by jsonrier:

Adding support for XPlanet program (add forgotten files).

CCBUG: 95037
CCMAIL: kstars-devel@kde.org



 AM            icons/hi64-action-kstars_xplanet.png  
 A             opsxplanet.cpp   [License: GPL (v2+)]
 A             opsxplanet.h   [License: GPL (v2+)]
 A             opsxplanet.ui  


WebSVN link: http://websvn.kde.org/?view=rev&revision=911595
Comment 9 Mikolaj Machowski 2009-01-15 19:38:13 UTC
Thanks Jerome.