[Kstars-devel] kdeedu/kstars/kstars

Pablo de Vicente p.devicente at wanadoo.es
Tue Feb 3 08:49:03 CET 2004


CVS commit by pvicente: 

Added funcionality to measure angles bewteen two points in the sky map. To
begin measuring one has to right click on any object of the skymap and select
the appropiate item in the popup menu. This is coded in KSPopMenu. The
coordinates of the clicked object are stored in PreviousClickedObject and a
bool variable is set to true indicating that we are in measuring angle mode.
This part is coded in SkyMap.

To finish the measurement one has to left click on any point of the sky map
and the result will be shown in the status bar together with the name of the
clicked object. This part is coded in skymapevents.cpp. The computation of
the angular distance is done here, the result is shown in the status bar and
the masuring angle mode is set to false.

Still have to add a way to indicate that we are in measuring angle mode. I
want to draw a line from the first point to any place of the sky map. That
line would be updated as we move the mouse while the mode is on. As soon
as we click on the second point, the line will disappear and the result
will be shown in the status bar.

CCMAIL: kstars-devel at kde.org


  M +7 -1      kspopupmenu.cpp   1.16
  M +1 -1      kspopupmenu.h   1.6
  M +9 -0      skymap.cpp   1.116
  M +10 -1     skymap.h   1.51
  M +11 -0     skymapevents.cpp   1.79





More information about the Kstars-devel mailing list