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

#include <deepskycomponent.h>

Inheritance diagram for DeepSkyComponent:
Inheritance graph
[legend]

Public Member Functions

 DeepSkyComponent (SkyComposite *)
 
 ~DeepSkyComponent ()
 
void clear ()
 
virtual void draw (SkyPainter *skyp)
 
void drawLabels ()
 
virtual SkyObject * findByName (const QString &name)
 
const QList< DeepSkyObject * > & objectList () const
 
virtual SkyObject * objectNearest (SkyPoint *p, double &maxrad)
 
virtual void objectsInArea (QList< SkyObject * > &list, const SkyRegion &region)
 
bool selected ()
 
virtual void update (KSNumbers *num=0)
 
- 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)
 
SkyComposite * parent ()
 
virtual void updateMoons (KSNumbers *)
 
virtual void updatePlanets (KSNumbers *)
 

Additional Inherited Members

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

Detailed Description

Represents the deep sky objects separated by catalogs.

Custom Catalogs are a standalone component.

Note
this Component is similar to ListComponent, but the deep sky objects are stored in four separate QLists.
Author
Thomas Kabelmann
Version
0.1

Definition at line 55 of file deepskycomponent.h.

Constructor & Destructor Documentation

DeepSkyComponent::DeepSkyComponent ( SkyComposite *  parent)
explicit

Definition at line 39 of file deepskycomponent.cpp.

DeepSkyComponent::~DeepSkyComponent ( )

Definition at line 49 of file deepskycomponent.cpp.

Member Function Documentation

void DeepSkyComponent::clear ( )

Definition at line 640 of file deepskycomponent.cpp.

void DeepSkyComponent::draw ( SkyPainter *  skyp)
virtual

Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.

Implements SkyComponent.

Definition at line 363 of file deepskycomponent.cpp.

void DeepSkyComponent::drawLabels ( )

Definition at line 473 of file deepskycomponent.cpp.

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

Search the children of this SkyComponent for a SkyObject whose name matches the argument 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 SkyComponent.

Definition at line 495 of file deepskycomponent.cpp.

const QList<DeepSkyObject*>& DeepSkyComponent::objectList ( ) const
inline

Definition at line 106 of file deepskycomponent.h.

SkyObject * DeepSkyComponent::objectNearest ( SkyPoint *  p,
double &  maxrad 
)
virtual

Find the SkyObject nearest the given SkyPoint.

Look for a SkyObject that is nearer to point p than maxrad. If one is found, then maxrad is reset to the separation of the new nearest object. p pointer to the SkyPoint to search around maxrad reference to current search radius

Returns
a pointer to the nearest SkyObject
Note
This function simply returns a NULL pointer; it is reimplemented in various sub-classes.

Reimplemented from SkyComponent.

Definition at line 521 of file deepskycomponent.cpp.

void DeepSkyComponent::objectsInArea ( QList< SkyObject * > &  list,
const SkyRegion &  region 
)
virtual

Searches the region(s) and appends the SkyObjects found to the list of sky objects.

Look for a SkyObject that is in one of the regions If found, then append to the list of sky objects list list of SkyObject to which matching list has to be appended to region defines the regions in which the search for SkyObject should be done within

Returns
void

Reimplemented from SkyComponent.

Definition at line 500 of file deepskycomponent.cpp.

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

Reimplemented from SkyComponent.

Definition at line 54 of file deepskycomponent.cpp.

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

Update the sky positions of this component.

FIXME -jbb does nothing now

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 SkyComponent.

Definition at line 59 of file deepskycomponent.cpp.


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