• 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
CatalogComponent Class Reference

#include <catalogcomponent.h>

Inheritance diagram for CatalogComponent:
Inheritance graph
[legend]

Public Member Functions

 CatalogComponent (SkyComposite *, const QString &fname, bool showerrs, int index)
 
virtual ~CatalogComponent ()
 
virtual void draw (SkyPainter *skyp)
 
QString fluxFrequency () const
 
QString fluxUnit () const
 
bool getVisibility ()
 
QString name () const
 
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 a custom user-defined catalog.

Code adapted from CustomCatalogComponent.cpp originally authored by Thomas Kabelmann –spacetime

Author
Thomas Kabelmann Rishab Arora (spacetime)
Version
0.2

Definition at line 39 of file catalogcomponent.h.

Constructor & Destructor Documentation

CatalogComponent::CatalogComponent ( SkyComposite *  parent,
const QString &  fname,
bool  showerrs,
int  index 
)

Constructor parent Pointer to the parent SkyComposite object.

Definition at line 38 of file catalogcomponent.cpp.

CatalogComponent::~CatalogComponent ( )
virtual

Destructor.

Delete list members

Definition at line 46 of file catalogcomponent.cpp.

Member Function Documentation

void CatalogComponent::draw ( SkyPainter *  skyp)
virtual

Draw custom catalog objects on the sky map.

psky Reference to the QPainter on which to paint

Implements SkyComponent.

Definition at line 107 of file catalogcomponent.cpp.

QString CatalogComponent::fluxFrequency ( ) const
inline
Returns
the frequency of the flux readings in the catalog, if any

Definition at line 66 of file catalogcomponent.h.

QString CatalogComponent::fluxUnit ( ) const
inline
Returns
the unit of the flux measurements in the catalog, if any

Definition at line 69 of file catalogcomponent.h.

bool CatalogComponent::getVisibility ( )
inline
Returns
true if visibility Option is set for this catalog
Note
this is complicated for custom catalogs, because Option::showCatalog() returns a QList<int>, not a bool. This function extracts the correct visibility value and returns the appropriate bool value

Definition at line 78 of file catalogcomponent.h.

QString CatalogComponent::name ( ) const
inline
Returns
the name of the catalog

Definition at line 63 of file catalogcomponent.h.

void CatalogComponent::update ( KSNumbers *  num)
virtual

Update the sky positions of this component.

This function usually just updates the Horizontal (Azimuth/Altitude) coordinates of the objects in this component. If the KSNumbers* argument is not NULL, this function also recomputes precession and nutation for the date in KSNumbers. num Pointer to the KSNumbers object

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

Reimplemented from ListComponent.

Definition at line 74 of file catalogcomponent.cpp.


The documentation for this class was generated from the following files:
  • catalogcomponent.h
  • catalogcomponent.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