![]() |
Stellarium
25.1
|
Manages all ZoneData structures of a given StelGeodesicGrid level. More...
#include <ZoneArray.hpp>
Public Member Functions | |
unsigned int | getNrOfStars () const |
Get the total number of stars in this catalog. | |
virtual void | updateHipIndex (HipIndexStruct hipIndex[]) const |
Dummy method that does nothing. See subclass implementation. | |
virtual void | searchAround (const StelCore *core, int index, const Vec3d &v, const double withParallax, const Vec3d diffPos, double cosLimFov, QList< StelObjectP > &result)=0 |
Pure virtual method. See subclass implementation. | |
virtual StelObjectP | searchGaiaID (int index, const StarId source_id, int &matched) const =0 |
virtual void | searchGaiaIDepochPos (const StarId source_id, float dyrs, double &RA, double &DEC, double &Plx, double &pmra, double &pmdec, double &RV) const =0 |
virtual void | draw (StelPainter *sPainter, int index, bool is_inside, const RCMag *rcmag_table, int limitMagIndex, StelCore *core, int maxMagStarName, float names_brightness, const QVector< SphericalCap > &boundingCaps, const bool withAberration, const Vec3d vel, const double withParallax, const Vec3d diffPos) const =0 |
Pure virtual method. See subclass implementation. | |
bool | isInitialized (void) const |
Get whether or not the catalog was successfully loaded. More... | |
void | initTriangle (int index, const Vec3f &c0, const Vec3f &c1, const Vec3f &c2) |
Initialize the ZoneData struct at the given index. | |
Static Public Member Functions | |
static ZoneArray * | create (const QString &extended_file_name, bool use_mmap) |
Named public constructor for ZoneArray. More... | |
Data Fields | |
const QString | fname |
File path of the catalog. | |
const int | level |
Level in StelGeodesicGrid. | |
const int | mag_min |
Lower bound of magnitudes in this level at the catalog epoch. More... | |
Protected Member Functions | |
ZoneArray (const QString &fname, QFile *file, int level, int mag_min) | |
Protected constructor. Initializes fields and does not load anything. | |
Static Protected Member Functions | |
static bool | readFile (QFile &file, void *data, qint64 size) |
Load a catalog and display its progress on the splash screen. More... | |
Protected Attributes | |
unsigned int | nr_of_zones |
unsigned int | nr_of_stars |
ZoneData * | zones |
QFile * | file |
Manages all ZoneData structures of a given StelGeodesicGrid level.
An instance of this class is never created directly; the named constructor returns an instance of one of its subclasses. All it really does is bootstrap the loading process.
|
static |
Named public constructor for ZoneArray.
Opens a catalog, reads its header info, and creates a SpecialZoneArray or HipZoneArray for loading.
extended_file_name | path of the star catalog to load from |
use_mmap | whether or not to mmap the star catalog |
|
inline |
Get whether or not the catalog was successfully loaded.
true
if at least one zone was loaded, otherwise false
|
staticprotected |
Load a catalog and display its progress on the splash screen.
true
if successful, or false
if an error occurred const int ZoneArray::mag_min |
Lower bound of magnitudes in this level at the catalog epoch.
Units: millimag. May be negative for brightest stars and stars might have different magnitudes in the past/future.