Yes, like that.
Fabien

On Nov 12, 2007 7:52 PM, Rob Spearman <rob@digitaliseducation.com> wrote:
On Mon, 2007-11-12 at 17:19 +0100, Fabien Chéreau wrote:
> Hi Rob,
> I've been going through the code, and I've seen that the planet trails
> management is somewhat opaque...
> 1- Would it be possible to have just one method showTrail(bool b)
> instead of SolarSystem::startTrails(), SolarSystem::setFlagTrails()?
> 2- When the homePlanet changes, it should by itself reinitialize, to
> avoid the call in StelCore::setHomePlanet():
> "ssystem->startTrails( ssystem->getFlagTrails() );" The code should
> probably move into updateTrail method..

So updateTrail will check each update to see if the home planet has
changed?  I don't like it from an efficiency standpoint, but it would be
logically simpler.

Calling setFlagTrails could automatically call startTrails.  startTrails
could just be private then.

What do you think?

Rob



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Stellarium-pubdevel mailing list
Stellarium-pubdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel