[Kstars-devel] KDE/kdeedu/kstars/kstars/skycomponents

Jason Harris kstars at 30doradus.org
Wed Oct 26 09:01:34 CEST 2005


SVN commit 474367 by harris:

More SkyComposite stuff:

Add ConstellationLinesComposite, which contains a large number of
ConstellationLinesComponents.  Each CLComponent represents a single
series of SkyPoints connected by a continuous line.  Thus, a
constellation figure may be made up of any number of CLComponents.  The
CLComposite ctor reads in the clines.data file, and creates the
CLComponents based on that information.

Added a "bool &found" argument to hasTrail(SkyObject *o, bool &found).
hasTrail loops through all solar system bodies to first find object o,
and then to see if it has a Trail.  It returns true if both of these
conditions are met.  So, a return of false is ambiguous, because you
don't know if it didn't find o, or if o had no Trail.  The "found"
argument gets around this: it is set to true if object o is found.
The practical advantage of this is that the search for o can now be cut
short if it is found and has no Trail, whereas before it would have
had to complete the search in this case.

Add implementations of findByName(QString) to SingleComponent and
ListComponent.  Each object has three names (primary, secondary, and
long); all three names are checked for a match.

CCMAIL: kstars-devel at kde.org



 M  +3 -2      Makefile.am  
 M  +11 -12    README  
 A             constellationlinescomposite.cpp   [License: GPL (v2+)]
 A             constellationlinescomposite.h   [License: GPL (v2+)]
 M  +3 -3      coordinategridcomposite.cpp  
 M  +1 -1      coordinategridcomposite.h  
 M  +9 -0      listcomponent.cpp  
 M  +2 -0      listcomponent.h  
 M  +8 -0      singlecomponent.cpp  
 M  +2 -0      singlecomponent.h  
 M  +1 -0      skycomponent.cpp  
 M  +1 -1      skycomponent.h  
 M  +24 -4     skycomposite.cpp  
 M  +11 -8     skycomposite.h  
 M  +17 -6     skymapcomposite.cpp  
 M  +8 -1      skymapcomposite.h  
 M  +0 -8      solarsystemcomposite.cpp  
 M  +0 -8      solarsystemcomposite.h  
 M  +3 -3      solarsystemlistcomponent.cpp  
 M  +1 -1      solarsystemlistcomponent.h  
 M  +3 -3      solarsystemsinglecomponent.cpp  
 M  +1 -1      solarsystemsinglecomponent.h  




More information about the Kstars-devel mailing list