![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure |
#include <ZoneArray.hpp>
Inherits BigStarCatalogExtension::ZoneArray.
Inherited by BigStarCatalogExtension::HipZoneArray.
Public Member Functions | |
| SpecialZoneArray (QFile *file, bool byte_swap, bool use_mmap, StelLoadingBar &lb, int level, int mag_min, int mag_range, int mag_steps) | |
Protected Member Functions | |
| SpecialZoneData< Star > * | getZones (void) const |
| void | draw (int index, bool is_inside, const float *rcmag_table, const StelProjectorP &prj, unsigned int maxMagStarName, float names_brightness, StelFont *starFont) const |
| void | scaleAxis (void) |
| void | searchAround (int index, const Vec3d &v, double cosLimFov, QList< StelObjectP > &result) |
Protected Attributes | |
| Star * | stars |
Is only separate from ZoneArray because ZoneArray decides on the template parameter.
| Star | either Star1, Star2 or Star3, depending on the brightness of stars in this catalog. |
| BigStarCatalogExtension::SpecialZoneArray< Star >::SpecialZoneArray | ( | QFile * | file, | |
| bool | byte_swap, | |||
| bool | use_mmap, | |||
| StelLoadingBar & | lb, | |||
| int | level, | |||
| int | mag_min, | |||
| int | mag_range, | |||
| int | mag_steps | |||
| ) |
Handles loading of the meaty part of star catalogs.
| file | catalog to load from | |
| byte_swap | whether to switch endianness of catalog data | |
| use_mmap | whether or not to mmap the star catalog | |
| lb | the loading bar on the splash screen | |
| level | level in StelGeodesicGrid | |
| mag_min | lower bound of magnitudes | |
| mag_range | range of magnitudes | |
| mag_steps | number of steps used to describe values in range |
| SpecialZoneData<Star>* BigStarCatalogExtension::SpecialZoneArray< Star >::getZones | ( | void | ) | const [inline, protected] |
Get an array of all SpecialZoneData objects in this catalog.
| void BigStarCatalogExtension::SpecialZoneArray< Star >::draw | ( | int | index, | |
| bool | is_inside, | |||
| const float * | rcmag_table, | |||
| const StelProjectorP & | prj, | |||
| unsigned int | maxMagStarName, | |||
| float | names_brightness, | |||
| StelFont * | starFont | |||
| ) | const [protected, virtual] |
Draw stars and their names onto the viewport.
| index | zone index to draw | |
| is_inside | whether the zone is inside the current viewport | |
| rcmag_table | table of magnitudes | |
| prj | projector to draw on | |
| maxMagStarName | magnitude limit of stars that display labels | |
| names_brightness | brightness of labels | |
| starFont | font of labels |
Implements BigStarCatalogExtension::ZoneArray.
| void BigStarCatalogExtension::SpecialZoneArray< Star >::searchAround | ( | int | index, | |
| const Vec3d & | v, | |||
| double | cosLimFov, | |||
| QList< StelObjectP > & | result | |||
| ) | [protected, virtual] |
1.5.5