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

kstars

Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
DeepStarComponent Class Reference

#include <deepstarcomponent.h>

Inheritance diagram for DeepStarComponent:
Inheritance graph
[legend]

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 &center, float radius, float maglim=-29)
 
void update (KSNumbers *num)
 
bool verifySBLIntegrity ()
 
- Public Member Functions inherited from ListComponent
 ListComponent (SkyComposite *parent)
 
virtual ~ListComponent ()
 
void clear ()
 
virtual SkyObject * findByName (const QString &name)
 
const QList< SkyObject * > & objectList () const
 
- 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 *)
 

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 Member Functions inherited from SkyComponent
void removeFromNames (const SkyObject *obj)
 
- Protected Attributes inherited from ListComponent
QList< SkyObject * > m_ObjectList
 

Detailed Description

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

Author
Akarsh Simha
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.

DeepStarComponent::~DeepStarComponent ( )
virtual

Definition at line 149 of file deepstarcomponent.cpp.

Member Function Documentation

void DeepStarComponent::byteSwap ( deepStarData *  stardata)
static

Definition at line 453 of file deepstarcomponent.cpp.

void DeepStarComponent::byteSwap ( starData *  stardata)
static

Definition at line 462 of file deepstarcomponent.cpp.

void DeepStarComponent::draw ( SkyPainter *  skyp)
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.

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

Definition at line 77 of file deepstarcomponent.h.

bool DeepStarComponent::fileOpen ( )
inline

Definition at line 90 of file deepstarcomponent.h.

SkyObject * DeepStarComponent::findByHDIndex ( int  HDnum)
Parameters
HDnumHenry-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.

BinFileHelper* DeepStarComponent::getStarReader ( )
inline

Definition at line 92 of file deepstarcomponent.h.

bool DeepStarComponent::hasStaticStars ( )
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.

SkyObject * DeepStarComponent::objectNearest ( SkyPoint *  p,
double &  maxrad 
)
virtual
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.

bool DeepStarComponent::selected ( )
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.

void DeepStarComponent::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 170 of file deepstarcomponent.cpp.

bool DeepStarComponent::verifySBLIntegrity ( )

Definition at line 473 of file deepstarcomponent.cpp.

Member Data Documentation

StarBlockFactory DeepStarComponent::m_StarBlockFactory
static

Definition at line 118 of file deepstarcomponent.h.


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