kstars
deepskycomponent.cpp
Go to the documentation of this file.
172 QString suffix = row_content["suffix"].toString(); // multipliticity suffixes, eg: the 'A' in NGC 4945A
174 Q_ASSERT( suffix.isEmpty() || ( suffix.at( 0 ) >= QChar( 'A' ) && suffix.at( 0 ) <= QChar( 'Z' ) ) || (suffix.at( 0 ) >= QChar( 'a' ) && suffix.at( 0 ) <= QChar( 'z' ) ) );
192 kDebug() << "RA H:M:S = " << rah << ":" << ram << ":" << ras << "; Dec D:M:S = " << dd << ":" << dm << ":" << ds;
372 drawDeepSkyCatalog( skyp, drawFlag, &m_MessierIndex, "MessColor", Options::showMessierImages() );
416 maglim -= (Options::magLimitDrawDeepSky() - Options::magLimitDrawDeepSkyZoomOut() )*(0.75*lgmax - lgz)/(0.75*lgmax - lgmin);
420 labelMagLim += ( Options::magLimitDrawDeepSky() - labelMagLim ) * ( lgz - lgmin) / (lgmax - lgmin );
421 if ( labelMagLim > Options::magLimitDrawDeepSky() ) labelMagLim = Options::magLimitDrawDeepSky();
478 labeler->setPen( QColor( KStarsData::Instance()->colorScheme()->colorNamed( "DSNameColor" ) ) );
static double deepSkyLabelDensity()
Get Relative density for deep-sky object name labels and/or magnitudes.
Definition: Options.h:2683
QColor colorNamed(const QString &name) const
Retrieve a color by name.
Definition: colorscheme.cpp:97
virtual void updateCoords(KSNumbers *num, bool includePlanets=true, const dms *lat=0, const dms *LST=0, bool forceRecompute=false)
Determine the current coordinates (RA, Dec) from the catalog coordinates (RA0, Dec0), accounting for both precession and nutation.
Definition: skypoint.cpp:317
virtual void draw(SkyPainter *skyp)
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: deepskycomponent.cpp:363
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyComponent for a SkyObject whose name matches the argument name the nam...
Definition: deepskycomponent.cpp:495
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Find the SkyObject nearest the given SkyPoint.
Definition: deepskycomponent.cpp:521
QPointF toScreen(const SkyPoint *o, bool oRefract=true, bool *onVisibleHemisphere=0) const
This is exactly the same as toScreenVec but it returns a QPointF.
Definition: projector.cpp:93
Definition: ksparser.h:70
virtual void update(KSNumbers *num=0)
Update the sky positions of this component.
Definition: deepskycomponent.cpp:59
void removeFromNames(const SkyObject *obj)
Definition: skycomponent.cpp:58
static double magLimitDrawDeepSkyZoomOut()
Get Faint limit for deep-sky objects when zoomed out.
Definition: Options.h:2607
static bool showDeepSkyMagnitudes()
Get Label deep-sky object magnitudes in the sky map?
Definition: Options.h:2234
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
Definition: ksparser.h:69
Definition: skylabel.h:28
void EquatorialToHorizontal(const dms *LST, const dms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates, given the local sidereal time and the observer's latitude.
Definition: skypoint.cpp:55
Definition: skymesh.h:52
Definition: MeshIterator.h:22
Provides all necessary information about a deep-sky object: data inherited from SkyObject (coordinate...
Definition: deepskyobject.h:43
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
static bool showMessierImages()
Get Draw Messier object images in the sky map?
Definition: Options.h:1854
Definition: skymesh.h:54
void setPen(const QPen &pen)
sets the pen used for drawing labels on the sky.
Definition: skylabeler.cpp:173
bool drawNameLabel(SkyObject *obj, const QPointF &_p)
Tries to draw a label for an object.
Definition: skylabeler.cpp:151
virtual void objectsInArea(QList< SkyObject * > &list, const SkyRegion ®ion)
Searches the region(s) and appends the SkyObjects found to the list of sky objects.
Definition: deepskycomponent.cpp:500
The purpose of this class is to prevent labels from overlapping.
Definition: skylabeler.h:112
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
Definition: ksparser.h:68
dms angularDistanceTo(const SkyPoint *sp, double *const positionAngle=0) const
Computes the angular distance between two SkyObjects.
Definition: skypoint.cpp:608
DeepSkyComponent(SkyComposite *)
Definition: deepskycomponent.cpp:39
virtual bool drawDeepSkyObject(DeepSkyObject *obj, bool drawImage=false)=0
Draw a deep sky object.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.