[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kdeedu_kstars_htm/kstars/kstars
From:       James Bowlin <bowlin () mindspring ! com>
Date:       2007-07-31 22:30:13
Message-ID: 1185921013.717811.12968.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 694853 by jbowlin:

Added planets, comets, and Jupiter's moons to the list of classes using
SkyLabeler to prevent label overlap.  Cleaned up the SkyLabeler interface
by adding drawLabel() and drawOffsetLabel() methods.  In addition, added
two static methods to SkyLabeler: setZoomFont() and zoomOffset() which
allows us to share this code with StarObject and SkyObject so we can
adjust the parameters for these routines in just one spot and always
stay synced with the drawLabel() routines in those other classes.

Added an intermediate font size between the one used when zoomed out
and zoomed in.

AFAIK, all classes in skycomponents that write labels (except
LineListComponent) are using the SkyLabeler now.

The only thing left to do with the SkyLabeler is time shifting which
will let us set the priority of the labels independently of when the
objects themselves get drawn.  I think this would be best implemented
using addLabel( point, text, LABEL_CATEGORY ) where we have predefined
categories for each type of label.  This will also make it possible for
us to let the users choose the label priorities.




 M  +4 -26     skycomponents/asteroidscomponent.cpp  
 M  +27 -22    skycomponents/cometscomponent.cpp  
 M  +4 -0      skycomponents/cometscomponent.h  
 M  +5 -7      skycomponents/constellationnamescomponent.cpp  
 M  +52 -51    skycomponents/jupitermoonscomponent.cpp  
 M  +2 -0      skycomponents/jupitermoonscomponent.h  
 M  +90 -16    skycomponents/skylabeler.cpp  
 M  +83 -28    skycomponents/skylabeler.h  
 M  +2 -1      skycomponents/skymapcomposite.cpp  
 M  +61 -55    skycomponents/solarsystemsinglecomponent.cpp  
 M  +2 -0      skycomponents/solarsystemsinglecomponent.h  
 M  +3 -28     skycomponents/starcomponent.cpp  
 M  +4 -10     skyobject.cpp  
 M  +3 -8      starobject.cpp  


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic