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

kstars

Signals | Public Member Functions | List of all members
SkyMapComposite Class Reference

#include <skymapcomposite.h>

Inheritance diagram for SkyMapComposite:
Inheritance graph
[legend]

Signals

void progressText (const QString &message)
 

Public Member Functions

 SkyMapComposite (SkyComposite *parent)
 
 ~SkyMapComposite ()
 
void addCustomCatalog (const QString &filename, int index)
 
bool addNameLabel (SkyObject *o)
 
const QList< SkyObject * > & asteroids () const
 
const QList< SkyObject * > & comets () const
 
const QList< SkyObject * > & constellationNames () const
 
QString currentCulture ()
 
QList< SkyComponent * > customCatalogs ()
 
const QList< DeepSkyObject * > & deepSkyObjects () const
 
virtual void draw (SkyPainter *skyp)
 
KSPlanet * earth ()
 
virtual void emitProgressText (const QString &message)
 
virtual SkyObject * findByName (const QString &name)
 
QList< SkyObject * > findObjectsInArea (const SkyPoint &p1, const SkyPoint &p2)
 
SkyObject * findStarByGenetiveName (const QString name)
 
FlagComponent * flags ()
 
ConstellationBoundaryLines * getConstellationBoundary ()
 
QString getCultureName (int index)
 
QStringList getCultureNames ()
 
TargetListComponent * getStarHopRouteList ()
 
bool isLocalCNames ()
 
QList< SkyObject * > & labelObjects ()
 
virtual SkyObject * objectNearest (SkyPoint *p, double &maxrad)
 
KSPlanetBase * planet (int n)
 
void reloadAsteroids ()
 
void reloadCLines ()
 
void reloadCNames ()
 
void reloadComets ()
 
void reloadDeepSky ()
 
void removeCustomCatalog (const QString &name)
 
bool removeNameLabel (SkyObject *o)
 
SatellitesComponent * satellites ()
 
void setCurrentCulture (QString culture)
 
SolarSystemComposite * solarSystemComposite ()
 
SkyObject * starNearest (SkyPoint *p, double &maxrad)
 
const QList< SkyObject * > & stars () const
 
const QList< SkyObject * > & supernovae () const
 
SupernovaeComponent * supernovaeComponent ()
 
virtual void update (KSNumbers *num=0)
 
virtual void updateMoons (KSNumbers *num)
 
virtual void updatePlanets (KSNumbers *num)
 
- Public Member Functions inherited from SkyComposite
 SkyComposite (SkyComposite *parent)
 
virtual ~SkyComposite ()
 
void addComponent (SkyComponent *comp)
 
QList< SkyComponent * > & components ()
 
void removeComponent (SkyComponent *comp)
 
- Public Member Functions inherited from SkyComponent
 SkyComponent (SkyComposite *parent)
 
virtual ~SkyComponent ()
 
virtual void drawTrails (SkyPainter *skyp)
 
QHash< int, QStringList > & objectNames ()
 
QStringList & objectNames (int type)
 
virtual void objectsInArea (QList< SkyObject * > &list, const SkyRegion &region)
 
SkyComposite * parent ()
 
virtual bool selected ()
 

Additional Inherited Members

- Protected Member Functions inherited from SkyComponent
void removeFromNames (const SkyObject *obj)
 

Detailed Description

SkyMapComposite is the root object in the object hierarchy of the sky map.

All requests to update, init, draw etc. will be done with this class. The requests will be delegated to it's children. The object hierarchy will created by adding new objects via addComponent().

Author
Thomas Kabelmann
Version
0.1

Definition at line 65 of file skymapcomposite.h.

Constructor & Destructor Documentation

SkyMapComposite::SkyMapComposite ( SkyComposite *  parent)
explicit

Constructor parent pointer to the parent SkyComponent.

Definition at line 58 of file skymapcomposite.cpp.

SkyMapComposite::~SkyMapComposite ( )

Definition at line 109 of file skymapcomposite.cpp.

Member Function Documentation

