void StarComponent::drawLabels() { if( m_hideLabels ) return; SkyLabeler *labeler = SkyLabeler::Instance(); labeler->setPen( QColor( KStarsData::Instance()->colorScheme()->colorNamed( "SNameColor" ) ) ); int max = int( m_zoomMagLimit * 10.0 ); if ( max < 0 ) max = 0; if ( max > MAX_LINENUMBER_MAG ) max = MAX_LINENUMBER_MAG; for ( int i = 0; i <= max; i++ ) { LabelList* list = m_labelList[ i ]; for ( int j = 0; j < list->size(); j++ ) { labeler->drawNameLabel( list->at(j).obj, list->at(j).o ); } list->clear(); } }
void SatellitesComponent::drawLabel( Satellite *sat, QPointF pos ) { SkyLabeler *labeler = SkyLabeler::Instance(); labeler->setPen( KStarsData::Instance()->colorScheme()->colorNamed( "SatLabelColor" ) ); labeler->drawNameLabel( sat, pos ); }