Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Protected Member Functions

BigStarCatalogExtension::StarWrapperBase Class Reference

A Star (Star1,Star2,Star3,...) cannot be a StelObject. More...

#include <StarWrapper.hpp>

List of all members.

Protected Member Functions

QString getType (void) const
QString getEnglishName (void) const
QString getNameI18n (void) const =0
QString getInfoString (const StelCore *core, const InfoStringGroup &flags) const
virtual float getBV (void) const =0

Detailed Description

A Star (Star1,Star2,Star3,...) cannot be a StelObject.

The additional overhead of having a dynamic type would simply be too much. Therefore the StarWrapper is needed when returning Stars as StelObjects, e.g. for searching, and for constellations. The StarWrapper is destroyed when it is not needed anymore, by utilizing reference counting. So there is no chance that more than a few hundreds of StarWrappers are alive simultanousely. Another reason for having the StarWrapper is to encapsulate the differences between the different kinds of Stars (Star1,Star2,Star3).


Member Function Documentation

QString BigStarCatalogExtension::StarWrapperBase::getInfoString ( const StelCore core,
const InfoStringGroup flags 
) const [protected, virtual]

StarWrapperBase supports the following InfoStringGroup flags.

  • Name
  • Magnitude
  • RaDecJ2000
  • RaDec
  • AltAzi
  • PlainText
Parameters:
core the StelCore object
flags a set of InfoStringGroup items to include in the return value.
Returns:
a QString containing an HMTL encoded description of the StarWrapperBase.

Implements StelObject.

Reimplemented in BigStarCatalogExtension::StarWrapper1.