Search for usage in LXR

#include <deepstarcomponent.h>

Inheritance diagram for DeepStarComponent:

Public Member Functions

 DeepStarComponent (SkyComposite *parent, QString fileName, float trigMag, bool staticstars=false)
void draw (SkyPainter *skyp) override
float faintMagnitude () const
bool fileOpen () const
StarObjectfindByHDIndex (int HDnum)
BinFileHelpergetStarReader ()
bool hasStaticStars () const
bool loadStaticStars ()
SkyObjectobjectNearest (SkyPoint *p, double &maxrad) override
bool openDataFile ()
bool selected () override
bool starsInAperture (QList< StarObject * > &list, const SkyPoint &center, float radius, float maglim=-29)
void update (KSNumbers *num) override
bool verifySBLIntegrity ()
- Public Member Functions inherited from ListComponent
 ListComponent (SkyComposite *parent)
void appendListObject (SkyObject *object)
void clear ()
SkyObjectfindByName (const QString &name, bool exact=true) override
const QList< SkyObject * > & objectList () const
SkyObjectobjectNearest (SkyPoint *p, double &maxrad) override
void update (KSNumbers *num=nullptr) override
- Public Member Functions inherited from SkyComponent
 SkyComponent (SkyComposite *parent=nullptr)
virtual void drawTrails (SkyPainter *skyp)
virtual void emitProgressText (const QString &message)
QHash< int, QVector< QPair< QString, const SkyObject * > > > & objectLists ()
QVector< QPair< QString, const SkyObject * > > & objectLists (int type)
QHash< int, QStringList > & objectNames ()
QStringListobjectNames (int type)
virtual void objectsInArea (QList< SkyObject * > &list, const SkyRegion &region)
SkyCompositeparent ()
void removeFromLists (const SkyObject *obj)
void removeFromNames (const SkyObject *obj)
virtual void updateMoons (KSNumbers *)
virtual void updateSolarSystemBodies (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

- Protected Attributes inherited from ListComponent
QHash< QString, SkyObject * > m_ObjectHash
QList< SkyObject * > m_ObjectList

Detailed Description

Stores and manages unnamed stars, most of which are dynamically loaded into memory.

Akarsh Simha
Much of the code here is copied from class StarComponent authored by Thomas Kabelmann

Definition at line 31 of file deepstarcomponent.h.

Member Function Documentation

◆ draw()

void DeepStarComponent::draw ( SkyPainter skyp)

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

Implements SkyComponent.

Definition at line 231 of file deepstarcomponent.cpp.

◆ faintMagnitude()

float DeepStarComponent::faintMagnitude ( ) const
return the estimated faint magnitude limit of this DeepStarComponent

Definition at line 62 of file deepstarcomponent.h.

◆ findByHDIndex()

StarObject * DeepStarComponent::findByHDIndex ( int  HDnum)
HDnumHenry-Draper catalog number of the desired star
A star matching the given Henry-Draper catalog number

Definition at line 482 of file deepstarcomponent.cpp.

◆ hasStaticStars()

bool DeepStarComponent::hasStaticStars ( ) const
true if this DeepStarComponent has static stars (that are not dynamically loaded)

Definition at line 57 of file deepstarcomponent.h.

◆ objectNearest()

SkyObject * DeepStarComponent::objectNearest ( SkyPoint p,
double &  maxrad 
Nearest star within maxrad of SkyPoint p, or nullptr if not found

Reimplemented from SkyComponent.

Definition at line 494 of file deepstarcomponent.cpp.

◆ selected()

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

Reimplemented from SkyComponent.

Definition at line 209 of file deepstarcomponent.cpp.

◆ starsInAperture()

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

false if the limiting magnitude is brighter than the trigger magnitude of the DeepStarComponent

Definition at line 552 of file deepstarcomponent.cpp.

◆ update()

void DeepStarComponent::update ( KSNumbers )

Update the sky position(s) of this component.

This function usually just updates the Horizontal (Azimuth/Altitude) coordinates of its member object(s). However, the precession and nutation must also be recomputed periodically. num Pointer to the KSNumbers object

See also

Reimplemented from SkyComponent.

Definition at line 226 of file deepstarcomponent.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.