void SkyMapComposite::addCustomCatalog ( const QString &  filename,
int  index 
)

Definition at line 468 of file skymapcomposite.cpp.

bool SkyMapComposite::addNameLabel ( SkyObject *  o)

Definition at line 395 of file skymapcomposite.cpp.

const QList< SkyObject * > & SkyMapComposite::asteroids ( ) const

Definition at line 568 of file skymapcomposite.cpp.

const QList< SkyObject * > & SkyMapComposite::comets ( ) const

Definition at line 572 of file skymapcomposite.cpp.

const QList< SkyObject * > & SkyMapComposite::constellationNames ( ) const

Definition at line 558 of file skymapcomposite.cpp.

QString SkyMapComposite::currentCulture ( )

Definition at line 601 of file skymapcomposite.cpp.

QList< SkyComponent * > SkyMapComposite::customCatalogs ( )

Definition at line 585 of file skymapcomposite.cpp.

const QList< DeepSkyObject * > & SkyMapComposite::deepSkyObjects ( ) const

Definition at line 554 of file skymapcomposite.cpp.

void SkyMapComposite::draw ( SkyPainter *  skyp)
virtual

Delegate draw requests to all sub components psky Reference to the QPainter on which to paint.

Reimplemented from SkyComposite.

Definition at line 170 of file skymapcomposite.cpp.

KSPlanet * SkyMapComposite::earth ( )

Definition at line 581 of file skymapcomposite.cpp.

void SkyMapComposite::emitProgressText ( const QString &  message)
virtual

Emit signal about progress.

See also
SkyMapComposite::emitProgressText

Reimplemented from SkyComponent.

Definition at line 548 of file skymapcomposite.cpp.

SkyObject * SkyMapComposite::findByName ( const QString &  name)
virtual

Search the children of this SkyMapComposite for a SkyObject whose name matches the argument.

The objects' primary, secondary and long-form names will all be checked for a match.

Note
Overloaded from SkyComposite. In this version, we search the most likely object classes first to be more efficient. name the name to be matched
Returns
a pointer to the SkyObject whose name matches the argument, or a NULL pointer if no match was found.

Reimplemented from SkyComposite.

Definition at line 426 of file skymapcomposite.cpp.

QList< SkyObject * > SkyMapComposite::findObjectsInArea ( const SkyPoint &  p1,
const SkyPoint &  p2 
)
Returns
the list of objects in the region defined by skypoints
Parameters
p1first sky point (top-left vertex of rectangular region)
p2second sky point (bottom-right vertex of rectangular region)

Definition at line 413 of file skymapcomposite.cpp.

SkyObject * SkyMapComposite::findStarByGenetiveName ( const QString  name)

Definition at line 449 of file skymapcomposite.cpp.

FlagComponent * SkyMapComposite::flags ( )

Definition at line 605 of file skymapcomposite.cpp.

ConstellationBoundaryLines* SkyMapComposite::getConstellationBoundary ( )
inline

Definition at line 194 of file skymapcomposite.h.

QString SkyMapComposite::getCultureName ( int  index)

Definition at line 593 of file skymapcomposite.cpp.

QStringList SkyMapComposite::getCultureNames ( )

Definition at line 589 of file skymapcomposite.cpp.

TargetListComponent* SkyMapComposite::getStarHopRouteList ( )
inline

Definition at line 195 of file skymapcomposite.h.

bool SkyMapComposite::isLocalCNames ( )

Definition at line 544 of file skymapcomposite.cpp.

QList<SkyObject*>& SkyMapComposite::labelObjects ( )
inline

Definition at line 175 of file skymapcomposite.h.

SkyObject * SkyMapComposite::objectNearest ( SkyPoint *  p,
double &  maxrad 
)
virtual
Returns
the object nearest a given point in the sky.
Parameters
pThe point to find an object near
maxradThe maximum search radius, in Degrees
Note
the angular separation to the matched object is returned through the maxrad variable.

Reimplemented from SkyComposite.

