Stellarium 0.11.4 | |||
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
A Star (Star1,Star2,Star3,. More...
#include <StarWrapper.hpp>
Protected Member Functions | |
QString | getType (void) const |
Return object's type. It should be the name of the class. | |
QString | getEnglishName (void) const |
Return object's name in english. | |
QString | getNameI18n (void) const =0 |
Return translated object's name. | |
QString | getInfoString (const StelCore *core, const InfoStringGroup &flags) const |
StarWrapperBase supports the following InfoStringGroup flags. | |
virtual float | getBV (void) const =0 |
..) 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).
QString BigStarCatalogExtension::StarWrapperBase::getEnglishName | ( | void | ) | const [inline, protected, virtual] |
Return object's name in english.
Implements StelObject.
Reimplemented in BigStarCatalogExtension::StarWrapper< Star >, BigStarCatalogExtension::StarWrapper1, BigStarCatalogExtension::StarWrapper< Star2 >, BigStarCatalogExtension::StarWrapper< Star3 >, and BigStarCatalogExtension::StarWrapper< Star1 >.
QString BigStarCatalogExtension::StarWrapperBase::getInfoString | ( | const StelCore * | core, | |
const InfoStringGroup & | flags | |||
) | const [protected, virtual] |
StarWrapperBase supports the following InfoStringGroup flags.
core | the StelCore object | |
flags | a set of InfoStringGroup items to include in the return value. |
Implements StelObject.
Reimplemented in BigStarCatalogExtension::StarWrapper1.
QString BigStarCatalogExtension::StarWrapperBase::getNameI18n | ( | void | ) | const [protected, pure virtual] |
Return translated object's name.
Implements StelObject.
Implemented in BigStarCatalogExtension::StarWrapper< Star >, BigStarCatalogExtension::StarWrapper< Star2 >, BigStarCatalogExtension::StarWrapper< Star3 >, and BigStarCatalogExtension::StarWrapper< Star1 >.
QString BigStarCatalogExtension::StarWrapperBase::getType | ( | void | ) | const [inline, protected, virtual] |
Return object's type. It should be the name of the class.
Implements StelObject.