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

Jason Harris kstars at 30doradus.org
Tue Oct 25 10:08:23 CEST 2005


SVN commit 473988 by harris:

More SkyComposite work.  Still doing structural reshuffling, I'm not 
even at the point where I am trying to compile yet :/  Sorry it's taking 
so long!
++++++++++++++++++++++++

Added README file describing the structure of these classes.  Hopefully 
this document will provide some indication of what the heck is going 
on in this subdir.

Removed PlanetComponent (deprecated by SolarSystemSingleComponent)

Added PointListComponent as a new baseclass for Components consisting of 
a list of SkyPoints (as proposed to the list yesterday)

Fix inheritance for all classes: most were still deriving directly from 
SkyComponent, rather than SingleComponent, ListComponent, etc.

Added the "visibleMethod" function-pointer argument to all ctors.

ConstellationBoundaryComponent is derived directly from SkyComponent, 
because it contains a list of CSegments, not SkyObjects or SkyPoints.

The update() function is defined only for the classes which inherit 
SkyComponent directly: SkyComposite, SolarSystemComposite, 
SingleComponent, ListComponent, and ConstellationBoundaryComponent.  All 
other classes inherit update() from one of these.

The updatePlanets() function is defined for SkyComponent 
(empty), SkyComposite, SolarSystemComposite, 
SolarSystemSingleComponent, and SolarSystemListComponent.

update(), updatePlanets() and updateMoons() get default values for some 
arguments; rename needNewCoords argument to doPrecession

Added addTrail(o), hasTrail(o), removeTrail(o) to solar-system related 
Components.  drawTrails() function defined in the Composite classes, and 
in the SSSingle and SSList Components.


TODO: 
1. updateMoons() only defined for certain classes

2. Finish adding default arg values to update*() and finish renaming 
needNewCoords to doPrecession.  Sorry to leave it in an inconsistent 
state, but it's already waaay past bedtime...

3. A seemingly endless stream of reorganizing, refactoring, and 
rethinking.  Pretty amazing for code that's never been compiled.

CCMAIL: kstars-devel at kde.org



 M  +2 -2      Makefile.am  
 A             README  
 M  +3 -5      asteroidscomponent.cpp  
 M  +2 -13     asteroidscomponent.h  
 M  +3 -5      cometscomponent.cpp  
 M  +9 -21     cometscomponent.h  
 M  +4 -4      constellationboundarycomponent.cpp  
 M  +25 -10    constellationboundarycomponent.h  
 M  +2 -13     constellationlinescomponent.cpp  
 M  +3 -13     constellationlinescomponent.h  
 M  +2 -13     constellationnamescomponent.cpp  
 M  +3 -13     constellationnamescomponent.h  
 M  +2 -9      coordinategridcomponent.cpp  
 M  +2 -12     coordinategridcomponent.h  
 M  +1 -1      customcatalogscomponent.cpp  
 M  +0 -8      customcatalogscomponent.h  
 M  +1 -30     deepskycomponent.cpp  
 M  +2 -15     deepskycomponent.h  
 M  +1 -2      eclipticcomponent.cpp  
 M  +2 -14     eclipticcomponent.h  
 M  +1 -18     equatorcomponent.cpp  
 M  +3 -13     equatorcomponent.h  
 M  +2 -18     horizoncomponent.cpp  
 M  +1 -12     horizoncomponent.h  
 M  +0 -5      jupitermoonscomponent.cpp  
 M  +0 -2      jupitermoonscomponent.h  
 M  +11 -22    listcomponent.cpp  
 M  +15 -1     listcomponent.h  
 M  +6 -21     milkywaycomponent.cpp  
 M  +4 -10     milkywaycomponent.h  
 M  +2 -5      mooncomponent.cpp  
 M  +1 -1      mooncomponent.h  
 D             planetcomponent.cpp  
 D             planetcomponent.h  
 M  +0 -11     plutocomponent.h  
 A             pointlistcomponent.cpp   [License: GPL (v2+)]
 A             pointlistcomponent.h   [License: GPL (v2+)]
 M  +11 -2     singlecomponent.cpp  
 M  +15 -1     singlecomponent.h  
 M  +2 -1      skycomponent.cpp  
 M  +31 -20    skycomponent.h  
 M  +2 -2      skycomposite.cpp  
 M  +50 -11    skycomposite.h  
 M  +7 -0      solarsystemcomposite.cpp  
 M  +6 -0      solarsystemcomposite.h  
 M  +108 -3    solarsystemlistcomponent.cpp  
 M  +31 -14    solarsystemlistcomponent.h  
 M  +118 -4    solarsystemsinglecomponent.cpp  
 M  +38 -12    solarsystemsinglecomponent.h  
 M  +2 -20     starcomponent.cpp  
 M  +2 -5      starcomponent.h  
 M  +0 -16     suncomponent.cpp  
 M  +1 -1      suncomponent.h  




More information about the Kstars-devel mailing list