kstars
#include <deepstarcomponent.h>

Public Member Functions | |
DeepStarComponent (SkyComposite *parent, QString fileName, float trigMag, bool staticstars=false) | |
virtual | ~DeepStarComponent () |
void | draw (SkyPainter *skyp) |
float | faintMagnitude () const |
bool | fileOpen () |
SkyObject * | findByHDIndex (int HDnum) |
BinFileHelper * | getStarReader () |
bool | hasStaticStars () |
bool | loadStaticStars () |
SkyObject * | objectNearest (SkyPoint *p, double &maxrad) |
bool | openDataFile () |
bool | selected () |
bool | starsInAperture (QList< StarObject * > &list, const SkyPoint ¢er, float radius, float maglim=-29) |
void | update (KSNumbers *num) |
bool | verifySBLIntegrity () |
![]() | |
ListComponent (SkyComposite *parent) | |
virtual | ~ListComponent () |
void | clear () |
virtual SkyObject * | findByName (const QString &name) |
const QList< SkyObject * > & | objectList () const |
![]() | |
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 *) |
Static Public Member Functions | |
static void | byteSwap (deepStarData *stardata) |
static void | byteSwap (starData *stardata) |
Static Public Attributes | |
static StarBlockFactory | m_StarBlockFactory |
Additional Inherited Members | |
![]() | |
void | removeFromNames (const SkyObject *obj) |
![]() | |
QList< SkyObject * > | m_ObjectList |
Detailed Description
Stores and manages unnamed stars, most of which are dynamically loaded into memory.
- Note
- Much of the code here is copied from class StarComponent authored by Thomas Kabelmann
- Version
- 0.1
Definition at line 49 of file deepstarcomponent.h.
Constructor & Destructor Documentation
DeepStarComponent::DeepStarComponent | ( | SkyComposite * | parent, |
QString | fileName, | ||
float | trigMag, | ||
bool | staticstars = false |
||
) |
Definition at line 44 of file deepstarcomponent.cpp.
|
virtual |
Definition at line 149 of file deepstarcomponent.cpp.
Member Function Documentation
|
static |
Definition at line 453 of file deepstarcomponent.cpp.
|
static |
Definition at line 462 of file deepstarcomponent.cpp.
|
virtual |
Draw the object on the SkyMap skyp
a pointer to the SkyPainter to use.
Implements SkyComponent.
Definition at line 174 of file deepstarcomponent.cpp.
|
inline |
- Returns
- return the estimated faint magnitude limit of this DeepStarComponent
Definition at line 77 of file deepstarcomponent.h.
|
inline |
Definition at line 90 of file deepstarcomponent.h.
SkyObject * DeepStarComponent::findByHDIndex | ( | int | HDnum | ) |
- Parameters
-
HDnum Henry-Draper catalog number of the desired star
- Returns
- A star matching the given Henry-Draper catalog number
Definition at line 358 of file deepstarcomponent.cpp.
|
inline |
Definition at line 92 of file deepstarcomponent.h.
|
inline |
- Returns
- true if this DeepStarComponent has static stars (that are not dynamically loaded)
Definition at line 72 of file deepstarcomponent.h.
bool DeepStarComponent::loadStaticStars | ( | ) |
Definition at line 59 of file deepstarcomponent.cpp.
- Returns
- Nearest star within maxrad of SkyPoint p, or NULL if not found
Reimplemented from ListComponent.
Definition at line 370 of file deepstarcomponent.cpp.
bool DeepStarComponent::openDataFile | ( | ) |
Definition at line 308 of file deepstarcomponent.cpp.
|
virtual |
- Returns
- true if component is to be drawn on the map.
Reimplemented from SkyComponent.
Definition at line 155 of file deepstarcomponent.cpp.
bool DeepStarComponent::starsInAperture | ( | QList< StarObject * > & | list, |
const SkyPoint & | center, | ||
float | radius, | ||
float | maglim = -29 |
||
) |
Add to the given list, the stars from this component, that lie within the specified circular aperture, and that are brighter than the limiting magnitude specified.
center
The center point of the aperture radius
The radius around the center point that defines the aperture maglim
Optional parameter indicating the limiting magnitude. If magnitude limit is numerically < -28, the limiting magnitude is assumed to be the limiting magnitude of the catalog (i.e. no magnitude limit) list
The list to operate on
- Returns
- false if the limiting magnitude is brighter than the trigger magnitude of the DeepStarComponent
Definition at line 410 of file deepstarcomponent.cpp.
|
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 170 of file deepstarcomponent.cpp.
bool DeepStarComponent::verifySBLIntegrity | ( | ) |
Definition at line 473 of file deepstarcomponent.cpp.
Member Data Documentation
|
static |
Definition at line 118 of file deepstarcomponent.h.
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.