kstars
#include <constellationnamescomponent.h>

Public Member Functions | |
ConstellationNamesComponent (SkyComposite *parent, CultureList *cultures) | |
virtual | ~ConstellationNamesComponent () |
virtual void | draw (SkyPainter *skyp) |
bool | isLocalCNames () |
virtual bool | selected () |
virtual void | update (KSNumbers *num) |
![]() | |
ListComponent (SkyComposite *parent) | |
virtual | ~ListComponent () |
void | clear () |
virtual SkyObject * | findByName (const QString &name) |
const QList< SkyObject * > & | objectList () const |
virtual SkyObject * | objectNearest (SkyPoint *p, double &maxrad) |
![]() | |
SkyComponent (SkyComposite *parent) | |
virtual | ~SkyComponent () |
virtual void | drawTrails (SkyPainter *skyp) |
virtual void | emitProgressText (const QString &message) |
QHash< int, QStringList > & | objectNames () |
QStringList & | objectNames (int type) |
virtual void | objectsInArea (QList< SkyObject * > &list, const SkyRegion ®ion) |
SkyComposite * | parent () |
virtual void | updateMoons (KSNumbers *) |
virtual void | updatePlanets (KSNumbers *) |
Additional Inherited Members | |
![]() | |
void | removeFromNames (const SkyObject *obj) |
![]() | |
QList< SkyObject * > | m_ObjectList |
Detailed Description
Represents the constellation names on the sky map.
- Version
- 0.1
Definition at line 34 of file constellationnamescomponent.h.
Constructor & Destructor Documentation
ConstellationNamesComponent::ConstellationNamesComponent | ( | SkyComposite * | parent, |
CultureList * | cultures | ||
) |
Constructor parent
Pointer to the parent SkyComposite object.
Reads the constellation names data from cnames.dat Each line in the file is parsed according to column position:
- 0-1 RA hours [int]
- 2-3 RA minutes [int]
- 4-5 RA seconds [int]
- 6 Dec sign [char; '+' or '-']
- 7-8 Dec degrees [int]
- 9-10 Dec minutes [int]
- 11-12 Dec seconds [int]
- 13-15 IAU Abbreviation [string] e.g., 'Ori' == Orion
- 17- Constellation name [string]
Definition at line 31 of file constellationnamescomponent.cpp.
|
virtual |
Member Function Documentation
|
virtual |
Draw constellation names on the sky map.
psky
Reference to the QPainter on which to paint
Implements SkyComponent.
Definition at line 111 of file constellationnamescomponent.cpp.
|
inline |
Return true if we are using localized constellation names.
Definition at line 68 of file constellationnamescomponent.h.
|
virtual |
- Returns
- true if component is to be drawn on the map.
Reimplemented from SkyComponent.
Definition at line 95 of file constellationnamescomponent.cpp.
|
virtual |
we need a custom routine (for now) so we don't precess the locations of the names.
Reimplemented from ListComponent.
Definition at line 102 of file constellationnamescomponent.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.