Revision 669815

Go back to digest for 3rd June 2007

Bug Fixes in Educational

Jason Harris committed changes in /trunk/KDE/kdeedu/kstars/kstars/skycomponents:

Fixed a bug that Akarsh reported where Jupiter moons were not drawn when they were on the far side of their orbit. This was basically an incomplete port of the old way to get the z-order correct between Jupiter and its moons.

Now, we loop over the four moons. Moons further than Jupiter are drawn immediately; those nearer are stored in a list. Then Jupiter is drawn. Then the near moons are drawn. Finally, the moon name labels are drawn (so they will always appear in front of Jupiter).

To do this, I am now storing a pointer to the SolarSystemSingleComponent representing Jupiter in JupiterMoonsComponent.

I also commented out the dubug string reporting the positions of earth satellites.

File Changes

Modified 5 files
  • /trunk/KDE/kdeedu/kstars/kstars/skycomponents
  •   /jupitermoonscomponent.cpp
  •   /jupitermoonscomponent.h
  •   /satellitecomposite.cpp
  •   /solarsystemcomposite.cpp
  •   /solarsystemsinglecomponent.h
5 files changed in total