• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Member Functions | List of all members
ConstellationNamesComponent Class Reference

#include <constellationnamescomponent.h>

Inheritance diagram for ConstellationNamesComponent:
Inheritance graph
[legend]

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)
 
- Public Member Functions inherited from ListComponent
 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)
 
- Public Member Functions inherited from SkyComponent
 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 &region)
 
SkyComposite * parent ()
 
virtual void updateMoons (KSNumbers *)
 
virtual void updatePlanets (KSNumbers *)
 

Additional Inherited Members

- Protected Member Functions inherited from SkyComponent
void removeFromNames (const SkyObject *obj)
 
- Protected Attributes inherited from ListComponent
QList< SkyObject * > m_ObjectList
 

Detailed Description

Represents the constellation names on the sky map.

Author
Thomas Kabelmann
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.

ConstellationNamesComponent::~ConstellationNamesComponent ( )
virtual

Destructor.

Delete list members

Definition at line 92 of file constellationnamescomponent.cpp.

Member Function Documentation

void ConstellationNamesComponent::draw ( SkyPainter *  skyp)
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.

bool ConstellationNamesComponent::isLocalCNames ( )
inline

Return true if we are using localized constellation names.

Definition at line 68 of file constellationnamescomponent.h.

bool ConstellationNamesComponent::selected ( )
virtual
Returns
true if component is to be drawn on the map.

Reimplemented from SkyComponent.

Definition at line 95 of file constellationnamescomponent.cpp.

void ConstellationNamesComponent::update ( KSNumbers *  num)
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:
  • constellationnamescomponent.h
  • constellationnamescomponent.cpp
This file is part of the KDE documentation.
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.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal