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

Jason Harris kstars at 30doradus.org
Tue Mar 7 15:20:57 CET 2006


SVN commit 516534 by harris:

Milky way now drawn in map (list of skypoints assigned to wrong 
variable, so was not being updated)

CCMAIL: kstars-devel at kde.org


 M  +3 -3      milkywaycomponent.cpp  
 M  +0 -1      milkywaycomponent.h  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/milkywaycomponent.cpp #516533:516534
@@ -62,7 +62,7 @@
 			dec = line.mid( 9, 8 ).toDouble();
 
 			SkyPoint *o = new SkyPoint( ra, dec );
-			MilkyWay.append( o );
+			pointList().append( o );
 		}
 	}
 }
@@ -88,7 +88,7 @@
 		QPolygonF polyMW;
 		bool partVisible = false;
 
-		foreach ( SkyPoint *p, MilkyWay ) {
+		foreach ( SkyPoint *p, pointList() ) {
 			QPointF o = map->getXY( p, Options::useAltAz(), Options::useRefraction(), scale );
 			if ( o.x() > -1000000. && o.y() > -1000000. ) polyMW << o;
 			if ( o.x() >= 0. && o.x() <= Width && o.y() >= 0. && o.y() <= Height ) partVisible = true;
@@ -102,7 +102,7 @@
 		bool onscreen, lastonscreen=false;
 		QPointF o, oLast;
 
-		foreach ( SkyPoint *p, MilkyWay ) {
+		foreach ( SkyPoint *p, pointList() ) {
 			o = map->getXY( p, Options::useAltAz(), Options::useRefraction(), scale );
 			if (o.x() < -1000000. && o.y() < -1000000.) onscreen = false;
 			else onscreen = true;
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/milkywaycomponent.h #516533:516534
@@ -71,7 +71,6 @@
 		QString fileName() const { return m_FileName; }
 
 	private:
-		QList<SkyPoint*> MilkyWay;
 		QString m_FileName;
 };
 


More information about the Kstars-devel mailing list