[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/skycomponents
From:       Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date:       2010-02-09 22:33:13
Message-ID: 1265754793.047800.2032.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1087977 by khudyakov:

Remove init from ConstellationBoundaryLines

 M  +0 -15     constellationboundarylines.cpp  
 M  +6 -9      constellationboundarylines.h  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/constellationboundarylines.cpp #1087976:1087977
@@ -48,22 +48,7 @@
     for(int i = 0; i < m_skyMesh->size(); i++) {
         m_polyIndex.append( new PolyListList() );
     }
-}
 
-// FIXME: -jbb: need to update this information.
-// Constellation boundary data is stored in a series of *.cbound files, one per
-// constellation.  Each file contains the list of RA/Dec points along the
-// constellation's border, and a flag indicating whether the segment is
-// duplicated in another constellation.  (Actually all segments have a
-// duplicate somewhere...the choice of calling one the duplicate is entirely
-// arbitrary).
-//
-// We store the boundary data in a QHash of QPolygonF's (for fast determination
-// of whether a SkyPoint is enclosed, and for drawing a single boundary to the
-// screen).  We also store the non-duplicate segments in the Component's native
-// list of SkyLines (for fast drawing of all boundaries at once).
-
-void ConstellationBoundaryLines::init() {
     KStarsData *data = KStarsData::Instance();
     int verbose = 0;                  // -1 => create cbounds-$x.idx on stdout
     //  0 => normal
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/constellationboundarylines.h #1087976:1087977
@@ -45,6 +45,12 @@
      * Simply adds all of the coordinate grid circles
      * (meridians and parallels)
      * @p parent Pointer to the parent SkyComposite object
+     *
+     * Reads the constellation boundary data from cbounds.dat.
+     * The boundary data is defined by a series of RA,Dec coordinate pairs
+     * defining the "nodes" of the boundaries.  The nodes are organized into
+     * "segments", such that each segment represents a continuous series
+     * of boundary-line intervals that divide two particular constellations.
      */
     ConstellationBoundaryLines( SkyComposite *parent );
 
@@ -52,15 +58,6 @@
 
     const QPolygonF* constellationPoly( SkyPoint *p );
 
-    /** @short Initialize the Constellation boundary
-     * Reads the constellation boundary data from cbounds.dat.
-     * The boundary data is defined by a series of RA,Dec coordinate pairs
-     *  defining the "nodes" of the boundaries.  The nodes are organized into
-     * "segments", such that each segment represents a continuous series
-     * of boundary-line intervals that divide two particular constellations.
-     */
-    virtual void init();
-
     virtual bool selected();
 
     virtual void preDraw( QPainter &psky );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic