[Kstars-devel] Questions about planet skycomponents

Jason Harris kstars at 30doradus.org
Sun Sep 25 17:40:57 CEST 2005


Hi Thomas,

Thanks a lot, that does clear some things up.  Sorry to hear about your system 
crash :(

On Sunday 25 September 2005 07:53, Thomas Kabelmann wrote:
> PlanetComponent::draw()
> {
> 	if (visible()) // visible() returns a pointer to Options::showPlanet()
> 		ksplanet->draw();
> }
>
I'm glad you mentioned this, because I didn't really understand this 
function :).

One more:
I think the drawTrail() function belongs in the KSPlanet/KSAsteroid/etc class, 
rather than in the Component.  In KStarsData, we will keep a QList of 
pointers to all the solar system bodies that have trails attached, so it 
makes more sense to have the drawing function attached to those objects.

On a related note, will it ever be necessary to find an object in the 
component, given a pointer to the object?  i.e., do we need a function like:

SkyComponent::find( SkyObject *o ) 

?

Jason
-- 
KStars: KDE Planetarium
http://edu.kde.org/kstars


More information about the Kstars-devel mailing list