StarComponent::StarComponent(SkyComposite *parent ) : ListComponent(parent), m_reindexNum(J2000), m_FaintMagnitude(-5.0), starsLoaded(false), focusStar(NULL) { m_skyMesh = SkyMesh::Instance(); m_StarBlockFactory = StarBlockFactory::Instance(); m_starIndex = new StarIndex(); for (int i = 0; i < m_skyMesh->size(); i++) m_starIndex->append( new StarList() ); m_highPMStars.append( new HighPMStarList( 840.0 ) ); m_highPMStars.append( new HighPMStarList( 304.0 ) ); m_reindexInterval = StarObject::reindexInterval( 304.0 ); m_zoomMagLimit = 0.0; for ( int i = 0; i <= MAX_LINENUMBER_MAG; i++ ) m_labelList[ i ] = new LabelList; // Actually load data emitProgressText( i18n("Loading stars" ) ); loadStaticData(); // Load any deep star catalogs that are available loadDeepStarCatalogs(); SkyQPainter::initStarImages(); }
const KisGridConfig& KisGridConfig::defaultGrid() { staticDefaultObject->loadStaticData(); return *staticDefaultObject; }