Definition at line 309 of file skymapcomposite.cpp.

KSPlanetBase * SkyMapComposite::planet ( int  n)

Definition at line 453 of file skymapcomposite.cpp.

void SkyMapComposite::progressText ( const QString &  message)
signal
void SkyMapComposite::reloadAsteroids ( )
void SkyMapComposite::reloadCLines ( )

Definition at line 490 of file skymapcomposite.cpp.

void SkyMapComposite::reloadCNames ( )

Definition at line 499 of file skymapcomposite.cpp.

void SkyMapComposite::reloadComets ( )
void SkyMapComposite::reloadDeepSky ( )

Definition at line 512 of file skymapcomposite.cpp.

void SkyMapComposite::removeCustomCatalog ( const QString &  name)

Definition at line 477 of file skymapcomposite.cpp.

bool SkyMapComposite::removeNameLabel ( SkyObject *  o)

Definition at line 401 of file skymapcomposite.cpp.

SatellitesComponent * SkyMapComposite::satellites ( )

Definition at line 609 of file skymapcomposite.cpp.

void SkyMapComposite::setCurrentCulture ( QString  culture)

Definition at line 597 of file skymapcomposite.cpp.

SolarSystemComposite * SkyMapComposite::solarSystemComposite ( )

Definition at line 613 of file skymapcomposite.cpp.

SkyObject * SkyMapComposite::starNearest ( SkyPoint *  p,
double &  maxrad 
)
Returns
the star nearest a given point in the sky.
Parameters
pThe point to find a star near
maxradThe maximum search radius, in Degrees
Note
the angular separation to the matched star is returned through the maxrad variable.

Definition at line 379 of file skymapcomposite.cpp.

const QList< SkyObject * > & SkyMapComposite::stars ( ) const

Definition at line 563 of file skymapcomposite.cpp.

const QList< SkyObject * > & SkyMapComposite::supernovae ( ) const

Definition at line 576 of file skymapcomposite.cpp.

SupernovaeComponent * SkyMapComposite::supernovaeComponent ( )

Definition at line 618 of file skymapcomposite.cpp.

void SkyMapComposite::update ( KSNumbers *  num = 0)
virtual

Delegate update-position requests to all sub components.

This function usually just updates the Horizontal (Azimuth/Altitude) coordinates. However, the precession and nutation must also be recomputed periodically. Requests to do so are sent through the doPrecess parameter. num Pointer to the KSNumbers object

See also
updatePlanets()
updateMoons()
Note
By default, the num parameter is NULL, indicating that Precession/Nutation computation should be skipped; this computation is only occasionally required.

Reimplemented from SkyComposite.

Definition at line 117 of file skymapcomposite.cpp.

void SkyMapComposite::updateMoons ( KSNumbers *  num)
virtual

Delegate moon position updates to the SolarSystemComposite.

Planet positions change over time, so they need to be recomputed periodically, but not on every call to update(). This function will recompute the positions of the Earth's Moon and Jupiter's four Galilean moons. These objects are done separately from the other solar system bodies, because their positions change more rapidly, and so updateMoons() must be called more often than updatePlanets(). num Pointer to the KSNumbers object

See also
update()
updatePlanets()
SolarSystemComposite::updateMoons()

Reimplemented from SkyComponent.

Definition at line 159 of file skymapcomposite.cpp.

void SkyMapComposite::updatePlanets ( KSNumbers *  num)
virtual

Delegate planet position updates to the SolarSystemComposite.

Planet positions change over time, so they need to be recomputed periodically, but not on every call to update(). This function will recompute the positions of all solar system bodies except the Earth's Moon, Jupiter's Moons AND Saturn Moons (because these objects' positions change on a much more rapid timescale). num Pointer to the KSNumbers object

See also
update()
updateMoons()
SolarSystemComposite::updatePlanets()

Reimplemented from SkyComponent.

Definition at line 154 of file skymapcomposite.cpp.


The documentation for this class was generated from the following files:
  • skymapcomposite.h
  • skymapcomposite.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 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